++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/magnum' magnum + SERVICE_OS_DOMAIN_ID=22deaa5fe5a14a308f00261269c5a123 + openstack domain show 22deaa5fe5a14a308f00261269c5a123 +-------------+-------------------------------------+ | Field | Value | +-------------+-------------------------------------+ | id | 22deaa5fe5a14a308f00261269c5a123 | | name | magnum | | enabled | True | | description | Service Domain for RegionOne/magnum | | options | {} | +-------------+-------------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=22deaa5fe5a14a308f00261269c5a123 --description 'Service User for RegionOne/magnum' --password=y020Rjg0YXk2tBsH8ySfc3b8W7HmdmHx magnum-domain-RegionOne + SERVICE_OS_USERID=2e4c691729324cc59e9bcf5a77a2aead + openstack user set --password=y020Rjg0YXk2tBsH8ySfc3b8W7HmdmHx 2e4c691729324cc59e9bcf5a77a2aead + openstack user show 2e4c691729324cc59e9bcf5a77a2aead +---------------------+-----------------------------------+ | Field | Value | +---------------------+-----------------------------------+ | default_project_id | None | | domain_id | 22deaa5fe5a14a308f00261269c5a123 | | email | None | | enabled | True | | id | 2e4c691729324cc59e9bcf5a77a2aead | | 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=1685291347474908ababc32f7beb347f + openstack role add --domain=22deaa5fe5a14a308f00261269c5a123 --user=2e4c691729324cc59e9bcf5a77a2aead --user-domain=22deaa5fe5a14a308f00261269c5a123 1685291347474908ababc32f7beb347f + openstack role assignment list --role=1685291347474908ababc32f7beb347f --user-domain=22deaa5fe5a14a308f00261269c5a123 --user=2e4c691729324cc59e9bcf5a77a2aead +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 1685291347474908ababc32f7beb347f | 2e4c691729324cc59e9bcf5a77a2aead | | | 22deaa5fe5a14a308f00261269c5a123 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+