Bug 1288806 - packstack installation fails - Could not find data item CONFIG_USE_SUBNETS in any Hiera data file and no default supplied
Summary: packstack installation fails - Could not find data item CONFIG_USE_SUBNETS in...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: z4
: 7.0 (Kilo)
Assignee: Martin Magr
QA Contact: bkopilov
URL:
Whiteboard:
: 1289289 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-06 05:36 UTC by bkopilov
Modified: 2023-02-22 23:02 UTC (History)
7 users (show)

Fixed In Version: openstack-packstack-2015.1-0.15.dev1589.g1d6372f.el7ost
Doc Type: Bug Fix
Doc Text:
Previously, Hiera<3.0 used the defaults.yaml file for default parameters. The new version of Hiera uses common.yaml configuration file for the default parameters, resulting in a failed installation. With this update, Packstack was modified to support both the defaults.yaml and the common.yaml configuration files for the default parameters in Hiera. As the result, the installation in successful.
Clone Of:
Environment:
Last Closed: 2016-02-18 16:46:21 UTC
Target Upstream Version:
Embargoed:
scohen: needinfo+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 249301 0 None None None Never
Red Hat Bugzilla 1292567 0 medium CLOSED Packstack Installation Fails Due to New Heira Packages in RHEL-OSP 8.0 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2016:0265 0 normal SHIPPED_LIVE openstack-packstack and openstack-puppet-modules bug fix advisory 2016-02-18 21:41:18 UTC

Internal Links: 1292567

Description bkopilov 2015-12-06 05:36:34 UTC
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:

Comment 2 Martin Magr 2015-12-07 14:32:47 UTC
Related RDO bug #1284978. The problem is in Hiera version 3, which changed default configuration file from defaults.yaml to common.yaml.

Comment 3 Ivan Chavero 2015-12-08 08:28:17 UTC
can i have qa and pm acks please?

Comment 4 Martin Magr 2015-12-09 09:46:37 UTC
*** Bug 1289289 has been marked as a duplicate of this bug. ***

Comment 5 Dustin Schoenbrun 2015-12-09 16:23:04 UTC
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.

Comment 6 bkopilov 2015-12-14 07:54:22 UTC
The workaround does not for me because /etc/puppet/hiera.yaml created only after running packstack.
it does not exist before deploy .

Benny

Comment 7 Dustin Schoenbrun 2015-12-14 14:24:38 UTC
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!

Comment 10 bkopilov 2016-01-24 10:00:22 UTC
Hi , 
Run latest rhos7 on rhel7.2 with packstack , managed to install with packstack.
Benny

Comment 11 bkopilov 2016-01-24 10:00:32 UTC
Hi , 
Run latest rhos7 on rhel7.2 with packstack , managed to install with packstack.
Benny

Comment 13 errata-xmlrpc 2016-02-18 16:46:21 UTC
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


Note You need to log in before you can comment on or make changes to this bug.