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