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