Create ip_v6 network failed

Bug #1717786 reported by wangzhh
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kuryr-libnetwork
Confirmed
Undecided
Unassigned

Bug Description

Bug reproduce:
1.Create a netwrok ipv6 subnet.
Here is the net info:
[stack@localhost api]$ neutron net-show 6beecca9-3fb5-4c95-8a4c-35075577a85e
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| availability_zone_hints | |
| availability_zones | nova |
| created_at | 2017-09-17T14:28:57Z |
| description | |
| id | 6beecca9-3fb5-4c95-8a4c-35075577a85e |
| ipv4_address_scope | |
| ipv6_address_scope | |
| mtu | 1450 |
| name | 2001:0DB8:02de |
| port_security_enabled | True |
| project_id | b2343e46ff534dbd93122d2d0853254a |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 11 |
| revision_number | 3 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | 63e0e73e-865f-4d4b-83da-ca96c5ee0966 |
| tags | |
| tenant_id | b2343e46ff534dbd93122d2d0853254a |
| updated_at | 2017-09-17T14:28:58Z |
+---------------------------+--------------------------------------+

[stack@localhost api]$ neutron subnet-show 63e0e73e-865f-4d4b-83da-ca96c5ee0966
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+-------------------+---------------------------------------------------------------------------+
| Field | Value |
+-------------------+---------------------------------------------------------------------------+
| allocation_pools | {"start": "2001:db8:2de::2", "end": "2001:db8:2de:0:ffff:ffff:ffff:ffff"} |
| cidr | 2001:db8:2de::/64 |
| created_at | 2017-09-17T14:28:58Z |
| description | |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 2001:db8:2de::1 |
| host_routes | |
| id | 63e0e73e-865f-4d4b-83da-ca96c5ee0966 |
| ip_version | 6 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | 2001:0DB8:02de |
| network_id | 6beecca9-3fb5-4c95-8a4c-35075577a85e |
| project_id | b2343e46ff534dbd93122d2d0853254a |
| revision_number | 0 |
| service_types | |
| subnetpool_id | |
| tags | |
| tenant_id | b2343e46ff534dbd93122d2d0853254a |
| updated_at | 2017-09-17T14:28:58Z |
+-------------------+---------------------------------------------------------------------------+

2.Create subnetpool:
neutron subnetpool-create --pool-prefix 2001:db8:2de::/64 neutron_poolx

3.sudo docker network create --driver=kuryr --ipam-driver=kuryr --ipv6 --subnet fd7d:a2f4:9bb9::/64 --gateway=fd7d:a2f4:9bb9::1 --ip-range fd7d:a2f4:9bb9::/64 -o neutron.pool.name=neutron_poolx --ipam-opt=neutron.pool.name=neutron_poolx foo1

Create failed and get an error:

2017-09-17 11:41:12.499 70573 ERROR kuryr_libnetwork.utils [-] Unexpected error happened: No subnetpools with {'name': 'kuryr'} is found.: NoResourceException: No subnetpools with {'name': 'kuryr'} is found.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/stack/kuryr-libnetwork/kuryr_libnetwork/controllers.py", line 1479, in ipam_request_pool
    subnet_cidr, pool_id = _get_cidr_from_subnetpool(name=pool_name)
  File "/opt/stack/kuryr-libnetwork/kuryr_libnetwork/controllers.py", line 475, in _get_cidr_from_subnetpool
    .format(kwargs))
NoResourceException: No subnetpools with {'name': 'kuryr'} is found.
2017-09-17 11:41:12.500 70573 INFO werkzeug [-] 127.0.0.1 - - [17/Sep/2017 11:41:12] "POST /IpamDriver.RequestPool HTTP/1.1" 500 -

hongbin (hongbin034)
Changed in kuryr-libnetwork:
status: New → Confirmed
Revision history for this message
Kien Nguyen (kiennt2609) wrote :

The syntax should be neutron.pool.v6.name. But it is just a minor.
This bug happens because V6 stills False and Pool is empty. I have raised an issue in moby/moby, wait for Moby developers confirmation:

https://github.com/moby/moby/issues/34902

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.