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