Description of problem: Hi, rhel 7.2 , rhos 7 puddle - 2015-12-04.4 Trying to install all in one topology , packstack install fails. 0:47:47 <<|Testing if puppet apply is finished: 10.35.186.150_prescript.pp [ / ] 20:47:50 <<| 20:47:50 <<|Testing if puppet apply is finished: 10.35.186.150_prescript.pp [ | ] 20:47:54 <<| 20:47:54 <<|Testing if puppet apply is finished: 10.35.186.150_prescript.pp [ \ ] 20:47:54 <<| 20:47:54 <<| 20:47:54 <<|10.35.186.150_prescript.pp: [ ERROR ] 20:47:54 <<|Applying Puppet manifests [ ERROR ] 20:47:54 <<| 20:47:54 <<|ERROR : Error appeared during Puppet run: 10.35.186.150_prescript.pp 20:47:54 <<|Error: Could not find data item CONFIG_USE_SUBNETS in any Hiera data file and no default supplied at /var/tmp/packstack/3e6d3851ac5348c3921415bcd8642013/manifests/10.35.186.150_prescript.pp:2 on node volume-ceph-os-7.2-rhos-7-build-2.novalocal 20:47:54 <<|You will find full trace in log /var/tmp/packstack/20151205-134525-gGEs_Y/manifests/10.35.186.150_prescript.pp.log 20:47:54 <<|Please check log file /var/tmp/packstack/20151205-134525-gGEs_Y/openstack-setup.log for more information Here are the logs: [0;32mInfo: Loading facts in /var/tmp/packstack/3e6d3851ac5348c3921415bcd8642013/modules/stdlib/lib/facter/puppet_vardir.rb[0m [0;32mInfo: Loading facts in /var/tmp/packstack/3e6d3851ac5348c3921415bcd8642013/modules/stdlib/lib/facter/root_home.rb[0m Error: NetworkManager is not running. [0;36mDebug: hiera(): Hiera YAML backend starting[0m [0;36mDebug: hiera(): Looking up CONFIG_USE_SUBNETS in YAML backend[0m [0;36mDebug: hiera(): Looking for data source common[0m [0;36mDebug: hiera(): Cannot find datafile /var/tmp/packstack/3e6d3851ac5348c3921415bcd8642013/hieradata/common.yaml, skipping[0m [1;31mError: Could not find data item CONFIG_USE_SUBNETS in any Hiera data file and no default supplied at /var/tmp/packstack/3e6d3851ac5348c3921415bcd8642013/manifests/10.35.186.150_prescript.pp:2 on node volume-ceph-os-7.2-rhos-7-build-2.novalocal[0m [1;31mError: Could not find data item CONFIG_USE_SUBNETS in any Hiera data file and no default supplied at /var/tmp/packstack/3e6d3851ac5348c3921415bcd8642013/manifests/10.35.186.150_prescript.pp:2 on node volume-ceph-os-7.2-rhos-7-build-2.novalocal[0m Version-Release number of selected component (if applicable): #### 2015-12-05 13:47:54::DEBUG::puppet::86::root:: Ignoring expected error during Puppet run 10.35.186.150_prescript.pp: Error: NetworkManager is not running. 2015-12-05 13:47:54::DEBUG::sequences::52::root:: Traceback (most recent call last): 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 210, in apply_puppet_manifest wait_for_puppet(currently_running, messages) File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 124, 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: 10.35.186.150_prescript.pp Error: Could not find data item CONFIG_USE_SUBNETS in any Hiera data file and no default supplied at /var/tmp/packstack/3e6d3851ac5348c3921415bcd8642013/manifests/10.35.186.150_prescript.pp:2 on node volume-ceph-os-7.2-rhos-7-build-2.novalocal[0m You will find full trace in log /var/tmp/packstack/20151205-134525-gGEs_Y/manifests/10.35.186.150_prescript.pp.log 2015-12-05 13:47:54::ERROR::run_setup::1018::root:: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 993, in main single_step_aio_install(options, logFile) File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 761, in single_step_aio_install single_step_install(options, logFile) File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 792, in single_step_install _main(options, answerfilepath, 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 210, in apply_puppet_manifest wait_for_puppet(currently_running, messages) File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 124, 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: 10.35.186.150_prescript.pp Error: Could not find data item CONFIG_USE_SUBNETS in any Hiera data file and no default supplied at /var/tmp/packstack/3e6d3851ac5348c3921415bcd8642013/manifests/10.35.186.150_prescript.pp:2 on node volume-ceph-os-7.2-rhos-7-build-2.novalocal[0m You will find full trace in log /var/tmp/packstack/20151205-134525-gGEs_Y/manifests/10.35.186.150_prescript.pp.log How reproducible: Always Steps to Reproduce: 1. run packstack , here is the string: packstack --nagios-install=n --os-ceilometer-install=n --os-neutron-install=y --keystone-admin-passwd=redhat --keystone-demo-passwd=redhat --ssh-public-key=/root/.ssh/id_rsa.pub --install-hosts=10.35.186.150 --provision-demo=n --os-controller-host=10.35.186.150 --allinone --os-compute-hosts=10.35.186.150 --os-network-hosts=10.35.186.150 --os-storage-host=10.35.186.150 --os-neutron-lbaas-install=n --neutron-fwaas=y --amqp-host=10.35.186.150 --mongodb-host=10.35.186.150 --ntp-servers=clock.redhat.com --cinder-volumes-size=6G --use-epel=y --debug --os-neutron-l3-ext-bridge=provider --os-neutron-ml2-type-drivers=vxlan,vlan,flat --os-neutron-ml2-mechanism-drivers=openvswitch --os-neutron-ml2-flat-networks=physnet-benny --os-neutron-l2-agent=openvswitch --os-neutron-ovs-bridge-mappings=physnet-benny:br-external --os-neutron-ovs-bridge-interfaces=br-external:eth1 2. Installation fails Actual results: Expected results: Additional info:
Related RDO bug #1284978. The problem is in Hiera version 3, which changed default configuration file from defaults.yaml to common.yaml.
can i have qa and pm acks please?
*** Bug 1289289 has been marked as a duplicate of this bug. ***
Note that this can be worked around by modifying the /etc/puppet/hiera.yaml file in the following way: Change the line: - common to be: - defaults This probably isn't a correct long term solution, but it will work in the short term to get around this issue.
The workaround does not for me because /etc/puppet/hiera.yaml created only after running packstack. it does not exist before deploy . Benny
Ah, my bad! Though it seems odd, you could run packstack once, have it fail, then do the procedure that I described up in Comment 5 to work around, though it's by no means a clean solution. Thanks for the heads up, Benny!
Hi , Run latest rhos7 on rhel7.2 with packstack , managed to install with packstack. Benny
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-0265.html