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