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