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