← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1355171] Re: Can not have IPv4 or IPv6 only interfaces injected via /etc/network/interfaces.

 

Reviewed:  https://review.opendev.org/c/openstack/nova/+/465891
Committed: https://opendev.org/openstack/nova/commit/8107e5ced8f3e644e49a2fd1eff51916258c40e7
Submitter: "Zuul (22348)"
Branch:    master

commit 8107e5ced8f3e644e49a2fd1eff51916258c40e7
Author: Jialiang <jialiang_song517@xxxxxxx>
Date:   Wed Jan 6 04:23:23 2016 -0800

    Update the file for IPv4-only or IPv6-only network
    
    Clean the interface template file by making both IP versions independent,
    including when using LXC containers.
    
    Co-Authored-By: Yongfeng Du <dolpher.du@xxxxxxxxx>
    
    Change-Id: If0843502fe0a85cbd5eff777d9260c90cea4812a
    Closes-Bug:#1355171


** Changed in: nova
       Status: In Progress => Fix Released

-- 
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/1355171

Title:
  Can not have IPv4 or IPv6 only interfaces injected via
  /etc/network/interfaces.

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  When I use nova's /etc/network/interfaces file injection via configdisk and set up by cloud-init, I end up with a not working /etc/network/interfaces like this one (notice the missing line feed and the "address None") : 
  ----
  # Injected by Nova on instance boot
  #
  # This file describes the network interfaces available on your system
  # and how to activate them. For more information, see interfaces(5).

  # The loopback network interface
  auto lo
  iface lo inet loopback

  auto eth0
  iface eth0 inet static
          address 10.1.0.14
          netmask 255.255.0.0
          broadcast 10.1.255.255
          gateway 10.1.0.1

  iface eth0 inet6 static
      address None
      netmask Noneauto eth1
  iface eth1 inet static
          address None
          netmask None
          broadcast None

  iface eth1 inet6 static
      address XXXX:XXXX:XXXX:XXXX::c
      netmask 64

  ----

  I use two interfaces for two different networks one v4 only on eth0
  and one v6 only on eth1.

  I also attached a patch that corrects both issues.

  About the second issue, since the patched version checks for IPv6
  address existence, it might be possible to delete the use_ipv6 check.

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



References