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