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