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