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