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