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