Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1078217

Summary: Foreman does not allow to set ovs_vlan_ranges to physnet1 without vlan ids.
Product: Red Hat OpenStack Reporter: Sadique Puthen <sputhenp>
Component: openstack-puppet-modulesAssignee: RHOS Maint <rhos-maint>
Status: CLOSED DUPLICATE QA Contact: Ami Jeain <ajeain>
Severity: high Docs Contact:
Priority: high    
Version: 4.0CC: aberezin, jstransk, mmagr, morazi, rhos-maint, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-28 14:51:45 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:
Embargoed:

Description Sadique Puthen 2014-03-19 12:19:57 UTC
Description of problem:

I am trying to setup provider external networks as flat networks.

This is explained in https://access.redhat.com/site/solutions/728613 and is the recommended configuration for external networks.

For this I must set below entry in /etc/neutron/plugin.ini for ovs.

network_vlan_ranges=physnet1

Or

network_vlan_ranges=physnet1,physnet2

if there are 2 external networks.

Setting this using override parameter for ovs_vlan_ranges is not possible. If I set it to physnet1, it fails as below.

# puppet agent -t
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/hamysql_active_node.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/network.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ipa_client_configured.rb
Info: Loading facts in /var/lib/puppet/lib/facter/netns_support.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: network vlan ranges are invalid. on node controller.mytestopenstack.org
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

However if I override it as "physnet1:333:666" with vlan id, it works.

Please make the above possible to set provider external networks.

Comment 2 Jiri Stransky 2014-03-28 14:39:50 UTC
I was able to reproduce this. However, it cannot be fixed within openstack-foreman-installer. It is caused by neutron puppet module we have in openstack-puppet-modules (i'm changing this bug to track aginst that component). The fix is already present in the upstream neutron module but we need to update the link in openstack-puppet-modules.

We have this:

https://github.com/stackforge/puppet-neutron/blob/1cc2b42ceb39b199d96945eb4e6e972e6b32a2b8/lib/puppet/parser/functions/validate_network_vlan_ranges.rb#L29-L41

But we also need this bit:

https://github.com/stackforge/puppet-neutron/blob/3425620e071f94b9917f93366503fa767c7e9301/lib/puppet/parser/functions/validate_network_vlan_ranges.rb#L39-L41

Comment 3 Martin Magr 2014-03-28 14:51:45 UTC

*** This bug has been marked as a duplicate of bug 1066549 ***

Comment 4 Mike Orazi 2014-12-15 15:29:31 UTC
Belatedly removing needinfo since that should be tracked on the other bug.