++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/heat' heat + SERVICE_OS_DOMAIN_ID=4e21c8ec29fa45b7b6fe441c8fae0b19 + openstack domain show 4e21c8ec29fa45b7b6fe441c8fae0b19 +-------------+-----------------------------------+ | Field | Value | +-------------+-----------------------------------+ | id | 4e21c8ec29fa45b7b6fe441c8fae0b19 | | name | heat | | enabled | True | | description | Service Domain for RegionOne/heat | | options | {} | +-------------+-----------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=4e21c8ec29fa45b7b6fe441c8fae0b19 --description 'Service User for RegionOne/heat' --password=TrDbuzgBVfQz34Ki7UpMBOjxDVgYpu69 heat-stack-user-RegionOne + SERVICE_OS_USERID=e6d381a8373241fc8ae1cd5356a4b1d7 + openstack user set --password=TrDbuzgBVfQz34Ki7UpMBOjxDVgYpu69 e6d381a8373241fc8ae1cd5356a4b1d7 + openstack user show e6d381a8373241fc8ae1cd5356a4b1d7 +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | None | | domain_id | 4e21c8ec29fa45b7b6fe441c8fae0b19 | | email | None | | enabled | True | | id | e6d381a8373241fc8ae1cd5356a4b1d7 | | name | heat-stack-user-RegionOne | | description | Service User for RegionOne/heat | | password_expires_at | None | | options | {} | +---------------------+----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=36f8234e63b44fb685317810c3d537a3 + openstack role add --domain=4e21c8ec29fa45b7b6fe441c8fae0b19 --user=e6d381a8373241fc8ae1cd5356a4b1d7 --user-domain=4e21c8ec29fa45b7b6fe441c8fae0b19 36f8234e63b44fb685317810c3d537a3 + openstack role assignment list --role=36f8234e63b44fb685317810c3d537a3 --user-domain=4e21c8ec29fa45b7b6fe441c8fae0b19 --user=e6d381a8373241fc8ae1cd5356a4b1d7 +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 36f8234e63b44fb685317810c3d537a3 | e6d381a8373241fc8ae1cd5356a4b1d7 | | | 4e21c8ec29fa45b7b6fe441c8fae0b19 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+