Bug 1086150 - Packstack fails with "Could not prefetch neutron_subnet provider 'neutron': undefined method `[]' for nil:NilClass"
Summary: Packstack fails with "Could not prefetch neutron_subnet provider 'neutron': u...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: openstack-packstack
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ivan Chavero
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-10 08:51 UTC by shilpa
Modified: 2015-12-02 16:08 UTC (History)
8 users (show)

Fixed In Version: openstack-puppet-modules-2014.1-9.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-02 03:10:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
provision.pp.log (4.12 KB, text/plain)
2014-04-10 11:32 UTC, shilpa
no flags Details
Openstack setup log (5.39 KB, text/x-log)
2014-04-10 11:32 UTC, shilpa
no flags Details
packstack answer file (17.58 KB, text/plain)
2014-04-10 11:33 UTC, shilpa
no flags Details


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 88305 0 None None None Never

Description shilpa 2014-04-10 08:51:54 UTC
Description of problem:
Packstack installation failing with error:
Could not prefetch neutron_subnet provider 'neutron': undefined method `[]' for nil:NilClass


Version-Release number of selected component (if applicable):
Fedora release 20 on a VM
rdo-release-icehouse-2.noarch

How reproducible: Consistent


Steps to Reproduce:
1. Download RDO icehouse and run packstack --allinone.

Actual results: 

# packstack --answer-file packstack-answers-20140410-120719.txt
Welcome to Installer setup utility

Installing:
Clean Up                                             [ DONE ]
Setting up ssh keys                                  [ DONE ]
Discovering hosts' details                           [ DONE ]
Adding pre install manifest entries                  [ DONE ]
Adding MySQL manifest entries                        [ DONE ]
Adding AMQP manifest entries                         [ DONE ]
Adding Keystone manifest entries                     [ DONE ]
Adding Glance Keystone manifest entries              [ DONE ]
Adding Glance manifest entries                       [ DONE ]
Installing dependencies for Cinder                   [ DONE ]
Adding Cinder Keystone manifest entries              [ DONE ]
Adding Cinder manifest entries                       [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ 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 ]
Adding Nova Compute manifest entries                 [ DONE ]
Adding Nova Scheduler manifest entries               [ DONE ]
Adding Nova VNC Proxy manifest entries               [ DONE ]
Adding Nova Common manifest entries                  [ DONE ]
Adding Openstack Network-related Nova 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 LBaaS Agent manifest entries          [ DONE ]
Adding Neutron Metadata Agent manifest entries       [ DONE ]
Adding OpenStack Client manifest entries             [ DONE ]
Adding Horizon manifest entries                      [ DONE ]
Adding Provisioning manifest entries                 [ DONE ]
Adding MongoDB manifest entries                      [ DONE ]
Adding Ceilometer manifest entries                   [ DONE ]
Adding Ceilometer Keystone manifest entries          [ DONE ]
Adding Nagios server manifest entries                [ DONE ]
Adding Nagios host manifest entries                  [ DONE ]
Adding post install manifest entries                 [ DONE ]
Preparing servers                                    [ DONE ]
Installing Dependencies                              [ DONE ]
Copying Puppet modules and manifests                 [ DONE ]
Applying 10.70.37.70_prescript.pp
10.70.37.70_prescript.pp:                            [ DONE ]       
Applying 10.70.37.70_mysql.pp
Applying 10.70.37.70_amqp.pp
10.70.37.70_mysql.pp:                                [ DONE ]   
10.70.37.70_amqp.pp:                                 [ DONE ]   
Applying 10.70.37.70_keystone.pp
Applying 10.70.37.70_glance.pp
Applying 10.70.37.70_cinder.pp
10.70.37.70_keystone.pp:                             [ DONE ]      
10.70.37.70_glance.pp:                               [ DONE ]      
10.70.37.70_cinder.pp:                               [ DONE ]      
Applying 10.70.37.70_api_nova.pp
10.70.37.70_api_nova.pp:                             [ DONE ]      
Applying 10.70.37.70_nova.pp
10.70.37.70_nova.pp:                                 [ DONE ]  
Applying 10.70.37.70_neutron.pp
10.70.37.70_neutron.pp:                              [ DONE ]     
Applying 10.70.37.70_osclient.pp
Applying 10.70.37.70_horizon.pp
Applying 10.70.37.70_provision.pp
10.70.37.70_osclient.pp:                             [ DONE ]       
10.70.37.70_provision.pp:                         [ ERROR ]         
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 10.70.37.70_provision.pp
Error: Could not prefetch neutron_subnet provider 'neutron': undefined method `[]' for nil:NilClass

