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