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