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