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