Questions & Answers

deploy_highstate failed

0 votes
asked Dec 11, 2017 by Jing Lu (280 points)

When deploying the PNDA stack, Heat failed with the error code below:

2017-12-11 05:20:52Z [deploy_highstate]: CREATE_FAILED  Error: resources.deploy_highstate: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 11
2017-12-11 05:20:52Z [cation]: CREATE_FAILED  Resource CREATE failed: Error: resources.deploy_highstate: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 11

 Stack cation CREATE_FAILED

In the heat output, I can see following errors:

Output of the Salt highstate command

#!/bin/bash -v
set -e
set -o pipefail
salt -v --log-level=debug --timeout=120 --state-output=mixed '*' state.highstate | tee salt-highstate-$(date +"%F-%T").log
date +"%F-%T"
[DEBUG   ] Reading configuration from /etc/salt/master
[DEBUG   ] Using cached minion ID from /etc/salt/minion_id: cation-saltmaster
[DEBUG   ] Missing configuration file: /root/.saltrc
[DEBUG   ] Configuration file path: /etc/salt/master
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG   ] Reading configuration from /etc/salt/master
[DEBUG   ] Using cached minion ID from /etc/salt/minion_id: cation-saltmaster
[DEBUG   ] Missing configuration file: /root/.saltrc
[DEBUG   ] MasterEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
[DEBUG   ] MasterEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
[DEBUG   ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/master', 'cation-saltmaster_master', 'tcp://192.168.13.8:4506', 'clear')
[DEBUG   ] LazyLoaded local_cache.get_load
[DEBUG   ] Reading minion list from /var/cache/salt/master/jobs/d9/dea76e341d8233afb1de9b4de0d02f/.minions.p
[DEBUG   ] get_iter_returns for jid 20171211052050352325 sent to set(['cation-cdh-mgr1', 'cation-kafka-0', 'cation-bastion', 'cation-cdh-dn-0', 'cation-cdh-edge']) will timeout at 05:22:50.356997
[DEBUG   ] jid 20171211052050352325 return from cation-bastion
[DEBUG   ] LazyLoaded highstate.output
[DEBUG   ] jid 20171211052050352325 return from cation-kafka-0
[DEBUG   ] LazyLoaded highstate.output
[DEBUG   ] jid 20171211052050352325 return from cation-cdh-edge
[DEBUG   ] LazyLoaded highstate.output
[DEBUG   ] jid 20171211052050352325 return from cation-cdh-dn-0
[DEBUG   ] LazyLoaded highstate.output
[DEBUG   ] jid 20171211052050352325 return from cation-cdh-mgr1
[DEBUG   ] LazyLoaded highstate.output
[DEBUG   ] jid 20171211052050352325 found all minions set(['cation-cdh-mgr1', 'cation-kafka-0', 'cation-bastion', 'cation-cdh-dn-0', 'cation-cdh-edge'])
ERROR: Minions returned with non-zero exit code

salt_highstate

Output of the Salt highstate command

Executing job with jid 20171211052050352325
-------------------------------------------

cation-bastion:
----------
          ID: states
    Function: no.None
      Result: False
     Comment: No Top file or external nodes data matches found.
     Started: 
    Duration: 
     Changes:   

Summary for cation-bastion
------------
Succeeded: 0
Failed:    1
------------
Total states run:     1
cation-kafka-0:
----------
          ID: states
    Function: no.None
      Result: False
     Comment: No Top file or external nodes data matches found.
     Started: 
    Duration: 
     Changes:   

Summary for cation-kafka-0
------------
Succeeded: 0
Failed:    1
------------
Total states run:     1
cation-cdh-edge:
----------
          ID: states
    Function: no.None
      Result: False
     Comment: No Top file or external nodes data matches found.
     Started: 
    Duration: 
     Changes:   

Summary for cation-cdh-edge
------------
Succeeded: 0
Failed:    1
------------
Total states run:     1
cation-cdh-dn-0:
----------
          ID: states
    Function: no.None
      Result: False
     Comment: No Top file or external nodes data matches found.
     Started: 
    Duration: 
     Changes:   

Summary for cation-cdh-dn-0
------------
Succeeded: 0
Failed:    1
------------
Total states run:     1
cation-cdh-mgr1:
----------
          ID: states
    Function: no.None
      Result: False
     Comment: No Top file or external nodes data matches found.
     Started: 
    Duration: 
     Changes:   

Summary for cation-cdh-mgr1
------------
Succeeded: 0
Failed:    1
------------
Total states run:     1


Can anyone suggest the cause of the errors and how to resovle it?

1 Answer

0 votes
answered Dec 12, 2017 by Jing Lu (280 points)
Solved. I think it is a problem caused by salt code it master branch. I use the '-b Release/3.5' parameter with the heat-cli.py and the problem is gone.
commented Dec 12, 2017 by amfooladgar (200 points)
I am seeing the same issue and I tried your solution but it did not work. I am using mirror/build components and I believe something is wrong with the releases and different git pieces are not match to each other. Any other suggestion?
...