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