Re: [openstack-dev] [openstack-helm] Question about API endpoints

2018-03-04 Thread Hyunsun Moon
Hi Yoshihiko,

If you have physical LB in your environment, you might want to make use of 
NodePort for distributing the access to multiple controller nodes. In that 
case, it is recommended to set Values.network.external_policy_local to true so 
that you could eliminate unnecessary hops.
Ingress backed by nginx could be used of course, but as you pointed, IP address 
of the node where ingress pod resides will be the address you’re accessing, 
which might not be desirable in many use cases.
If you plan to try it on GCP/GKE, where the ingress controller is backed by 
GCP’s load-balancer service, NodePort + ingress seems valid option for exposing 
your service to external.
FYI, https://cloud.google.com/kubernetes-engine/docs/tutorials/http-balancer 


Hope this helps.

Hyunsun


> On 5 Mar 2018, at 2:34 PM, 渥美 慶彦  wrote:
> 
> Hi all,
> # Resend with openstack-helm tag
> 
> I try to deploy multinode OpenStack by openstack-helm
> and want to access OpenStack API endpoints from out of k8s nodes.
> To avoid service failure by node down, I think I need one virtual IP for the 
> endpoints.(like Pacemaker)
> Could you show me how to realize that if you have any information?
> 
> A. Deploy OpenStack services for NodePort, and distribute the access to nodes 
> using physical Load Balancer.
> B. Using Ingress?
>   I think Ingress is for L7 routing, so it can't be used to create VIP for 
> the endpoints.
> C. Any other ideas?
> 
> And when I try this on GCP/GKE, is there any difference from on-premises?
> 
> best regards
> 
> -- 
> 
> Yoshihiko Atsumi
> E-mail:atsumi.yoshih...@po.ntt-tx.co.jp
> 
> 
> 
> 
> __
> 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 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
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)  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 mailto:hyunsun.m...@gmail.com>>
> 答复: OpenStack List  <mailto:openstack-dev@lists.openstack.org>>
> 日期: 2017年7月12日 星期三 12:25
> 至: OpenStack List  <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) > <mailto:li...@cisco.com>> wrote:
>>  
>> Can you help to attach your kuryr.conf configuration file?
>>  
>> Regards,
>> Liping Mao
>>  
>> 发件人: Hyunsun Moon mailto:hyunsun.m...@gmail.com>>
>> 答复: OpenStack List > <mailto:openstack-dev@lists.openstack.org>>
>> 日期: 2017年7月12日 星期三 09:44
>> 至: OpenStack List > <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:opens

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


[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