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