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