SELinux is set to permissive. 

Logs attached:

1. provision.pp.log in  /var/tmp/packstack/20140410-132601-0Z8sjf/manifests/10.70.37.70_provision.pp.log

2. Openstack set up log in /var/tmp/packstack/20140410-132601-0Z8sjf/openstack-setup.log

3. Answer file used to run packstack.

Comment 1 shilpa 2014-04-10 11:32:10 UTC
Created attachment 884905 [details]
provision.pp.log

Comment 2 shilpa 2014-04-10 11:32:46 UTC
Created attachment 884906 [details]
Openstack setup log

Comment 3 shilpa 2014-04-10 11:33:41 UTC
Created attachment 884907 [details]
packstack answer file

Comment 4 Ivan Chavero 2014-04-22 07:08:45 UTC
This happens when the neutron values are already on the database, the neutron puppet module should know how to handle this.

Comment 5 Ivan Chavero 2014-04-23 21:55:44 UTC
The patch for this bug is under review: https://review.openstack.org/#/c/88305/

Comment 6 Ivan Chavero 2014-04-30 15:27:06 UTC
The patch has been merged, the fix it will be in the next package build

Comment 7 Vladimir 2014-05-25 18:12:39 UTC
Name        : openstack-puppet-modules
Arch        : noarch
Version     : 2014.1
Release     : 11.1.fc21
Size        : 4.2 M
Repo        : installed
From repo   : rawhide
Summary     : Puppet modules used to deploy OpenStack
URL         : https://github.com/redhat-openstack
License     : ASL 2.0 and GPLv2 and GPLv3
Description : A collection of Puppet modules used to install and configure
            : OpenStack.

# packstack --answer-file packstack-answers-20140525-220224.txt
Welcome to Installer setup utility

Installing:
Clean Up                                             [ DONE ]
Setting up ssh keys                                  [ DONE ]
Discovering hosts' details                           [ DONE ]
Adding pre install manifest entries                  [ DONE ]
Adding MySQL manifest entries                        [ DONE ]
Adding AMQP manifest entries                         [ DONE ]
Adding Keystone manifest entries                     [ DONE ]
Adding Glance Keystone manifest entries              [ DONE ]
Adding Glance manifest entries                       [ DONE ]
Installing dependencies for Cinder                   [ DONE ]
Adding Cinder Keystone manifest entries              [ DONE ]
Adding Cinder manifest entries                       [ DONE ]
Checking if the Cinder server has a cinder-volumes vg[ 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 Nova Common manifest entries                  [ DONE ]
Adding Nova Network manifest entries                 [ 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 Provisioning manifest entries                 [ DONE ]
Adding MongoDB manifest entries                      [ DONE ]
Adding Ceilometer manifest entries                   [ DONE ]
Adding Ceilometer Keystone manifest entries          [ DONE ]
Adding Nagios server manifest entries                [ DONE ]
Adding Nagios host manifest entries                  [ DONE ]
Adding post install manifest entries                 [ DONE ]
Preparing servers                                    [ DONE ]
Installing Dependencies                              [ DONE ]
Copying Puppet modules and manifests                 [ DONE ]
Applying 192.168.10.103_prescript.pp
192.168.10.103_prescript.pp:                      [ ERROR ]            
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.10.103_prescript.pp
Error: comparison of String with 15 failed at /var/tmp/packstack

thank you

Comment 8 Martin Magr 2014-05-26 10:48:51 UTC
Vladimit this is different issue. Please create separate bug for that and attach file packstack-answers-20140525-220224.txt to the bug.

Comment 9 Vladimir 2014-05-26 13:12:37 UTC
(In reply to Martin Magr from comment #8)
> Vladimit this is different issue. Please create separate bug for that and
> attach file packstack-answers-20140525-220224.txt to the bug.

I hurried,
sorry
thank you

Comment 10 Gabriel Somlo 2015-03-30 16:27:00 UTC
(In reply to Ivan Chavero from comment #6)
> The patch has been merged, the fix it will be in the next package build
>Status: POST → MODIFIED
> Fixed In Version: openstack-puppet-modules-2014.1-9.fc21

Ivan,

You mention 2014.1-9.fc21, is there any chance it could be pushed to testing soon ?

All I see in F21 updates-testing is
openstack-puppet-modules-2014.1.1-3.fc21.noarch.rpm

Thsnks !

Comment 11 Fedora End Of Life 2015-11-04 15:58:00 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 12 Fedora End Of Life 2015-12-02 03:10:33 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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