[openstack-dev] [kuryr] Subnet pool does not exist error

Liping Mao (limao) limao at cisco.com
Wed Jul 12 04:51:34 UTC 2017


Hi Hyunsun,

From you log:

2017-07-11 09:21:20.221 12 ERROR kuryr_libnetwork.utils [-] Unexpected error happened: Subnet with pool f96b5ff6-4065-4eed-9854-3a54122f90c9 does not exist.: KuryrException: Subnet with pool f96b5ff6-4065-4eed-9854-3a54122f90c9 does not exist.

It looks like failed in L1560:
1487 @app.route('/IpamDriver.RequestAddress', methods=['POST'])
1488 def ipam_request_address():
…
1559     if not any(subnet) and not is_gateway:
1560         raise exceptions.KuryrException(
1561             ("Subnet with pool {0} does not exist.").format(pool_id))

This problem looks like hit the following bug I hit before:
https://bugs.launchpad.net/kuryr-libnetwork/+bug/1677316

libnetwork has a bug here, I am not sure that bug has fixed in your docker:
https://github.com/docker/libnetwork/issues/1702

I did not test more at that time, because it did not released at that time.
Let me double check if it has fixed in the latest docker and update in Launchpad this week.

Thanks.

Regards,
Liping Mao

发件人: Hyunsun Moon <hyunsun.moon at gmail.com>
答复: OpenStack List <openstack-dev at lists.openstack.org>
日期: 2017年7月12日 星期三 12:25
至: OpenStack List <openstack-dev at lists.openstack.org>
主题: Re: [openstack-dev] [kuryr] Subnet pool does not exist error

Here it is.

$ cat /etc/kuryr/kuryr.conf
[DEFAULT]
bindir = /usr/libexec/kuryr
capability_scope = global
log_dir = /var/log/kuryr
log_file = kuryr.log

[neutron]
project_name = admin
username = admin
password = nova
auth_url = http://10.1.1.161:35357/v2.0
auth_type = password

Hyunsun


On 12 Jul 2017, at 11:34 AM, Liping Mao (limao) <limao at cisco.com<mailto:limao at cisco.com>> wrote:

Can you help to attach your kuryr.conf configuration file?

Regards,
Liping Mao

发件人: Hyunsun Moon <hyunsun.moon at gmail.com<mailto:hyunsun.moon at gmail.com>>
答复: OpenStack List <openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>>
日期: 2017年7月12日 星期三 09:44
至: OpenStack List <openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>>
主题: [openstack-dev] [kuryr] Subnet pool does not exist error

Hi all,
I’m getting an exception when creating a service with Kuryr network.

I created and installed kuryr plugin by building plugin rootfs from the source code.
Here’s what I did after that.


$ sudo docker network create --driver=kuryr/libnetwork2:latest --ipam-driver=kuryr/libnetwork2:latest --subnet=10.10.10.0/24 --gateway=10.10.10.1 kuryr-net

$ sudo docker service create --name redis --network kuryr-net redis:3.0.6
Neutron does not get any request from Kuryr.
Here’s the error message collected from /var/log/kuryr/kuryr.log.

2017-07-11 09:21:06.950 12 INFO kuryr_libnetwork.controllers [-] Creating subnetpool with the given pool CIDR

2017-07-11 09:21:20.221 12 ERROR kuryr_libnetwork.utils [-] Unexpected error happened: Subnet with pool f96b5ff6-4065-4eed-9854-3a54122f90c9 does not exist.: KuryrException: Subnet with pool f96b5ff6-4065-4eed-9854-3a54122f90c9 does not exist.

2017-07-11 09:36:28.115 13 INFO kuryr_libnetwork.controllers [-] Subnet already deleted.

2017-07-11 09:36:28.121 13 CRITICAL kuryr [-] Unhandled error: IOError: write error

2017-07-11 09:36:28.121 13 ERROR kuryr IOError: write error

2017-07-11 09:36:28.121 13 ERROR kuryr
I tried creating a network with existing Neutron subnetpool as below, but the result was the same.
$ sudo docker network create --driver=kuryr/libnetwork2:latest --ipam-driver=kuryr/libnetwork2:latest --subnet=10.10.10.0/24 --gateway=10.10.10.1 --ip-range=10.10.10.0/24 -o neutron.pool.name=kuryr --ipam-opt=neuton.pool.name=kuryr kuryr-net

Any suggestion?

Hyunsun
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request at lists.openstack.org<mailto:OpenStack-dev-request at lists.openstack.org>?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170712/163909b2/attachment-0001.html>


More information about the OpenStack-dev mailing list