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