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