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