Ask Your Question
2

Error: Could not find data item CONFIG_USE_SUBNETS in any Hiera data file

asked 2015-11-24 08:29:48 -0500

Amar gravatar image

Hi Getting the following error while installation.

# packstack --answer-file=answer.txt
Welcome to the Packstack setup utility

The installation log file is available at: /var/tmp/packstack/20151124-062544-PERHtP/openstack-setup.log

Installing:
Clean Up                                             [ DONE ]
Discovering ip protocol version                      [ DONE ]
Setting up ssh keys                                  [ DONE ]
Preparing servers                                    [ DONE ]
Pre installing Puppet and discovering hosts' details [ DONE ]
Adding pre install manifest entries                  [ DONE ]
Installing time synchronization via NTP              [ DONE ]
Setting up CACERT                                    [ DONE ]
Adding AMQP manifest entries                         [ DONE ]
Adding MariaDB manifest entries                      [ DONE ]
Fixing Keystone LDAP config parameters to be undef if empty[ DONE ]
Adding Keystone manifest entries                     [ DONE ]
Adding Glance Keystone manifest entries              [ DONE ]
Adding Glance manifest entries                       [ DONE ]
Adding Cinder Keystone manifest entries              [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ DONE ]
Adding Cinder manifest entries                       [ DONE ]
Adding Nova API manifest entries                     [ DONE ]
Adding Nova Keystone manifest entries                [ DONE ]
Adding Nova Cert manifest entries                    [ DONE ]
Adding Nova Conductor manifest entries               [ DONE ]
Creating ssh keys for Nova migration                 [ DONE ]
Gathering ssh host keys for Nova migration           [ DONE ]
Adding Nova Compute manifest entries                 [ DONE ]
Adding Nova Scheduler manifest entries               [ DONE ]
Adding Nova VNC Proxy manifest entries               [ DONE ]
Adding OpenStack Network-related Nova manifest entries[ DONE ]
Adding Nova Common manifest entries                  [ DONE ]
Adding Neutron FWaaS Agent manifest entries          [ DONE ]
Adding Neutron LBaaS Agent manifest entries          [ DONE ]
Adding Neutron API manifest entries                  [ DONE ]
Adding Neutron Keystone manifest entries             [ DONE ]
Adding Neutron L3 manifest entries                   [ DONE ]
Adding Neutron L2 Agent manifest entries             [ DONE ]
Adding Neutron DHCP Agent manifest entries           [ DONE ]
Adding Neutron Metering Agent manifest entries       [ DONE ]
Adding Neutron Metadata Agent manifest entries       [ DONE ]
Checking if NetworkManager is enabled and running    [ DONE ]
Adding OpenStack Client manifest entries             [ DONE ]
Adding Horizon manifest entries                      [ DONE ]
Adding Swift Keystone manifest entries               [ DONE ]
Adding Swift builder manifest entries                [ DONE ]
Adding Swift proxy manifest entries                  [ DONE ]
Adding Swift storage manifest entries                [ DONE ]
Adding Swift common manifest entries                 [ DONE ]
Adding MongoDB manifest entries                      [ DONE ]
Adding Redis manifest entries                        [ DONE ]
Adding Ceilometer manifest entries                   [ DONE ]
Adding Ceilometer Keystone manifest entries          [ DONE ]
Adding post install manifest entries                 [ DONE ]
Copying Puppet modules and manifests                 [ DONE ]
Applying 192.168.174.20_prescript.pp
192.168.174.20_prescript.pp:                      [ ERROR ]
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.174.20_prescript.pp
Error: Could not find data item CONFIG_USE_SUBNETS in any Hiera data file and no default supplied at /var/tmp/packstack/27d1cdeff9274b538c4586aa63ea66fd/manifests/192.168.174.20_prescript.pp:2 on node rh-ctrl2.osius.com
You will find full trace in log /var/tmp/packstack/20151124-062544-PERHtP/manifests/192.168.174.20_prescript.pp.log
Please check log file /var/tmp/packstack/20151124-062544-PERHtP/openstack-setup.log for more information
Additional information:
 * File /root/keystonerc_admin has been created on OpenStack client host 192.168.174.20. To use the command line tools you need to source the file.
 * NOTE : A certificate was generated to be used for ssl, You should change the ssl certificate configured in /etc/httpd/conf.d/ssl.conf on 192.168.174.20 to use a CA signed cert.
 * To access the OpenStack ...
(more)
edit retag flag offensive close merge delete

Comments

Hi, I have the same problem, you have solved?

ErBussola gravatar imageErBussola ( 2015-11-24 09:38:39 -0500 )edit

5 answers

Sort by ยป oldest newest most voted
1

answered 2015-11-25 20:29:02 -0500

theillien gravatar image

