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