← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1339888] [NEW] Fix whitespace for interfaces file with two interfaces and IPv6

 

Public bug reported:

If you have more than one interface and IPv6 is enabled, then the
interfaces file will be broken: the 'auto` line will be on the same line
as the previous stanza's gateway:

auto eth0
iface eth0 inet static
    address 192.168.0.2
    netmask 255.255.255.0
    gateway 192.168.0.1 auto eth1
iface eth1 inet static
    ...
    
vs
 
auto eth0
iface eth0 inet static
    address 192.168.0.2
    netmask 255.255.255.0
    gateway 192.168.0.1
auto eth1
iface eth1 inet static
    ...


The solution is fix the Jinja whitespace control in the template.

** Affects: nova
     Importance: Undecided
     Assignee: Rick Harris (rconradharris)
         Status: In Progress

** Changed in: nova
     Assignee: (unassigned) => Rick Harris (rconradharris)

** Changed in: nova
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1339888

Title:
  Fix whitespace for interfaces file with two interfaces and IPv6

Status in OpenStack Compute (Nova):
  In Progress

Bug description:
  If you have more than one interface and IPv6 is enabled, then the
  interfaces file will be broken: the 'auto` line will be on the same
  line as the previous stanza's gateway:

  auto eth0
  iface eth0 inet static
      address 192.168.0.2
      netmask 255.255.255.0
      gateway 192.168.0.1 auto eth1
  iface eth1 inet static
      ...
      
  vs
   
  auto eth0
  iface eth0 inet static
      address 192.168.0.2
      netmask 255.255.255.0
      gateway 192.168.0.1
  auto eth1
  iface eth1 inet static
      ...

  
  The solution is fix the Jinja whitespace control in the template.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1339888/+subscriptions


Follow ups

References