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