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