++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/magnum' magnum + SERVICE_OS_DOMAIN_ID=9570af7f806c44288fd7443a46e484c3 + openstack domain show 9570af7f806c44288fd7443a46e484c3 +-------------+-------------------------------------+ | Field | Value | +-------------+-------------------------------------+ | id | 9570af7f806c44288fd7443a46e484c3 | | name | magnum | | enabled | True | | description | Service Domain for RegionOne/magnum | | options | {} | +-------------+-------------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=9570af7f806c44288fd7443a46e484c3 --description 'Service User for RegionOne/magnum' --password=JM0wjrp0BEMadLjtrSWchVy0op1I4XeO magnum-domain-RegionOne + SERVICE_OS_USERID=78024faffe0a403595df30827509486d + openstack user set --password=JM0wjrp0BEMadLjtrSWchVy0op1I4XeO 78024faffe0a403595df30827509486d + openstack user show 78024faffe0a403595df30827509486d +---------------------+-----------------------------------+ | Field | Value | +---------------------+-----------------------------------+ | default_project_id | None | | domain_id | 9570af7f806c44288fd7443a46e484c3 | | email | None | | enabled | True | | id | 78024faffe0a403595df30827509486d | | name | magnum-domain-RegionOne | | description | Service User for RegionOne/magnum | | password_expires_at | None | | options | {} | +---------------------+-----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=821b5727717e43499f0115aa79006e04 + openstack role add --domain=9570af7f806c44288fd7443a46e484c3 --user=78024faffe0a403595df30827509486d --user-domain=9570af7f806c44288fd7443a46e484c3 821b5727717e43499f0115aa79006e04 + openstack role assignment list --role=821b5727717e43499f0115aa79006e04 --user-domain=9570af7f806c44288fd7443a46e484c3 --user=78024faffe0a403595df30827509486d +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 821b5727717e43499f0115aa79006e04 | 78024faffe0a403595df30827509486d | | | 9570af7f806c44288fd7443a46e484c3 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+