pndaproject / pnda-heat-templates

Resources for launching PNDA on Openstack
Other
2 stars 26 forks source link

Fixes #145: Added "hadoop.distro" grain to saltmaster_install bootstrap script. #150

Closed AbhilashS-MapleLabs closed 6 years ago

AbhilashS-MapleLabs commented 6 years ago

Issue description:

Pillar fails to render with following message: "Specified SLS 'hadoop.$' in environment 'base' is not available on the salt master"

Analysis

In AWS environment edge node also takes role of salt-master, "hadoop.distro" grain is added from bootstrap-script "base.sh". Whereas in OpenStack environment, a dedicated node serves as salt-master server. While rendering pillars, it expects "hadoop.distro" grain.

Solution

This grain "hadoop.distro" should be added on saltmaster_install bootstrap-script.

Tested for following in OpenStack: CDH - RHEL for pico and standard flavors HDP - RHEL for pico and standard flavors

Note: This fix was tested along with fixes for issues 143 , 144 and 146.