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