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