++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/heat' heat + SERVICE_OS_DOMAIN_ID=b068fc2e259946b2a807033de3bc8c34 + openstack domain show b068fc2e259946b2a807033de3bc8c34 +-------------+-----------------------------------+ | Field | Value | +-------------+-----------------------------------+ | description | Service Domain for RegionOne/heat | | enabled | True | | id | b068fc2e259946b2a807033de3bc8c34 | | name | heat | | options | {} | | tags | [] | +-------------+-----------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=b068fc2e259946b2a807033de3bc8c34 --description 'Service User for RegionOne/heat' --password=582Q7f6z3GeuYGj2t3Y2ypmNOcAXm6PT heat-stack-user-RegionOne + SERVICE_OS_USERID=bd16aa28c4b54d90bc7396365516ddc5 + openstack user set --password=582Q7f6z3GeuYGj2t3Y2ypmNOcAXm6PT bd16aa28c4b54d90bc7396365516ddc5 + openstack user show bd16aa28c4b54d90bc7396365516ddc5 +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | None | | domain_id | b068fc2e259946b2a807033de3bc8c34 | | email | None | | enabled | True | | id | bd16aa28c4b54d90bc7396365516ddc5 | | name | heat-stack-user-RegionOne | | description | Service User for RegionOne/heat | | password_expires_at | None | +---------------------+----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=b892e6675c8540f7afc1b89913ed269b + openstack role add --domain=b068fc2e259946b2a807033de3bc8c34 --user=bd16aa28c4b54d90bc7396365516ddc5 --user-domain=b068fc2e259946b2a807033de3bc8c34 b892e6675c8540f7afc1b89913ed269b + openstack role assignment list --role=b892e6675c8540f7afc1b89913ed269b --user-domain=b068fc2e259946b2a807033de3bc8c34 --user=bd16aa28c4b54d90bc7396365516ddc5 +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | b892e6675c8540f7afc1b89913ed269b | bd16aa28c4b54d90bc7396365516ddc5 | | | b068fc2e259946b2a807033de3bc8c34 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+