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