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