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