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