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