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