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