ipv6 address are not injected unless 1 fixed_ip exists, also it will be injected multiple times if there are more than 1

Bug #752019 reported by Trey Morris
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Trey Morris

Bug Description

this bug is in the _get_network_info in virt/xenapi/vmops.py function. It probably exists in the libvirt equivalent as well.

Related branches

Revision history for this message
Tushar Patil (tpatil) wrote :

Can you please explain how can I reproduce this problem? Can you attach any logs?
How can I assign multiple fixed ip address to an instance?

Thanks.

Thierry Carrez (ttx)
Changed in nova:
assignee: nobody → Trey Morris (tr3buchet)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Trey Morris (tr3buchet) wrote :

I noticed the issue in code. I didn't need to test for it, so there are no logs. You can reproduce the issue by assigning multiple fixed IPs, and also using ipv6. Currently multiple fixed_ips has to be done by direct manipulation of the fixed_ips table. Once you have created multiple fixed IPs, use the console to make a call to xenapi/vmops._get_network_info(). You'll see that the "ip6s" field in the returned dict will contain the ip6 address repeated multiple times. You can also perform the test by enabling ipv6, and assigning no fixed_ips (again requires direct manipulation of the table, though i guess this could be done through a console as well). When no fixed_ips exist for an instance, there will be no "ip6s" in the dict returned by _get_network_info() even if you had expected there to be.

I also just realized that inject_network_info() and reset_netowrk() can't be called from the os_api (or compute) because the parameters changed in xs_multi_nic. I fixed these issues.

Revision history for this message
Tushar Patil (tpatil) wrote :

Thank you very much for the detailed explanation. Now I am very clear about it.

Trey Morris (tr3buchet)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.2
status: Fix Committed → Fix Released
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.