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