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