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