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