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