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