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