++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/heat' heat + SERVICE_OS_DOMAIN_ID=5146929327ff4e2b9a6fdb87ef1c1caf + openstack domain show 5146929327ff4e2b9a6fdb87ef1c1caf +-------------+-----------------------------------+ | Field | Value | +-------------+-----------------------------------+ | id | 5146929327ff4e2b9a6fdb87ef1c1caf | | name | heat | | enabled | True | | description | Service Domain for RegionOne/heat | | options | {} | +-------------+-----------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=5146929327ff4e2b9a6fdb87ef1c1caf --description 'Service User for RegionOne/heat' --password=QqCLlZrdqaCUY1fBDp67PHZldodE8jfj heat-stack-user-RegionOne + SERVICE_OS_USERID=51a62f68dd164b7788f182a0cf05ec5f + openstack user set --password=QqCLlZrdqaCUY1fBDp67PHZldodE8jfj 51a62f68dd164b7788f182a0cf05ec5f + openstack user show 51a62f68dd164b7788f182a0cf05ec5f +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | None | | domain_id | 5146929327ff4e2b9a6fdb87ef1c1caf | | email | None | | enabled | True | | id | 51a62f68dd164b7788f182a0cf05ec5f | | 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=13a482ff574645dca0c14cb2065d77b4 + openstack role add --domain=5146929327ff4e2b9a6fdb87ef1c1caf --user=51a62f68dd164b7788f182a0cf05ec5f --user-domain=5146929327ff4e2b9a6fdb87ef1c1caf 13a482ff574645dca0c14cb2065d77b4 + openstack role assignment list --role=13a482ff574645dca0c14cb2065d77b4 --user-domain=5146929327ff4e2b9a6fdb87ef1c1caf --user=51a62f68dd164b7788f182a0cf05ec5f +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 13a482ff574645dca0c14cb2065d77b4 | 51a62f68dd164b7788f182a0cf05ec5f | | | 5146929327ff4e2b9a6fdb87ef1c1caf | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+