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