This has been fixed for Liberty and Kilo and have been added to their respective testing repos according to comments 11 and 12 in the aforementioned bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1284978 (https://bugzilla.redhat.com/show_bug....).

The updated packages can be installed from either the Kilo or Liberty repos:

http://buildlogs.centos.org/centos/7/cloud/x86_64/openstack-kilo/ (http://buildlogs.centos.org/centos/7/...) http://buildlogs.centos.org/centos/7/cloud/x86_64/openstack-liberty/ (http://buildlogs.centos.org/centos/7/...)

I've run through the installation and have not had any issues. I imagine they will be released to the release repo soon.

edit flag offensive delete link more
3

answered 2015-11-24 16:32:59 -0500

openstack_kiran gravatar image

updated 2015-11-24 16:34:10 -0500

Following exact steps workaround the failure.

  1. rpm -e puppet [Uninstall puppet first as hiera is dependent for this]

  2. rpm -e hiera [Uninstall hiera-3.0.1-1.el7.noarch]

  3. rpm -ivh hiera-1.3.4-1.el7.noarch.rpm [Manually download exact 1.3.4 rpm and install manually]

  4. vi /etc/yum.repos.d/epel.repo [No go to this file and add new line [epel] ... gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 exclude=hiera*]

  5. yum install -y puppet-3.6.2-3.el7.noarch [Now install back the puppet which was uninstalled earlier]

  6. Reboot the server. [Reboot the server to take effect changes. There might be some service restart also enough. But I could not find exact service to restart to take effect above changes]

  7. rm /etc/puppet/hiera.yaml [Clear the stale hiera.yaml if any left out due to previous install failure]

  8. packstack --answer-file=/root/answer_file.txt [Install openstack AllinOne]

edit flag offensive delete link more

Comments

Thank you Kiran. ITs working perfect. :)

Amar gravatar imageAmar ( 2015-11-24 22:54:29 -0500 )edit

This did not work for me

theillien gravatar imagetheillien ( 2015-11-25 01:22:00 -0500 )edit

Have you follow the steps exactly. Because just now I did it twice and able to install after applying the work around. Are you getting exactly the same error related hiera?

Amar gravatar imageAmar ( 2015-11-25 02:54:58 -0500 )edit

Executed the steps exactly. On all of my nodes.

theillien gravatar imagetheillien ( 2015-11-25 04:25:30 -0500 )edit

Exactly I have followed the same steps in all nodes and its working for me. Thanks

Kannan R gravatar imageKannan R ( 2015-11-26 00:50:30 -0500 )edit
1

answered 2015-11-24 09:54:03 -0500

Harduk gravatar image

updated 2015-11-24 11:02:51 -0500

There is a bug for this and also a workaround here https://bugzilla.redhat.com/show_bug.cgi?id=1284978 (https://bugzilla.redhat.com/show_bug....)

edit flag offensive delete link more

Comments

I followed the instructions in the bugzilla link. Now my nodes have hiera 1.3.4 installed but I still get the same error:

ERROR : Error appeared during Puppet run: 192.168.100.45_prescript.pp
Error: Could not find data item CONFIG_USE_SUBNETS in any Hiera data file and no default supplied
rtmie gravatar imagertmie ( 2015-11-24 11:25:12 -0500 )edit

Still Error follow Hardduk, Any Update?

[epel]    exclude=hiera*,puppet
sawangpongm gravatar imagesawangpongm ( 2015-11-24 11:29:28 -0500 )edit

Ah, I think I need to clean up previously created /etc/puppet/hiera.yml and symlink to /etc/hiera.yaml

rtmie gravatar imagertmie ( 2015-11-24 11:48:07 -0500 )edit

Is this issue resolved ? Can you please give more details on workaround ? I am still seeing same issue after following the workaround in bug https://bugzilla.redhat.com/show_bug.cgi?id=1284978 (https://bugzilla.redhat.com/show_bug....) and clean up previously created /etc/puppet/hiera.yml ?

openstack_kiran gravatar imageopenstack_kiran ( 2015-11-24 12:30:15 -0500 )edit

Tried both of below and still failing with no luck.. any other way to solve this issue ? [epel] exclude=hiera,puppet [epel] exclude=hiera

openstack_kiran gravatar imageopenstack_kiran ( 2015-11-24 15:21:52 -0500 )edit
0

answered 2015-11-25 09:06:05 -0500

a thought I'd like to share, It's all one big mess, a horseshit actually. I use strong words not because I'm angry, it's negative emotion though - I'm sad. As long as the whole lot is not in EPEL it will never work, every once in a while (not rarely) we users hit one or another dep conflict in repos (you must have seen netdcf, etc). I'm sad because smart guys(&gals) cannot establish a close line of collaboration, cannot put it all onto one pile and work with it as one team which would be even better(simpler). I thought it could be just newer openstack-liberty problem but openstack-kilo fails the same way. best

edit flag offensive delete link more

Comments

Even before posting the question I tested Juno/Kilo/Liberty and on all I got the similar error related hiera. But once implemented the suggestion able to install the juno and kilo. not tried for liberty.

Amar gravatar imageAmar ( 2015-11-25 09:47:50 -0500 )edit
0

answered 2015-11-24 11:27:05 -0500

sawangpongm gravatar image

https://bugzilla.redhat.com/show_bug.cgi?id=1284978 (https://bugzilla.redhat.com/show_bug....)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

4 followers

Stats

Asked: 2015-11-24 08:29:48 -0500

Seen: 3,203 times

Last updated: Nov 25 '15