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