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