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

2017-07-11 Thread Hyunsun Moon
Thanks Liping.
FYI, I use Docker version 17.06.0-ce.

$ docker --version
Docker version 17.06.0-ce, build 02c1d87

Hyunsun


> On 12 Jul 2017, at 1:51 PM, Liping Mao (limao) <li...@cisco.com> wrote:
> 
> 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 
> <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 
> <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.m...@gmail.com <mailto:hyunsun.m...@gmail.com>>
> 答复: OpenStack List <openstack-dev@lists.openstack.org 
> <mailto:openstack-dev@lists.openstack.org>>
> 日期: 2017年7月12日 星期三 12:25
> 至: OpenStack List <openstack-dev@lists.openstack.org 
> <mailto:openstack-dev@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 <http://10.1.1.161:35357/v2.0>
> auth_type = password
>  
> Hyunsun
>  
>  
>> On 12 Jul 2017, at 11:34 AM, Liping Mao (limao) <li...@cisco.com 
>> <mailto:li...@cisco.com>> wrote:
>>  
>> Can you help to attach your kuryr.conf configuration file?
>>  
>> Regards,
>> Liping Mao
>>  
>> 发件人: Hyunsun Moon <hyunsun.m...@gmail.com <mailto:hyunsun.m...@gmail.com>>
>> 答复: OpenStack List <openstack-dev@lists.openstack.org 
>> <mailto:openstack-dev@lists.openstack.org>>
>> 日期: 2017年7月12日 星期三 09:44
>> 至: OpenStack List <openstack-dev@lists.openstack.org 
>> <mailto:openstack-dev@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?
>>

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

2017-07-11 Thread Liping Mao (limao)
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.m...@gmail.com>
答复: OpenStack List <openstack-dev@lists.openstack.org>
日期: 2017年7月12日 星期三 12:25
至: OpenStack List <openstack-dev@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) 
<li...@cisco.com<mailto:li...@cisco.com>> wrote:

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

Regards,
Liping Mao

发件人: Hyunsun Moon <hyunsun.m...@gmail.com<mailto:hyunsun.m...@gmail.com>>
答复: OpenStack List 
<openstack-dev@lists.openstack.org<mailto:openstack-dev@lists.openstack.org>>
日期: 2017年7月12日 星期三 09:44
至: OpenStack List 
<openstack-dev@lists.openstack.org<mailto:openstack-dev@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-requ...@lists.openstack.org<mailto:openstack-dev-requ...@lists.openstack.org>?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2017-07-11 Thread Hyunsun Moon
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) <li...@cisco.com> wrote:
> 
> Can you help to attach your kuryr.conf configuration file?
>  
> Regards,
> Liping Mao
>  
> 发件人: Hyunsun Moon <hyunsun.m...@gmail.com <mailto:hyunsun.m...@gmail.com>>
> 答复: OpenStack List <openstack-dev@lists.openstack.org 
> <mailto:openstack-dev@lists.openstack.org>>
> 日期: 2017年7月12日 星期三 09:44
> 至: OpenStack List <openstack-dev@lists.openstack.org 
> <mailto:openstack-dev@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-requ...@lists.openstack.org 
> <mailto:openstack-dev-requ...@lists.openstack.org>?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev 
> <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev>

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2017-07-11 Thread Liping Mao (limao)
Can you help to attach your kuryr.conf configuration file?

Regards,
Liping Mao

发件人: Hyunsun Moon <hyunsun.m...@gmail.com>
答复: OpenStack List <openstack-dev@lists.openstack.org>
日期: 2017年7月12日 星期三 09:44
至: OpenStack List <openstack-dev@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-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2017-07-11 Thread Hyunsun Moon
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-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev