Questions & Answers

salt.highstate fails every time

+1 vote
asked Aug 7, 2017 by Saqib Arfeen (560 points)
edited Aug 7, 2017 by Saqib Arfeen
Hello friends,
I have installed pnda twice on my openstack environment. Both times it failed to run the salt.highstate command on cdh-edge node. The cdh-mgr1 fails to create database and hence edge node fails when connecting to database server.
There seems to be some logical problem. When I manually run
#salt "cation-cdh-mgr1" state.highstate  and #salt "cation-cdh-edge"  state.highstate on saltmaster , it works perfect. Please help me with these problems.

3 Answers

+1 vote
answered Sep 14, 2017 by ekhawmu (230 points)
Hi Saqib,

I am currently facing the same problem. Did you get any workaround?


commented Sep 15, 2017 by Saqib Arfeen (560 points)
Hello Khawar
Please post your logs so that we may better know the problem.
I think that java installation failed in your case . Here is an exempt from one of previous answers here.
1)  java install failed and hence all the big data and elasticsearch/cloudera-manager/logstash failed to install on the nodes. The reason that java install failed is that now the default "" link no longer works without signin/authentication. To solve this , I manually downloaded the same java version and copy it to my package server (in apache folder to be accessible through http). To change the malfunctioning oracle java download link , I forked the "platform-salt" project on github and changed the java download link to my local packge server, and also chaged the saltRepo config in pnda_env.yaml as follows:-
 platform_git_repo_uri: ''
commented Sep 15, 2017 by ekhawmu (230 points)
Hi Saqib,
I checked it in edge VM, java is successfully installed. Nevertheless you can get an idea from logs
0 votes
answered Aug 28, 2017 by jeremie (3,730 points)
same as previous question, could you check the grafana logs in order to see why it is dead and regarding the cloudera installation issue, check the logs /var/log/pnda/hadoop_setup.log.

0 votes
answered Oct 5, 2017 by Saqib Arfeen (560 points)
Same as written in previous answer. The salt state run fails on mgr1 and so there is no database installed and hence unable to be connected to. Please run from saltmaster node:-

1)salt scripts in /var/lib/heat-config/heat-config-scripts/  e.g ./ageojduhayohejj

2) salt "cation-cdh-mgr1" state.highstate  manually and see the salt log files at mgr1.