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