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