Wednesday, 2018-08-08

*** hongbin has joined #openstack-kuryr00:53
*** hongbin has quit IRC01:13
*** hongbin has joined #openstack-kuryr01:13
*** hongbin has quit IRC03:51
*** openstackgerrit has joined #openstack-kuryr04:01
openstackgerritPeng Liu proposed openstack/kuryr-kubernetes master: Implement NPWG multi-vif driver  https://review.openstack.org/57800904:01
*** maysams has quit IRC04:03
*** maysams has joined #openstack-kuryr04:03
*** janki has joined #openstack-kuryr04:34
ltomasbogood morning celebdor[m], I'm debugging the last namespace related patch (the one enabling it for openshift gates) and there is still some issues. Does this error rings a bell? http://paste.openstack.org/show/727596/06:24
*** pcaruana has joined #openstack-kuryr06:27
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-kubernetes master: Ensure OpenShift gate uses the namespace subnet/sg drivers  https://review.openstack.org/58068006:57
*** celebdor has joined #openstack-kuryr07:30
dulekltomasbo: "504 GATEWAY TIMEOUT" would mean that daemon timed out waiting for pod to get annotated.07:37
dulekltomasbo: There might be more in kuryr-daemon logs.07:38
dulekltomasbo: That's in the gate?07:38
dulekltomasbo: You can find pod logs in controller/kubernetes/pod_logs.07:38
ltomasbodulek, is that available for openshift gates too>?07:40
dulekltomasbo: Should be. Can you point me to the run you're debugging?07:40
ltomasbodulek, https://review.openstack.org/#/c/580680/ (though I rebase it to retrigger the tests07:41
ltomasboas some of the failures were due to yum install gate thing07:41
ltomasbodulek, it is going to fail again for the openshift gate, not sure why the crd objects cannot be found (probably they are not properly created...) http://zuul.openstack.org/stream.html?uuid=0357bea4ffd54429933bf1f03a11302a&logfile=console.log07:44
dulekltomasbo: http://logs.openstack.org/80/580680/14/experimental/kuryr-kubernetes-tempest-daemon-containerized-openshift-octavia/22b01c6/job-output.txt.gz#_2018-08-07_16_11_41_60677907:44
dulekltomasbo: So that's one thing.07:45
ltomasboyep, I need to understand why that is not working on openshift...07:46
ltomasboprobably I need to add some rbac to be able to write the CRDs?\07:46
dulekltomasbo: Hm, different implementation of CRDs?07:46
dulekltomasbo: It's controller writing CRDs, right?07:46
*** pmannidi has quit IRC07:46
celebdorwhat happened?07:46
ltomasboyep07:46
ltomasbocelebdor, I'm testing moving openshift gates to namespace isolation07:47
ltomasboand it seems CRDs are not being created07:47
dulekltomasbo: According to controller logs it doesn't have issues with creating CRDs.07:50
ltomasboumm07:50
ltomasbothen why it is not there!07:51
ltomasboahh, perhaps another quota issue?07:51
dulekltomasbo: You mean it got rolled back? Doesn't look like it…07:51
dulekltomasbo: Here's the matching log from openshift-master: http://logs.openstack.org/80/580680/14/check/kuryr-kubernetes-tempest-daemon-openshift-octavia/246d4b3/controller/logs/screen-openshift-master.txt.gz#_Aug_07_22_10_45_48810407:52
dulekltomasbo: This is time we create the CRDs.07:52
ltomasboweird thing is taht docker-registry seems to be good07:54
ltomasboand that is created in the default namespace07:54
dulekltomasbo: Meanwhile if you want to debug that on the gate you can add your own kubectl commands here: https://github.com/openstack/kuryr-kubernetes/blob/master/tools/gate/copy_k8s_logs.sh#L3407:54
ltomasbodulek, ohh, I didn't know that! thanks!07:55
ltomasbodulek, when do that runs?07:56
dulekltomasbo: After all the tempest in gates.07:56
ltomasbook ok07:56
ltomasboI'll add one regarding namespaces07:56
dulekltomasbo: And CRDs!08:00
ltomasboyes08:00
ltomasbodulek, as soon as the current run finishes (which should be in 10 min or so) I'll re-spin with that08:01
openstackgerritDaniel Mellado proposed openstack/kuryr-kubernetes master: Implement NP SG create/delete actions  https://review.openstack.org/58354008:04
ltomasbodulek, I don't see anything useful on the new logs08:11
dulekltomasbo: This one's a bit odd: http://logs.openstack.org/80/580680/15/check/kuryr-kubernetes-tempest-daemon-openshift-octavia/0357bea/controller/logs/screen-kuryr-kubernetes.txt.gz#_Aug_08_07_36_35_99660808:13
dulekltomasbo: Also: http://logs.openstack.org/80/580680/15/check/kuryr-kubernetes-tempest-daemon-openshift-octavia/0357bea/controller/logs/screen-kuryr-kubernetes.txt.gz#_Aug_08_07_35_43_23163508:14
ltomasbothough now it seem that test_namespace has created the subnet08:14
ltomasboand the 3 test fails on the get_kuryr_net_crds function08:14
dulekltomasbo: To debug that you might also want to increase verbose level on openshift-master.08:18
dulekltomasbo: So we'll see the requests being made.08:18
ltomasbook, I'm going to submit a new patch set with the namespace/kuryrnetcrds08:19
ltomasboand the openshift-master verbose (going to look where to set it...)08:19
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-kubernetes master: Ensure OpenShift gate uses the namespace subnet/sg drivers  https://review.openstack.org/58068008:27
*** garyloug has joined #openstack-kuryr08:47
openstackgerritDaniel Mellado proposed openstack/kuryr-tempest-plugin master: [WIP] Add Network Policy tests  https://review.openstack.org/58952109:10
ltomasbodulek, strange, there may be some king of race09:24
ltomasbotest_namespace fails on different points everytime09:24
ltomasboeither on check taht the subnets are created09:24
ltomasboor on the call to get the kuryr_net_crd09:25
ltomasbohttp://logs.openstack.org/80/580680/15/check/kuryr-kubernetes-tempest-daemon-openshift-octavia/0357bea/testr_results.html.gz09:26
ltomasbohttp://logs.openstack.org/80/580680/15/check/kuryr-kubernetes-tempest-daemon-openshift-octavia/0357bea/testr_results.html.gz09:26
dulekltomasbo: /apis/openstack.org/v1/ns-default09:26
dulekltomasbo: Aren't you missing v1 in the code?09:26
dulekltomasbo: Ah no, you're not, sorry.09:26
dulekltomasbo: No logs in openshift-master that would match the time of requests failing in kuryr-kubernetes logs…09:28
dulekltomasbo: Why only OpenShift?!09:29
dulekltomasbo: Hm, oh wait…09:29
ltomasboAug 08 09:02:28.430250 ubuntu-xenial-ovh-bhs1-0001205030 python[22918]: 2018-08-08 09:02:28.429 22918 DEBUG kuryr_kubernetes.controller.handlers.namespace [-] Setting CRD annotations: {'kind': 'KuryrNet', 'spec': {'routerId': 'f2b7b2aa-bea4-408c-92ac-ad02052a3058', 'subnetId': u'3bac6696-9398-4974-a051-8385d03cd994', 'netId': u'88f0242e-3387-45ca-9a12-e883c7054d21', 'sgId': u'6db67f6e-2035-4bcf-9c19-5b79e1d69fd2', 'subnetCIDR':09:29
ltomasbou'10.1.1.64/26'}, 'apiVersion': 'openstack.org/v1', 'metadata': {'name': u'ns-default', 'annotations': {'namespaceName': u'default'}}} _set_net_crd /opt/stack/kuryr-09:29
ltomasbobut seems the subnet got created and annotated09:29
dulekltomasbo: We're using OpenShift 3.9 and Kubernetes 1.9 in the gate.09:30
dulekltomasbo: This matches more or less - 3.9 = 1.9.1.09:30
ltomasboCreating network resources for namespace: kuryr-namespace-97888954 on_present /opt/stack/kuryr-kubernetes/kuryr_kubernetes/controller/handlers/namespace.py:4909:30
ltomasboumm09:32
ltomasbohttp://logs.openstack.org/80/580680/16/check/kuryr-kubernetes-tempest-daemon-openshift-octavia/a116735/controller/logs/screen-kuryr-kubernetes.txt.gz#_Aug_08_09_03_34_04478809:34
ltomasbodulek, ^^09:34
ltomasboafter that, I don se the messages creating the namespaces actually09:34
ltomasboahh, yes, there was some other annotations in between09:35
dulekltomasbo: I have no idea what's happening really…09:36
ltomasboin the new kuryrnets_crds and namespaces09:38
ltomasboI can see that the namespace kuryr-namespace-1159... exists09:39
ltomasboas well as the associated CRD09:39
dulekltomasbo: But the API returns 404 for it?09:41
ltomasbowell, in this run, it does not even reach there09:41
ltomasbogoing to check for the test_namespace_sg_isolation, which reaches that 40409:41
ltomasboyep, it is also there09:42
ltomasbodulek, celebdor: I think I found something10:06
ltomasbokubectl get clusterrole -n kube-system kuryr-controller -o yaml10:06
ltomasbothis is defined for kuryr-kubernetes but not for openshift10:06
dulekltomasbo: Uhm? I don't get it.10:07
dulekltomasbo: But now that I think of this:10:07
dulekltomasbo: https://github.com/openstack/kuryr-kubernetes/blob/master/devstack/lib/kuryr_kubernetes#L485-L49310:07
ltomasbodulek, we need to add customreousrdefinitions to the resources, right?10:08
ltomasboyep, that is what I think10:08
dulekltomasbo: But it should error out if there are unsufficient privileges and it doesn't according to logs?10:08
ltomasboperhaps it does not, I'm not sure10:08
ltomasbothough, the crds are created10:08
ltomasboand this works for kubernetes10:09
ltomasboso, it must not be that10:09
ltomasboI deployed with openshift, and I see it is actually working10:11
ltomasbocreating the subnet, the crds, ..., I'm a bit lost here...10:11
ltomasboumm, I get this:10:14
ltomasboerror: couldn't get deployment demo-1: replicationcontrollers "demo-1" is forbidden: User "system:serviceaccount:test:deployer" cannot get replicationcontrollers in the namespace "test": User "system:serviceaccount:test:deployer" cannot get replicationcontrollers in project "test"10:14
ltomasboso, there is something different for openshift and the namespaces... and the roles...10:16
ltomasbodulek, ^^10:16
dulekltomasbo: Okay, that's something, though it's the deployer. Deployer would mean the registry installation may be failing.10:16
dulekIt shouldn't be related really.10:16
ltomasbodulek, I deployed openshift on a local devstack10:17
ltomasbocreating the namespace and such works10:17
ltomasbobut then, oc run --image demo/kuryr demo10:17
ltomasboworks only on the default namespace10:17
ltomasboand the docker-registry-1-xxx seems to be up and running10:18
dulekltomasbo: Hm…10:19
dulekltomasbo: Okay, first of all - tempest doesn't use oc all.10:21
dulekltomasbo: oc run, I mean.10:21
ltomasboahh, true10:21
dulekltomasbo: Let's put the deployer issues aside and use kubectl.10:21
ltomasboI'm going to try two things, using kubectl and using oc new-project10:21
ltomasbook, that seems to work10:23
dulekltomasbo: kubectl run?10:24
ltomasboyep10:24
ltomasboproblem was I mixed commands10:25
ltomasbooc new-project + oc run works10:25
ltomasbooc create namespace + oc run does not10:25
ltomasboanyway, lost again...10:26
ltomasbodulek, kuryr/controller and cni are 3 adn 8 weeks old on the docker.io, would it be possible to update them?10:42
dulekltomasbo: Sure, should I just upload newest master?10:43
ltomasbothat would be great10:43
ltomasboregarding the gate, I'm thinking running in serial to see if that helps10:44
dulekltomasbo: Hm, not sure really - the issue is with kuryr-controller and we're running just one of them…10:45
ltomasbofor me the issue is that I don't know what the issue is! xD10:46
celebdorltomasbo: dulek: an I help?10:52
celebdor*can10:52
ltomasbosure!10:52
dulekcelebdor: You can roam the logs of failed run, maybe something stands off there for you.10:52
celebdordulek: what are the symptoms10:53
celebdor?10:53
dulekcelebdor: But to be honest I doubt it…10:53
ltomasbocelebdor, dulek: I just see that the list of namespaces have some annotation missing for the created namespaces10:53
ltomasbothis is for default namespace:10:53
ltomasbo"annotations":{"openshift.io/sa.initialized-roles":"true","openshift.io/sa.scc.mcs":"s0:c1,c0","openshift.io/sa.scc.supplemental-groups":"1000000000/10000","openshift.io/sa.scc.uid-range":"1000000000/10000","openstack.org/kuryr-net-crd":"ns-default"}}10:54
ltomasboand this is for the new created namespaces:10:54
ltomasbo"annotations":{"openshift.io/sa.scc.mcs":"s0:c8,c2","openshift.io/sa.scc.supplemental-groups":"1000060000/10000","openshift.io/sa.scc.uid-range":"1000060000/10000"}}10:54
dulekltomasbo: You're annotating NS's, right?10:55
ltomasboyep, we are annotating the namespace with the kuryrnet crd object name10:55
dulekltomasbo: And looks like kuryrnet it's not annotated here?10:55
ltomasboyep, seems it is missing10:55
ltomasbothough let me see on the new kubernetes logs10:55
ltomasboin the logs, it has it10:56
ltomasbo    annotations:10:56
ltomasbo      openshift.io/sa.scc.mcs: s0:c8,c210:56
ltomasbo      openshift.io/sa.scc.supplemental-groups: 1000060000/1000010:56
ltomasbo      openshift.io/sa.scc.uid-range: 1000060000/1000010:56
ltomasbo      openstack.org/kuryr-net-crd: ns-kuryr-namespace-115995287810:56
celebdorltomasbo: I assume you can't reproduce locally10:57
ltomasbocelebdor, nope, it works for me on local devstack11:00
ltomasboI actually think it may be a race, that it is trying to check that before the crd object is created11:00
ltomasboI'm going to try with a dummy sleep11:01
celebdorltomasbo: what checks it tempest or devstack?11:01
celebdorThe former, right?11:01
ltomasbotempest11:01
ltomasboahh, I can try to deploy locally with tempest and try again11:01
ltomasboI just did it manually, but with tempest enabled it should be reproducible (I hope)11:02
celebdorok11:02
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-tempest-plugin master: DNM: Testing openshift gates  https://review.openstack.org/58984111:12
*** rh-jelabarre has quit IRC12:26
openstackgerritItzik Brown proposed openstack/kuryr-tempest-plugin master: Use expected pod output as a constant  https://review.openstack.org/58987812:55
celebdorltomasbo: dulek: I just tested that on a devstack environment we can test oc new-app12:56
celebdorwith the kuryr-demo container :-)12:56
celebdorto test that build actually works12:56
celebdoroc new-app https://git.openstack.org/openstack/kuryr-tempest-plugin --context-dir=test_container12:57
celebdorLet's see if I find how to do that without 'oc' so we can put it in tempest12:57
*** garyloug_ has joined #openstack-kuryr13:01
irenabcelebdor, joining the sriov meeting?13:02
*** garyloug has quit IRC13:04
celebdorsure13:16
openstackgerritItzik Brown proposed openstack/kuryr-tempest-plugin master: Use expected pod output as a constant  https://review.openstack.org/58987813:18
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-tempest-plugin master: DNM: Testing openshift gates  https://review.openstack.org/58984113:27
*** garyloug__ has joined #openstack-kuryr13:50
*** garyloug_ has quit IRC13:54
*** rh-jelabarre has joined #openstack-kuryr13:58
*** rh-jelabarre has quit IRC13:59
ltomasbodulek, celebdor: so I found the issue with the test14:04
dulekltomasbo: I'm curious!14:04
ltomasbonot sure why but when creating a namespace, it does not wait enough14:05
ltomasboand when it checks the created namespaces they are not there yet14:05
*** celebdor1 has joined #openstack-kuryr14:05
celebdor1ltomasbo: do tell14:07
celebdor1don't leave me in suspense14:07
*** celebdor has quit IRC14:07
ltomasbocelebdor1, seems etcd is too slow and the kuryrcrd is not yet there14:08
ltomasboand that is why at the end of the test, when doing the dump of the crds they where actually there...14:08
ltomasboI'm testing locally with some sleep to see if that helps14:08
ltomasbodman14:16
ltomasbodamn14:16
ltomasbowhole day with this sit14:16
ltomasboshit14:16
ltomasboand it was obvious...14:16
ltomasboI'll sent a patch in 1 min!14:16
ltomasbodulek, ^^14:16
dulekltomasbo: Like you're adding time.sleep()?14:17
ltomasbono no, problem is that openshift does some annotations on the namespace that kubernetes does not14:18
ltomasboand the create_namespace function was waiting until some annotations are done14:18
ltomasboso, for kubernetes it was waiting as it should, but for openshift, it was returning before the crd was created14:18
*** hongbin has joined #openstack-kuryr14:18
dulekltomasbo: Oh…!14:21
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-tempest-plugin master: Ensure create_namespace function waits for CRD annotation  https://review.openstack.org/58984114:26
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-tempest-plugin master: Ensure create_namespace function waits for CRD annotation  https://review.openstack.org/58984114:28
ltomasbodulek, https://review.openstack.org/#/c/589841/14:29
ltomasbodmellado, celebdor1 ^^14:29
dmelladoltomasbo: does it finally work?14:29
dmelladoyou just needed some more time for that, didn't you?14:29
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-kubernetes master: Ensure OpenShift gate uses the namespace subnet/sg drivers  https://review.openstack.org/58068014:30
ltomasbodmellado, not time, but waiting properly for the namespace creation14:31
ltomasbodmellado, I was waiting until some annotation was done14:31
ltomasboand openshift does some extra annotations, so it was not waiting14:31
ltomasbonow, I wait for the kuryr-crd annotation, so that should be safe14:31
dmelladogreat, I shall take a look14:32
dulekltomasbo: Nice!14:37
*** celebdor1 has quit IRC15:25
*** celebdor1 has joined #openstack-kuryr15:31
*** pcaruana has quit IRC15:34
*** aojea has joined #openstack-kuryr15:51
*** celebdor1 has quit IRC16:25
*** garyloug__ has quit IRC17:18
*** janki has quit IRC18:37
*** pcaruana has joined #openstack-kuryr21:07
*** aojea has quit IRC21:55
*** pcaruana has quit IRC22:02
*** aojea has joined #openstack-kuryr22:08
*** aojea has quit IRC22:09
*** aojea has joined #openstack-kuryr22:11
*** aojea has quit IRC22:30
*** hongbin has quit IRC22:54
*** kailun has quit IRC23:02
*** irenab has quit IRC23:02
*** oanson has quit IRC23:02
*** pc_m has quit IRC23:02
*** dulek has quit IRC23:02
*** russellb has quit IRC23:02

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