IPv6 network doesn't create namespace, dhcp port

Bug #1367500 reported by Sagi (Sergey) Shnaidman
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Xu Han Peng
Juno
Fix Released
Undecided
Unassigned

Bug Description

IPv6 networking has been changed during last commits.
Create network and IPv6 subnet with default settings. Create port in the network:
it doesn't create any namespace, it doesn't create DHCP port in the subnet, although port get IP from DHCP server.
Although IPv4 networking continues to work as required.

$ neutron net-create netto
Created a new network:
+-----------------+--------------------------------------+
| Field | Value |
+-----------------+--------------------------------------+
| admin_state_up | True |
| id | 849b4dbf-0914-4cfb-956b-e0cc5d8054ab |
| name | netto |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 5664b23312504826818c9cb130a9a02f |
+-----------------+--------------------------------------+

$ neutron subnet-create --ip-version 6 netto 2011::/64
Created a new subnet:
+-------------------+----------------------------------------------------------+
| Field | Value |
+-------------------+----------------------------------------------------------+
| allocation_pools | {"start": "2011::2", "end": "2011::ffff:ffff:ffff:fffe"} |
| cidr | 2011::/64 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 2011::1 |
| host_routes | |
| id | e10300d1-194f-4712-b2fc-2107ac3fe909 |
| ip_version | 6 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | |
| network_id | 849b4dbf-0914-4cfb-956b-e0cc5d8054ab |
| tenant_id | 5664b23312504826818c9cb130a9a02f |
+-------------------+----------------------------------------------------------+

$ neutron port-create netto
Created a new port:
+-----------------------+--------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| fixed_ips | {"subnet_id": "e10300d1-194f-4712-b2fc-2107ac3fe909", "ip_address": "2011::2"} |
| id | 175eaa91-441e-48df-9267-bc7fc808dce8 |
| mac_address | fa:16:3e:26:51:79 |
| name | |
| network_id | 849b4dbf-0914-4cfb-956b-e0cc5d8054ab |
| security_groups | c7756502-5eda-4f43-9977-21cfb73b4d4e |
| status | DOWN |
| tenant_id | 5664b23312504826818c9cb130a9a02f |
+-----------------------+--------------------------------------------------------------------------------+

$ neutron port-list | grep e10300d1-194f-4712-b2fc-2107ac3fe909
| 175eaa91-441e-48df-9267-bc7fc808dce8 | | fa:16:3e:26:51:79 | {"subnet_id": "e10300d1-194f-4712-b2fc-2107ac3fe909", "ip_address": "2011::2"} |

there is no DHCP port

$ ip netns
qrouter-b7f94a05-8b02-4221-9330-bb2d470f6b0c
(default namespace form devstack install)

Revision history for this message
Xu Han Peng (xuhanp) wrote :

I can recreate this problem in my env.

Changed in neutron:
assignee: nobody → Xu Han Peng (xuhanp)
Revision history for this message
Sagi (Sergey) Shnaidman (sshnaidm) wrote :

Yeah, seems like it was an issue in my devstack installation.
With fresh install it's not reproducible.

Changed in neutron:
status: New → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
status: Invalid → In Progress
Kyle Mestery (mestery)
Changed in neutron:
importance: Undecided → Medium
milestone: none → kilo-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/131763

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/123671
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=1b66e11b5d8c0b3de0610ca02c3e10b6f64ae375
Submitter: Jenkins
Branch: master

commit 1b66e11b5d8c0b3de0610ca02c3e10b6f64ae375
Author: Xu Han Peng <email address hidden>
Date: Wed Sep 24 17:37:23 2014 +0800

    Create DHCP port for IPv6 subnet

    There is a bug in dhcp agent code that when first port is created
    in an IPv6 subnet, DHCP port is not automatically created.

    This fix resolves this problem by removing the IP version check
    in configure_dhcp_for_network method.

    Change-Id: If3f405d367a7099d9f33d72d11ffcb7a393abe23
    Closes-Bug: #1367500

Changed in neutron:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/juno)

Reviewed: https://review.openstack.org/131763
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=8575fe95a6f1b46fb8ad645f26928471d5f53c9e
Submitter: Jenkins
Branch: stable/juno

commit 8575fe95a6f1b46fb8ad645f26928471d5f53c9e
Author: Xu Han Peng <email address hidden>
Date: Wed Sep 24 17:37:23 2014 +0800

    Create DHCP port for IPv6 subnet

    There is a bug in dhcp agent code that when first port is created
    in an IPv6 subnet, DHCP port is not automatically created.

    This fix resolves this problem by removing the IP version check
    in configure_dhcp_for_network method.

    Change-Id: If3f405d367a7099d9f33d72d11ffcb7a393abe23
    Closes-Bug: #1367500
    (cherry picked from commit 1b66e11b5d8c0b3de0610ca02c3e10b6f64ae375)

tags: added: in-stable-juno
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/163783

Thierry Carrez (ttx)
Changed in neutron:
milestone: kilo-1 → 2015.1.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (stable/icehouse)

Change abandoned by Alexey I. Froloff (<email address hidden>) on branch: stable/icehouse
Review: https://review.openstack.org/163783
Reason: Not saying that I agree, but IPv6 support in Icehouse is not complete. There were big improvements in Juno/Kilo and our usage scenario makes certain assumptions, which doesn't fit everyone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.