Nova-network creates /120 IPv6 subnet mask instead of /64

Bug #1011122 reported by Filipe Spencer Lopes dos Santos
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Takashi Sogabe

Bug Description

When I create a new network with IPv6, it sets the netmask_ipv6 and cidr_v6 in the database to 120, which is the equivalent in address space of a /24 in IPv4. This should not be happening since the smallest subnet in IPv6 is theoretically a /64 (the last 64 bits are part of the host address).
Radvd (which is used by nova-network) also requires as /64 for autoconf at the client(instance) side.

Command used:
nova-manage network create novanet --fixed_range_v4=10.153.200.0/24 --fixed_range_v6=2001:6f8:1477:1111::/64 --num_networks=1 --network_size=250 --bridge=br100 --bridge_interface=eth0

I'm not saying smaller subnets shouldn't be possible, but if you specify a /64 subnet (or larger) it should remain so.

Revision history for this message
Filipe Spencer Lopes dos Santos (filipe-spencerlopes) wrote :

Extra: Milestone is current essex release in the ubuntu 12.04 repos

Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
Takashi Sogabe (sogabe)
Changed in nova:
assignee: nobody → Takashi Sogabe (sogabe)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/14373

Changed in nova:
status: Confirmed → In Progress
Sean Dague (sdague)
Changed in nova:
milestone: none → grizzly-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/14373
Committed: http://github.com/openstack/nova/commit/8a196b2ec7221ee3e7cd189da18d6630699ddc94
Submitter: Jenkins
Branch: master

commit 8a196b2ec7221ee3e7cd189da18d6630699ddc94
Author: Takashi Sogabe <email address hidden>
Date: Fri Oct 12 11:24:42 2012 +0900

    Extend IPv6 subnets to /64 if network_size is set smaller than /64

    If cidr_v6 is set with network_size smaller than /64, this fix
    extends the subnet to /64. Fixes bug #1011122.

    Radvd (which is used by nova-network) also requires as /64 for
    autoconf at the client(instance) side.

    Change-Id: I0a6ac363e46dd9b8c9cfb750ce37720fdbc56a1f

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-1 → 2013.1
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.