++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/magnum' magnum + SERVICE_OS_DOMAIN_ID=160924bc6628474195258e5f622ccc40 + openstack domain show 160924bc6628474195258e5f622ccc40 +-------------+-------------------------------------+ | Field | Value | +-------------+-------------------------------------+ | description | Service Domain for RegionOne/magnum | | enabled | True | | id | 160924bc6628474195258e5f622ccc40 | | name | magnum | | options | {} | | tags | [] | +-------------+-------------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=160924bc6628474195258e5f622ccc40 --description 'Service User for RegionOne/magnum' --password=OOwI4CoxURXOqvqUD2IPhYQiBByNqk38 magnum-domain-RegionOne + SERVICE_OS_USERID=f5fdbc8d0e894dffadbfcf9ca69885d7 + openstack user set --password=OOwI4CoxURXOqvqUD2IPhYQiBByNqk38 f5fdbc8d0e894dffadbfcf9ca69885d7 + openstack user show f5fdbc8d0e894dffadbfcf9ca69885d7 +---------------------+-----------------------------------+ | Field | Value | +---------------------+-----------------------------------+ | default_project_id | None | | domain_id | 160924bc6628474195258e5f622ccc40 | | email | None | | enabled | True | | id | f5fdbc8d0e894dffadbfcf9ca69885d7 | | name | magnum-domain-RegionOne | | description | Service User for RegionOne/magnum | | password_expires_at | None | +---------------------+-----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=c10586f79bce4f709ac11955154fd60c + openstack role add --domain=160924bc6628474195258e5f622ccc40 --user=f5fdbc8d0e894dffadbfcf9ca69885d7 --user-domain=160924bc6628474195258e5f622ccc40 c10586f79bce4f709ac11955154fd60c + openstack role assignment list --role=c10586f79bce4f709ac11955154fd60c --user-domain=160924bc6628474195258e5f622ccc40 --user=f5fdbc8d0e894dffadbfcf9ca69885d7 +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | c10586f79bce4f709ac11955154fd60c | f5fdbc8d0e894dffadbfcf9ca69885d7 | | | 160924bc6628474195258e5f622ccc40 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+