Create ip_v6 network failed
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-
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+------
| Field | Value |
+------
| admin_state_up | True |
| availability_
| availability_zones | nova |
| created_at | 2017-09-
| description | |
| id | 6beecca9-
| ipv4_address_scope | |
| ipv6_address_scope | |
| mtu | 1450 |
| name | 2001:0DB8:02de |
| port_security_
| project_id | b2343e46ff534db
| provider:
| provider:
| provider:
| revision_number | 3 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | 63e0e73e-
| tags | |
| tenant_id | b2343e46ff534db
| updated_at | 2017-09-
+------
[stack@localhost api]$ neutron subnet-show 63e0e73e-
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:
| cidr | 2001:db8:2de::/64 |
| created_at | 2017-09-
| description | |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 2001:db8:2de::1 |
| host_routes | |
| id | 63e0e73e-
| ip_version | 6 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | 2001:0DB8:02de |
| network_id | 6beecca9-
| project_id | b2343e46ff534db
| revision_number | 0 |
| service_types | |
| subnetpool_id | |
| tags | |
| tenant_id | b2343e46ff534db
| updated_at | 2017-09-
+------
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=
Create failed and get an error:
2017-09-17 11:41:12.499 70573 ERROR kuryr_libnetwor
Traceback (most recent call last):
File "/usr/lib/
rv = self.dispatch_
File "/usr/lib/
return self.view_
File "/opt/stack/
subnet_cidr, pool_id = _get_cidr_
File "/opt/stack/
.format(
NoResourceExcep
2017-09-17 11:41:12.500 70573 INFO werkzeug [-] 127.0.0.1 - - [17/Sep/2017 11:41:12] "POST /IpamDriver.
Changed in kuryr-libnetwork: | |
status: | New → Confirmed |
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