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