Bug 1296603

Summary: neutron puppet: invalid value for Integer(): ""
Product: Red Hat OpenStack Reporter: Martin Pavlásek <mpavlase>
Component: openstack-packstackAssignee: Ivan Chavero <ichavero>
Status: CLOSED NOTABUG QA Contact: yeylon <yeylon>
Severity: high Docs Contact:
Priority: high    
Version: 8.0 (Liberty)CC: aopincar, aortega, jguiditt, jschluet, mmagr, mpavlase, srevivo, yeylon
Target Milestone: gaKeywords: Automation, AutomationBlocker, Reopened
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-03 04:07:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
logs.tar.gz
none
answerfile.txt
none
192.168.1.15_neutron.pp
none
defaults.yaml none

Description Martin Pavlásek 2016-01-07 16:02:58 UTC
Description of problem:
Packstack fails due failure in neutron puppet.

Version-Release number of selected component (if applicable):
openstack-puppet-modules-7.0.1-2.el7ost.noarch
openstack-packstack-puppet-7.0.0-0.8.dev1661.gaf13b7e.el7ost.noarch
openstack-packstack-7.0.0-0.8.dev1661.gaf13b7e.el7ost.noarch

Last spotted versions working of packages was:
openstack-puppet-modules-7.0.1-2.el7ost.noarch
openstack-packstack-puppet-7.0.0-0.7.dev1661.gaf13b7e.el7ost.noarch
openstack-packstack-7.0.0-0.7.dev1661.gaf13b7e.el7ost.noarch


How reproducible:
100%

Steps to Reproduce:
1. run packstack with given answerfile

Actual results:
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 172.16.32.76_neutron.pp
Error: invalid value for Integer(): "" at /var/tmp/packstack/fe1a41f8b77f47fab4855d3165e1fe69/modules/neutron/manifests/agents/ml2/ovs.pp:207 on node agzx0-mpavlase-rh-pud-pksk-network.novalocal
You will find full trace in log /var/tmp/packstack/20160107-071714-k5XBNX/manifests/172.16.32.76_neutron.pp.log
Please check log file /var/tmp/packstack/20160107-071714-k5XBNX/openstack-setup.log for more information
Additional information:
 * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
 * Warning: NetworkManager is active on 172.16.32.81, 172.16.32.76, 172.16.32.85, 172.16.32.12. OpenStack networking currently does not work on systems that have the Network Manager service enabled.
 * File /root/keystonerc_admin has been created on OpenStack client host 172.16.32.85. To use the command line tools you need to source the file.
 * To access the OpenStack Dashboard browse to http://172.16.32.85/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.


Expected results:
Packstack will prepare the deployment.

Additional info:

Comment 2 Martin Pavlásek 2016-01-07 16:12:32 UTC
Created attachment 1112492 [details]
logs.tar.gz

Comment 3 Martin Pavlásek 2016-01-07 16:13:39 UTC
Created attachment 1112493 [details]
answerfile.txt

Comment 4 Ivan Chavero 2016-01-15 02:58:40 UTC
This problem does not appear in an allinone packstack run from master source.
I'm gonna check with the latest liberty package.

Comment 5 Martin Magr 2016-01-15 10:21:54 UTC
Adding keywords back

Comment 6 Martin Magr 2016-01-15 10:26:10 UTC
Red Hat Bugzilla's database reported a query serialization error. Most likely this occurred because another user or process attempted to change the same data that you were attempting to change. 

I'm sorry for messing with flags in previous step, but I blame Buzilla

Comment 7 Martin Magr 2016-01-15 15:30:46 UTC
I cannot reproduce this either with the same version of packstack and OPM.

Considering the error message: Error: invalid value for Integer(): "" at /var/tmp/packstack/fe1a41f8b77f47fab4855d3165e1fe69/modules/neutron/manifests/agents/ml2/ovs.pp:207 on node agzx0-mpavlase-rh-pud-pksk-network.novalocal

The failing line [0] is checking size of array given as CONFIG_NEUTRON_OVS_TUNNEL_TYPES [1], which is basically value of CONFIG_NEUTRON_ML2_TYPE_DRIVERS [2]. According to your answer file, your value was: CONFIG_NEUTRON_ML2_TYPE_DRIVERS=local,flat,vlan,gre,vxlan

I tried the same value and the installation was successful. Can you please try to reproduce this again and attach here also /var/tmp/packstack/<snip>/manifests/<IP>_neutron.pp and also /var/tmp/packstack/<snip>/hieradata/defaults.yaml?

[0] https://github.com/redhat-openstack/openstack-puppet-modules/blob/stable/liberty/neutron/manifests/agents/ml2/ovs.pp#L207
[1] https://github.com/openstack/packstack/blob/stable/liberty/packstack/puppet/templates/neutron_ovs_agent.pp#L28
[2] https://github.com/openstack/packstack/blob/stable/liberty/packstack/plugins/neutron_350.py#L824

Comment 8 Ivan Chavero 2016-01-15 23:19:01 UTC
Could not reproduce either with the current pacsktack package: openstack-packstack-7.0.0-0.10.dev1684.g87ec498.el7ost

Closing this bug, pelease reopen if the problem persists

Comment 9 Martin Pavlásek 2016-01-18 09:15:05 UTC
I've forgotten to note, that the bug has appear in multinode topology (1 controller, 2 compute, 1 network node). Maybe on all-in-one deployment it works as expected.

See answerfile:

CONFIG_COMPUTE_HOSTS=172.16.32.81,172.16.32.12
CONFIG_CONTROLLER_HOST=172.16.32.85
CONFIG_NETWORK_HOSTS=172.16.32.76

Comment 11 Martin Pavlásek 2016-01-18 09:22:47 UTC
Created attachment 1115788 [details]
192.168.1.15_neutron.pp

Comment 12 Martin Pavlásek 2016-01-18 09:27:02 UTC
Created attachment 1115790 [details]
defaults.yaml

/var/tmp/packstack/<snip>/hieradata/defaults.yaml

Comment 13 Ivan Chavero 2016-01-18 17:18:54 UTC
*** Bug 1292028 has been marked as a duplicate of this bug. ***

Comment 14 Martin Magr 2016-01-19 09:51:28 UTC
Huh, now I'm even more confused. The error "invalid value for Integer()" is raised in ::neutron::agents::ml2::ovs class, but it is not even used in manifest from comment #11.

Comment 15 Martin Magr 2016-01-19 09:52:27 UTC
Ah-hah ... it's because the error actually was raised on host 192.168.1.16 :).

Comment 17 Martin Magr 2016-01-19 10:08:45 UTC
Ok, so 2 node (1controller+compute/network) install passed for me. Gonna try separate network.

Comment 20 Ivan Chavero 2016-02-03 04:07:33 UTC
I'm closing this bug since  it appears to be a configuration issue. Feel free to reopen it if the problem persists.

Comment 21 Martin Pavlásek 2016-02-03 10:24:35 UTC
The problem was in misconfiguration in packstack's answerfile (unsupported combination of networking), so this is not a real bug.