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