No provision to run a VLAN-only (no GRE, no VxLAN) configuration

Bug #1533651 reported by Florian Haas
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
neutron-api (Juju Charms Collection)
Fix Released
High
Liam Young

Bug Description

This charm currently does not allow forgoing GRE/VxLAN configuration altogether. Specifically in private cloud environments, using VLANs exclusively for segmentation is a perfectly valid use case, and adding overlay networks frequently introduces unnecessary complexity.

Attempted workarounds:

(1) Adding an empty "overlay-network-type:" entry into the configuration dictionary, like so:

neutron-api:
  openstack-origin: cloud:trusty-kilo
  overlay-network-type:
  vlan-ranges: 'physnet1:3000:3999'
  verbose: 'True'

This has overlay-network-type revert to the default of "gre":

grep tenant_network_types /etc/neutron/plugins/ml2/ml2_conf.ini
tenant_network_types = gre,vlan,flat,local

(2) Setting "overlay-network-type" to the empty string:

neutron-api:
  openstack-origin: cloud:trusty-kilo
  overlay-network-type: ''
  vlan-ranges: 'physnet1:3000:3999'
  verbose: 'True'

This creates an invalid tenant_network_types entry that ML2 chokes on:
grep tenant_network_types /etc/neutron/plugins/ml2/ml2_conf.ini
tenant_network_types = ,vlan,flat,local

Expected behavior:

The charm should provide a setting that sets tenant_network_types to just "vlan,flat,local".

James Page (james-page)
Changed in neutron-api (Juju Charms Collection):
status: New → Triaged
importance: Undecided → High
milestone: none → 17.01
James Page (james-page)
Changed in neutron-api (Juju Charms Collection):
assignee: nobody → Liam Young (gnuoy)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-neutron-api (master)

Fix proposed to branch: master
Review: https://review.openstack.org/407023

Changed in neutron-api (Juju Charms Collection):
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-neutron-api (master)

Reviewed: https://review.openstack.org/407023
Committed: https://git.openstack.org/cgit/openstack/charm-neutron-api/commit/?id=446de085a097f3aeda977945b2118b60b3f77ae8
Submitter: Jenkins
Branch: master

commit 446de085a097f3aeda977945b2118b60b3f77ae8
Author: Liam Young <email address hidden>
Date: Mon Dec 5 15:08:35 2016 +0000

    Add default-tenant-network-type config option

    - Add default-tenant-network-type config option to allow the default
      network type for a tenant network to be set

    - Fix rendering of overlay-network-type so that an empty string is
      valid

    Change-Id: Ib2325d273a0dd5e637f36113b951130387902777
    Closes-Bug: 1533651

Changed in neutron-api (Juju Charms Collection):
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-neutron-api (stable/16.10)

Fix proposed to branch: stable/16.10
Review: https://review.openstack.org/407540

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-neutron-api (stable/16.10)

Reviewed: https://review.openstack.org/407540
Committed: https://git.openstack.org/cgit/openstack/charm-neutron-api/commit/?id=6abba42cb66212d58b871774e4fe7319c17ee36a
Submitter: Jenkins
Branch: stable/16.10

commit 6abba42cb66212d58b871774e4fe7319c17ee36a
Author: Liam Young <email address hidden>
Date: Mon Dec 5 15:08:35 2016 +0000

    Add default-tenant-network-type config option

    - Add default-tenant-network-type config option to allow the default
      network type for a tenant network to be set

    - Fix rendering of overlay-network-type so that an empty string is
      valid

    - Fix amulet tests to pickup packages in virtual env

    Change-Id: Ib2325d273a0dd5e637f36113b951130387902777
    Closes-Bug: 1533651
    (cherry picked from commit 446de085a097f3aeda977945b2118b60b3f77ae8)

Revision history for this message
James Page (james-page) wrote :

Marking Fix Released as backport to most recent stable branch is complete.

Changed in neutron-api (Juju Charms Collection):
status: Fix Committed → Fix Released
Revision history for this message
Florian Haas (fghaas) wrote :

Thanks everyone, that's a really helpful fix!

Revision history for this message
Firl (celpa-firl) wrote :

How can I test this?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.