OpenStack cannot assign IPv6 address to instance via dnsmasq dhcpserver
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Dazhao Yu |
Bug Description
Use dnsmasq as dhcp server, OpenStack deploy one instance, we found the deployed instance cannot get the targeted IPv6 address, but it can get the targeted IPv4 address.
At the earlier time, I found this issue when use Vmware vcenter driver, today I also found this issue is Linux env.
I use dnsmasq as dhcpv6 server, use 'tcpdump -i tapXXXX' to monitor the network data, and in deployed instance, and run "dhclient -6", the result of tcpdump as below:
22:02:54.354287 IP6 fe80::f816:
22:02:54.354689 IP6 fe80::184d:
22:02:55.434954 IP6 fe80::f816:
22:02:55.435283 IP6 fe80::184d:
22:02:57.587164 IP6 fe80::f816:
22:02:57.587456 IP6 fe80::184d:
22:02:59.354082 IP6 fe80::184d:
22:02:59.354922 IP6 fe80::f816:
from dnsmasq log, I got "no address available" error.
The root cause is dnsmasq need to read host file, and distinguish MAC addresses from IPv6 addresses.
the current host file as below:
fa:16:3e:
We need to wrap the ipv6 address with '[]' to let dnsmasq can distinguish MAC addresses from IPv6 addresses.
Changed in nova: | |
assignee: | nobody → Dazhao Yu (dzyu) |
tags: | added: vmware |
summary: |
- OpenStack cannot assign IPv6 address to booted instance due to vsphere - settings + OpenStack cannot assign IPv6 address to instance via dnsmamandnsmasq |
summary: |
- OpenStack cannot assign IPv6 address to instance via dnsmamandnsmasq + OpenStack cannot assign IPv6 address to instance via dnsmasq |
summary: |
- OpenStack cannot assign IPv6 address to instance via dnsmasq + OpenStack cannot assign IPv6 address to instance via dnsmasq dhcpserver |
tags: |
added: kvm removed: vmware |
tags: | added: vmware |
description: | updated |
affects: | nova → neutron |
Changed in neutron: | |
status: | New → In Progress |
Changed in neutron: | |
importance: | Undecided → Medium |
milestone: | none → icehouse-3 |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | icehouse-3 → 2014.1 |
who can give me some help about it?