Thursday, 2018-11-08

*** hongbin has joined #openstack-zun02:13
openstackgerritHongbin Lu proposed openstack/python-zunclient master: Handle the case that a generic api version  https://review.openstack.org/61606402:33
openstackgerritHongbin Lu proposed openstack/python-zunclient master: Add documentation on the python API  https://review.openstack.org/61606902:33
openstackgerritHongbin Lu proposed openstack/zun master: Fix race condition on multinode  https://review.openstack.org/61544402:47
openstackgerritHongbin Lu proposed openstack/zun master: [WIP] Implement delete network  https://review.openstack.org/61540202:47
openstackgerritMerged openstack/python-zunclient master: Fix help message for action-list  https://review.openstack.org/61635602:59
*** janki has joined #openstack-zun04:36
*** hongbin has quit IRC06:02
openstackgerritMerged openstack/python-zunclient master: Remove unused config for devstack job  https://review.openstack.org/61539006:44
openstackgerritMerged openstack/python-zunclient stable/rocky: Handle different endpoint format  https://review.openstack.org/61469006:49
openstackgerritMerged openstack/zun master: Set capsule.host once it is running  https://review.openstack.org/61540107:16
openstackgerritMerged openstack/zun master: Use template for lower constraints jobs  https://review.openstack.org/61148007:16
openstackgerritMerged openstack/zun master: Add a job to publish release notes  https://review.openstack.org/61148107:16
openstackgerritMerged openstack/zun master: Add job for checking the test coverage  https://review.openstack.org/61148207:16
*** janki has quit IRC12:20
*** janki has joined #openstack-zun13:29
*** irclogbot_3 has quit IRC14:02
*** janki has quit IRC14:30
*** hongbin has joined #openstack-zun14:55
GaasmannIs there any restriction or configuration for attaching volumes in Zun? I'm trying to create a container with a volume attached, the volume got created in cinder but the container creation is stuck with status "Creating" forever.16:39
GaasmannWe're using cinder backed by Ceph16:39
*** nicolasbock_ has joined #openstack-zun17:09
*** irclogbot_3 has joined #openstack-zun18:00
hongbinGaasmann: as far as i know, there should not be any restriction18:04
GaasmannI see a lot of commit about volumes between rocky and master, I'll try with master to see if it resolves the issue18:05
hongbinGaasmann: if the container creation stuck at "Creating", there is possibly something printed on the log?18:05
GaasmannNothing useful http://paste.openstack.org/show/734438/18:07
hongbinGaasmann:  i see, you are using zun with kolla18:08
hongbinGaasmann: i am not sure if the cinder feature will work with kolla properly, i will give it a try later18:09
Gaasmannthanks18:10
hongbinlet me create a bug to track this issue and get back to it after the summit18:11
Gaasmannsure18:12
*** yevi has joined #openstack-zun18:22
egonzalezhongbin iirc there was some volume missing in zun_compute containers to allow attach volumes (in kolla side)18:32
hongbinegonzalez: i see19:05
hongbinegonzalez: so enhancement needed to be done in kolla side?19:06
egonzalezyep, i think you have a patch in progress for that19:07
hongbini don't remember i have any patch about volume, but let me double check19:08
hongbincouldn't search any patch about volume19:09
hongbinbut i am on it19:09
yeviI am Using version 1.0.1 I can spin up containers in the ui and cli. I can attach to an interactive session with cli, but I can not connect via zun-wsproxy through zun-ui. Debug for zun-api: http://paste.openstack.org/show/734442/21:22
yeviI assume I missed a config option somewhere, but not sure what. wsproxy shows - proxying from 10.10.5.80:6784 to None:None; which is why I assume it is refusing the connection21:24
yeviThoughts?21:25
*** nicolasbock_ has quit IRC21:32
hongbinyevi: pong22:08
hongbinyevi: which version you were using? (i.e. master, rocky, queens)22:10
hongbinsorry, let me check 1.0.122:11
yeviqueens22:12
hongbinyevi: i see, first, i would suggest to check this option: [websocket_proxy] base_url22:14
hongbinyevi: here is the document: https://docs.openstack.org/zun/queens/install/compute-install-ubuntu.html22:14
hongbinyevi: so, make sure the base_url is accessible from end-users (zun-ui users), which hopefully could fix the problem22:15
yeviit is set with wss:// to hit the controller node over port 678422:15
yevicompute has that22:16
hongbinyevi: the url should allow end-users to hit the compute node (docker daemon) directly22:16
yeviok, so the wsproxy and docker should be on the same node?22:17
yevior is there a way to tell wsproxy where the docker daemon resides?22:18
hongbinyevi: no necessary, wsproxy could be deployed on the controller node22:18
hongbinyevi: sorry, let me clarify (hope i can explain everything clearly)22:19
yeviI have the docker_remote_api_url pointing back to the docker daemon over port 237522:19
hongbinyevi: there are two things to check, 1. controller node's wsproxy config, 2. compute node's config22:20
hongbinyevi: for controller, check [websocket_proxy] wsproxy_host , make sure the host is accessible directly from end-users to controller node (wsproxy)22:21
yeviok22:22
hongbinyevi: for compute, check [websocket_proxy] base_url , make sure the base url is accessible directly from end-users to compute node (docker daemon)22:22
hongbinthe compute node config will be removed in the latest version for security reasons, but in queens, it is still there22:22
hongbinyevi: if both configs are ok but the zun-ui still doesn't work, please feel to ping me again22:25
yeviok, I can Ok, I am verifying real quick, but I can connect to either seperatly, having troubles connecting to compute through wsproxy22:25
yeviwill give you a sanitized paste of the two configs real quick22:25
hongbinok22:26
hongbinyevi: the wsproxy is using this url to connect to compute: https://github.com/openstack/zun/blob/stable/queens/zun/container/docker/driver.py#L65722:36
hongbinyevi: so, one more configs to check, in compute node, check [docker] docker_remote_api_host22:37
yevicompute zun.conf: http://paste.openstack.org/show/734448/22:37
yevicontroller zun.conf: http://paste.openstack.org/show/734449/22:37
* hongbin is looking22:39
yeviso if I read that right on my controller I need to set remote_api_host and remote_api_port to the docker daemon sitting on my compute node. then the url will match. except that I am requesting 'wss://' not 'ws://'22:42
yeviI have set that before, but will test it real quick22:42
yeviStill have the same problem setting those specifically on the controller22:47
yeviI can confirm that it works on the compute node as I can attach interactive to a container with openstack cli22:48
hongbini see22:49
hongbinbut it cannot work on teh controller node if you attach interactive to the contiainer with openstack cli?22:50
yeviit wont work in the zun-ui22:52
yeviwich goes through zun-wsproxy to connect22:52
yeviI guess I could state that cloud shell behaves the same way22:55
hongbinok22:55
hongbinyevi: if you check the log of zun-wsproxy, does you see anything (for example, any error)?22:56
yevino errors, even with debug on only this22:57
yeviNov 08 17:44:43 zun-0 zun-wsproxy[13898]: 2018-11-08 17:44:43.603 13898 INFO zun.websocket.websocketproxy [-]   - Listen on 10.10.5.80:678422:57
yeviNov 08 17:44:43 zun-0 zun-wsproxy[13898]: 2018-11-08 17:44:43.604 13898 INFO zun.websocket.websocketproxy [-]   - SSL/TLS support22:57
yeviNov 08 17:44:43 zun-0 zun-wsproxy[13898]: 2018-11-08 17:44:43.604 13898 INFO zun.websocket.websocketproxy [-]   - proxying from 10.10.5.80:6784 to None:None22:57
hongbinyevi: then, if you follow the log of docker daemon, does you see the request is hitting there?22:58
yevino, I did a tcpdump on both nodes on the controller node I see a syn, then reset response. On the compute node it never hits23:00
yeviwsproxy is refusing the connection from what I can see23:01
yeviverified I have no iptables rules blocking the request23:01
hongbinit have the same problem if you switch from 'wss' to 'ws'?23:02
yeviI get ssl errors if I switch to ws because the way the rest of the environment is set up.23:04
hongbinok23:04
yeviI can see if I can bypass that, but that may take me a while23:05
hongbinno worry about it for now23:05
yeviok23:05
hongbinbut you can attach the container with openstack cli in compute node, right?23:06
yeviyes23:06
hongbinwhat are the exact command you ran?23:06
yeviopenstack appcontainer run --name mycontainer --net network=netuuid cirros ping 8.8.8.823:09
yeviopenstack appcontainer exec --interactive mycontainer /bin/sh23:09
hongbinok, let try this23:09
hongbinopenstack --debug appcontainer run --name mycontainer --net network=netuuid cirros ping 8.8.8.823:10
hongbinthen, paste me the output please23:10
hongbinwait23:10
hongbinyou are trying to exec in the container23:11
hongbinbut the zun-ui won't exec23:11
yeviyes23:11
hongbinso if you do this: openstack appcontainer run -i --name mycontainer --net network=netuuid cirros /bin/sh23:11
hongbinit will work?23:12
hongbinor openstack appcontainer run --interactive --name mycontainer --net network=netuuid cirros /bin/sh23:12
yevithat actually does not work23:13
hongbinok, that explains everything23:14
hongbinzun-ui is doing something that is equivalent so it didn't work as well23:14
hongbinthen, could you run that command with the --debug option23:15
hongbinopenstack --debug appcontainer run --interactive --name mycontainer --net network=netuuid cirros /bin/sh23:15
yeviok23:16
hongbinbrb23:24
yevihttp://paste.openstack.org/show/734450/23:29
* hongbin is looking23:30
hongbinit looks there is a bug on handling the 'wss' cases23:34
yeviok23:35
hongbinso, the openstack cli doesn't hit the wsproxy at all, since it is using 'wss' but openstack cli thought it is a wrong protocol23:35
hongbinif you can do a hack on /usr/local/lib/python2.7/dist-packages/zunclient/common/websocketclient/websocketclient.py23:36
yeviI could23:36
yevilooking at it now23:38
hongbinthis is the original code: http://paste.openstack.org/show/734451/23:39
hongbinand you can change it to: http://paste.openstack.org/show/734452/23:39
hongbinthen, give it another try23:39
yeviit ran successfully that time, but didn't drop to a shell, give ma a moment to check some logs23:44
hongbinsure23:45
yevihttp://paste.openstack.org/show/734453/23:49
hongbinin the controller node, does the log of zun-wsproxy capture something?23:50
yevino, nothing has hit that log23:50
yevilast entry was about 5 hours ago23:51
hongbinok23:52
hongbinlet me look at your config again23:52
hongbini guess you can switch the url from 'wss' to 'ws' without touching anything else (just change that config in controller node)23:54
hongbinif you can do that, then maybe we can give another try23:54
yeviok23:55
hongbinfwiw, here is the change: http://paste.openstack.org/compare/734455/734448/23:56

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!