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