This bug is found in version "packstack Juno 2014.2.dev1468.gd049ea9". The CentOS version was "3.10.0-123.el7.x86_64"
Packstack can not start iptables when it runs on a node with CentOS 7 and without iptables and iptable-services installed before that. The error message was:
"PuppetError: Error appeared during Puppet run: 192.168.93.157_prescript.pp
Error: Could not start Service[iptables]: Execution of '/usr/bin/systemctl start iptables' returned 6: Failed to issue method call: Unit iptables.service failed to load: No such file or directory."
After this error occurs, if you re-run packstack on the same node, this error will not occur again. In fact, after that error, you can successfully start iptables manually, as shown in the attachment. So iptables and iptable-services must be installed by packstack already but packstack fails to start them at a right time or in a right order.
In prescript.pp.log:
"Error: Could not start Service[iptables]: Execution of '/usr/bin/systemctl start iptables' returned 6: Failed to issue method call: Unit iptables.service failed to load: No such file or directory.
Wrapped exception:
Execution of '/usr/bin/systemctl start iptables' returned 6: Failed to issue method call: Unit iptables.service failed to load: No such file or directory.
Error: /Stage[main]/Firewall::Linux::Redhat/Service[iptables]/ensure: change from stopped to running failed: Could not start Service[iptables]: Execution of '/usr/bin/systemctl start iptables' returned 6: Failed to issue method call: Unit iptables.service failed to load: No such file or directory."
In openstack-setup.log:
"2015-05-03 09:34:51::ERROR::run_setup::1018::root:: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 1013, in main
_main(options, confFile, logFile)
File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 655, in _main
runSequences()
File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 626, in runSequences
controller.runAllSequences()
File "/usr/lib/python2.7/site-packages/packstack/installer/setup_controller.py", line 81, in runAllSequences
sequence.run(config=self.CONF, messages=self.MESSAGES)
File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 109, in run
step.run(config=config, messages=messages)
File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 50, in run
self.function(config, messages)
File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 254, in apply_puppet_manifest
wait_for_puppet(currently_running, messages)
File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 126, in wait_for_puppet
validate_logfile(log)
File "/usr/lib/python2.7/site-packages/packstack/modules/puppet.py", line 107, in validate_logfile
raise PuppetError(message)
PuppetError: Error appeared during Puppet run: 192.168.93.157_prescript.pp
Error: Could not start Service[iptables]: Execution of '/usr/bin/systemctl start iptables' returned 6: Failed to issue method call: Unit iptables.service failed to load: No such file or directory.
You will find full trace in log /var/tmp/packstack/20150503-092452-GOTW1p/manifests/192.168.93.157_prescript.pp.log"
This bug is found in version "packstack Juno 2014.2. dev1468. gd049ea9" . The CentOS version was "3.10.0- 123.el7. x86_64"
Packstack can not start iptables when it runs on a node with CentOS 7 and without iptables and iptable-services installed before that. The error message was: 93.157_ prescript. pp
"PuppetError: Error appeared during Puppet run: 192.168.
Error: Could not start Service[iptables]: Execution of '/usr/bin/systemctl start iptables' returned 6: Failed to issue method call: Unit iptables.service failed to load: No such file or directory."
After this error occurs, if you re-run packstack on the same node, this error will not occur again. In fact, after that error, you can successfully start iptables manually, as shown in the attachment. So iptables and iptable-services must be installed by packstack already but packstack fails to start them at a right time or in a right order.
In prescript.pp.log: main]/Firewall: :Linux: :Redhat/ Service[ iptables] /ensure: change from stopped to running failed: Could not start Service[iptables]: Execution of '/usr/bin/systemctl start iptables' returned 6: Failed to issue method call: Unit iptables.service failed to load: No such file or directory."
"Error: Could not start Service[iptables]: Execution of '/usr/bin/systemctl start iptables' returned 6: Failed to issue method call: Unit iptables.service failed to load: No such file or directory.
Wrapped exception:
Execution of '/usr/bin/systemctl start iptables' returned 6: Failed to issue method call: Unit iptables.service failed to load: No such file or directory.
Error: /Stage[
In openstack- setup.log: :ERROR: :run_setup: :1018:: root:: Traceback (most recent call last): python2. 7/site- packages/ packstack/ installer/ run_setup. py", line 1013, in main python2. 7/site- packages/ packstack/ installer/ run_setup. py", line 655, in _main python2. 7/site- packages/ packstack/ installer/ run_setup. py", line 626, in runSequences runAllSequences () python2. 7/site- packages/ packstack/ installer/ setup_controlle r.py", line 81, in runAllSequences run(config= self.CONF, messages= self.MESSAGES) python2. 7/site- packages/ packstack/ installer/ core/sequences. py", line 109, in run run(config= config, messages=messages) python2. 7/site- packages/ packstack/ installer/ core/sequences. py", line 50, in run function( config, messages) python2. 7/site- packages/ packstack/ plugins/ puppet_ 950.py" , line 254, in apply_puppet_ manifest for_puppet( currently_ running, messages) python2. 7/site- packages/ packstack/ plugins/ puppet_ 950.py" , line 126, in wait_for_puppet logfile( log) python2. 7/site- packages/ packstack/ modules/ puppet. py", line 107, in validate_logfile message) 93.157_ prescript. pp packstack/ 20150503- 092452- GOTW1p/ manifests/ 192.168. 93.157_ prescript. pp.log"
"2015-05-03 09:34:51:
File "/usr/lib/
_main(options, confFile, logFile)
File "/usr/lib/
runSequences()
File "/usr/lib/
controller.
File "/usr/lib/
sequence.
File "/usr/lib/
step.
File "/usr/lib/
self.
File "/usr/lib/
wait_
File "/usr/lib/
validate_
File "/usr/lib/
raise PuppetError(
PuppetError: Error appeared during Puppet run: 192.168.
Error: Could not start Service[iptables]: Execution of '/usr/bin/systemctl start iptables' returned 6: Failed to issue method call: Unit iptables.service failed to load: No such file or directory.
You will find full trace in log /var/tmp/