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