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