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