++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/magnum' magnum + SERVICE_OS_DOMAIN_ID=95004a3ec54f482ea698e12768c4400c + openstack domain show 95004a3ec54f482ea698e12768c4400c +-------------+-------------------------------------+ | Field | Value | +-------------+-------------------------------------+ | description | Service Domain for RegionOne/magnum | | enabled | True | | id | 95004a3ec54f482ea698e12768c4400c | | name | magnum | | options | {} | | tags | [] | +-------------+-------------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=95004a3ec54f482ea698e12768c4400c --description 'Service User for RegionOne/magnum' --password=f7EGh2lmoq5oFTxjbvvAb3ntIuSpF6uN magnum-domain-RegionOne + SERVICE_OS_USERID=8954abda119042d2bfec7d9c1c1365fa + openstack user set --password=f7EGh2lmoq5oFTxjbvvAb3ntIuSpF6uN 8954abda119042d2bfec7d9c1c1365fa + openstack user show 8954abda119042d2bfec7d9c1c1365fa +---------------------+-----------------------------------+ | Field | Value | +---------------------+-----------------------------------+ | default_project_id | None | | domain_id | 95004a3ec54f482ea698e12768c4400c | | email | None | | enabled | True | | id | 8954abda119042d2bfec7d9c1c1365fa | | name | magnum-domain-RegionOne | | description | Service User for RegionOne/magnum | | password_expires_at | None | +---------------------+-----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=e7223df072fe49609d5b9e7b9bbe8ab5 + openstack role add --domain=95004a3ec54f482ea698e12768c4400c --user=8954abda119042d2bfec7d9c1c1365fa --user-domain=95004a3ec54f482ea698e12768c4400c e7223df072fe49609d5b9e7b9bbe8ab5 + openstack role assignment list --role=e7223df072fe49609d5b9e7b9bbe8ab5 --user-domain=95004a3ec54f482ea698e12768c4400c --user=8954abda119042d2bfec7d9c1c1365fa +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | e7223df072fe49609d5b9e7b9bbe8ab5 | 8954abda119042d2bfec7d9c1c1365fa | | | 95004a3ec54f482ea698e12768c4400c | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+