Can not have IPv4 or IPv6 only interfaces injected via /etc/network/interfaces.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Yongfeng Du |
Bug Description
When I use nova's /etc/network/
----
# 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:
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.
tags: | added: network |
Changed in nova: | |
assignee: | nobody → Chris Gacsal (chris-gacsal) |
Changed in nova: | |
assignee: | Chris Gacsal (chris-gacsal) → luong tuan (tuantuluong) |
Changed in nova: | |
assignee: | luong tuan (tuantuluong) → Jialiang (jialiang-song517) |
Changed in nova: | |
status: | Triaged → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
status: | Fix Committed → In Progress |
Changed in nova: | |
assignee: | Jialiang (jialiang-song517) → Drew Thorstensen (thorst) |
Changed in nova: | |
assignee: | Yongfeng Du (dolpherdu) → Stephen Finucane (stephenfinucane) |
Changed in nova: | |
assignee: | Stephen Finucane (stephenfinucane) → Yongfeng Du (dolpherdu) |
PS: I use Nova 2.17.0