Tuesday, 2016-12-20

*** huikang has joined #openstack-kuryr00:06
*** huikang has quit IRC00:07
*** hongbin has quit IRC00:41
*** yamamot__ has joined #openstack-kuryr01:39
*** pmannidi_ has joined #openstack-kuryr01:56
*** pmannidi has quit IRC01:57
*** neiljerram has quit IRC02:00
*** saneax is now known as saneax-_-|AFK02:52
*** hongbin has joined #openstack-kuryr02:53
openstackgerritxhzhf proposed openstack/kuryr: E128 ignore statement make code unclearly  https://review.openstack.org/41271502:59
*** yedongcan has joined #openstack-kuryr03:01
*** diga has joined #openstack-kuryr03:15
*** yedongcan has quit IRC04:12
*** yedongcan has joined #openstack-kuryr04:12
*** hongbin has quit IRC04:33
*** limao has joined #openstack-kuryr04:58
*** limao has quit IRC04:58
*** limao has joined #openstack-kuryr04:58
*** saneax-_-|AFK is now known as saneax05:31
yedongcanlimao: ping05:38
limaohi yedongcan05:38
yedongcanlimao: hello, would you mind us work together with the bug: https://bugs.launchpad.net/kuryr-libnetwork/+bug/165101505:39
openstackLaunchpad bug 1651015 in kuryr-libnetwork "kuryr-libnetwork did not clean neutron port when use existed neutron network" [Critical,Confirmed]05:39
limaoSure,05:39
limaothe thing in my mind, I think when release address, we can check if the subnet is created by kuryr05:40
yedongcanlimao: this morning I update a patch for this, it's a workaround, I will send it to gerrit.05:40
limaoif it is, then check subnetpool05:40
limaooh, cool, I'm also testing it with the driver code05:41
limaoHow are you going to fix?05:41
yedongcanIn my patch , I just check the network tags, and then delete the port, if the port doesn't belong the subnet , it will raise exception, here we need pass.05:42
limaoyedongcan: so you will not check subnetpool id?05:43
yedongcanwhat's your think about check subnet?05:43
limaoyedongcan: https://review.openstack.org/#/c/411144/05:44
limaoyedongcan: With this patch, if the subnet is created by Kuryr, the name will start with kuryr-subnet-05:45
yedongcanyes, I check the subnetpool id is None or equal with the passing poolid if we get the tags.05:45
limaoyedongcan: Do you mean when release address, you will check neutron tag when the subnetpool id is None05:47
yedongcanalmost, get the subnet's network first, and then check neutron tag, at last check the subnetpool05:48
yedongcanI think check subnet is anther way, but when we had more than one subnets with same cidr, how do we process?05:50
yedongcans/anther/another05:51
limaoyedongcan: I think we should avoid too much neutron call, so check neutron tag may move to last05:52
limaoyedongcan: "had more than one subnets with same cidr" Is this should can be seperated by check subnetpool id?05:54
yedongcanlimao: agree with you, but it seems we can't have another things to determine the unique subnet.05:55
yedongcanlimao: those subnets will have none subnetpool_id05:55
limaoyedongcan: if subnet-name start with kuryr-subnet-; then check subnetpool_id;   else :  check neutron tag05:56
limaoyedongcan: Is this OK?05:57
yedongcanumm, I will have a look.05:58
limaoyedongcan : https://github.com/openstack/kuryr-libnetwork/blob/master/kuryr_libnetwork/controllers.py05:59
limaoyedongcan: 1467 - 147005:59
limaoI was thought we can change the logic there05:59
yedongcanumm, yes, how about push my origin patch to gerrit?06:00
limaoyedongcan: sure06:04
limaoyedongcan: we can start from there~06:04
*** janki has joined #openstack-kuryr06:08
*** dimak has joined #openstack-kuryr06:24
*** jchhatbar has joined #openstack-kuryr06:27
*** janki has quit IRC06:29
openstackgerritDongcan Ye proposed openstack/kuryr-libnetwork: Delete port in existing neutron network  https://review.openstack.org/41277206:32
openstackgerritDongcan Ye proposed openstack/kuryr-libnetwork: [WIP] Delete port in existing neutron network  https://review.openstack.org/41277206:36
*** yedongcan has left #openstack-kuryr06:43
*** limao has quit IRC07:04
*** limao has joined #openstack-kuryr07:04
*** tonanhngo has quit IRC07:32
*** diga has quit IRC07:34
*** yedongcan has joined #openstack-kuryr07:46
*** irenab has quit IRC07:59
*** tonanhngo has joined #openstack-kuryr08:02
*** tonanhngo has quit IRC08:03
*** yamamot__ has quit IRC08:12
*** pcaruana has joined #openstack-kuryr08:19
*** jchhatbar is now known as janki08:27
*** yamamoto has joined #openstack-kuryr08:43
*** roeyc has joined #openstack-kuryr08:46
*** yamamoto has quit IRC08:47
*** roeyc1 has joined #openstack-kuryr08:48
*** roeyc has quit IRC08:50
*** yamamoto has joined #openstack-kuryr08:58
limaoping yedongcan09:21
*** oanson has quit IRC09:33
mchiapperoany mock expert here?09:36
mchiapperoI need help :(09:36
mchiapperoivc_, alraddarla_ ping me if you have time, thank you09:37
*** garyloug has joined #openstack-kuryr09:45
*** yamamoto has quit IRC10:02
*** limao has quit IRC10:12
*** irenab has joined #openstack-kuryr10:15
*** irenab_ has joined #openstack-kuryr10:17
*** yamamoto has joined #openstack-kuryr10:59
*** yedongcan has quit IRC11:08
*** yamamoto has quit IRC11:08
*** yedongcan has joined #openstack-kuryr11:08
*** neiljerram has joined #openstack-kuryr11:20
openstackgerritDongcan Ye proposed openstack/kuryr-libnetwork: Delete port created by kuryr  https://review.openstack.org/41277211:29
*** tonanhngo has joined #openstack-kuryr12:04
*** tonanhngo has quit IRC12:06
*** yamamoto has joined #openstack-kuryr12:09
*** vikasc has quit IRC12:18
*** yamamoto has quit IRC12:18
*** irenab__ has joined #openstack-kuryr12:21
*** irenab_ has quit IRC12:24
*** saneax is now known as saneax-_-|AFK12:24
*** yamamoto has joined #openstack-kuryr12:28
*** vikasc has joined #openstack-kuryr12:34
*** vikasc has quit IRC12:46
*** pcaruana has quit IRC13:01
*** garyloug has quit IRC13:04
*** vikasc has joined #openstack-kuryr13:04
mchiappero:(13:05
mchiapperoeveryone on holiday :) lucky you...13:06
*** pcaruana has joined #openstack-kuryr13:06
*** jchhatbar has joined #openstack-kuryr13:10
*** janki has quit IRC13:13
*** yedongcan has left #openstack-kuryr13:20
ivc_mchiappero ping :)13:21
*** saneax-_-|AFK is now known as saneax13:22
*** limao has joined #openstack-kuryr13:23
*** gsagie has joined #openstack-kuryr13:25
*** limao_ has joined #openstack-kuryr13:27
*** limao has quit IRC13:28
mchiapperoivc_: are you busy? May I annoy you with my mock problems?13:32
*** saneax is now known as saneax-_-|AFK13:34
ivc_mchiappero sure13:36
mchiapperoso, the problem is that I need to mock a config option13:36
mchiapperoI tried patching already without success13:36
mchiapperohttps://review.openstack.org/#/c/400365/29/kuryr_libnetwork/tests/unit/port_driver/test_driver.py13:36
mchiapperoL47 and L7313:37
mchiapperowhat's the best approache there in your opinion?13:37
ivc_https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/tests/unit/test_clients.py#L2413:38
mchiapperoI think I tried that already but let me try again13:38
mchiapperoin some cases I do need the actuall string13:39
mchiapperowould use a string in palce of the dummy object work?13:39
ivc_mchiappero why do you need a string?13:40
mchiapperobecause a function parses it13:40
mchiapperoparses the config value, I need to check it parses it correctly13:40
ivc_well in 'mock' world you could do it differently13:42
ivc_right now its like a 'black-box' test13:42
ivc_driver._parse_port_driver_config right?13:43
mchiapperoy13:43
*** limao_ has quit IRC13:44
*** limao has joined #openstack-kuryr13:44
ivc_looking at it. note that it also use oslo_config.cfg.CONF instead of libnetwork.config.CONF, so it is 'oslo_config' that need to be patched13:45
mchiapperoI can change that, but it seems that most of the code uses oslo_config13:46
ivc_doesn't matter, i mean you just need to use the same module in test13:46
ivc_ok. i think your 'black-box' with string approach should be fine here. you could also do the same with full mocks but that would be more complicated13:49
ivc_for your case you could mock your CONF and use m_cfg.__getattribute__.return_value = 'config.value.to.test'13:50
mchiapperook, cool13:50
ivc___getattr__ instead of __getattribute__13:50
mchiapperothank you so much13:50
ivc_note that it will return the same value for any of CONF.one_thing CONF.another13:51
ivc_but in your case you only access one attribute and you could also verify it with m_cfg.__getattr__.assert_called_once_with('port_driver')13:52
mchiapperoyes, in those tests it's the only value a need13:52
*** irenab__ has quit IRC13:53
ivc_mchiappero wait, i think, __getattr__ is not supported by mock: https://docs.python.org/3/library/unittest.mock.html#mocking-magic-methods13:54
ivc_xD13:54
mchiapperootherwise I can assign a function, right?13:54
mchiapperooh ok :(13:54
ivc_https://github.com/openstack/oslo.config/blob/master/oslo_config/fixture.py13:54
ivc_i think this is the way to do things with oslo_config :)13:55
ivc_but m_cfg.port_driver='port_driver.string' would also work as in https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/tests/unit/test_clients.py#L2413:57
mchiapperosorry, I had to leave for a while14:03
mchiapperoI'll have a look now and let you know :)14:03
*** limao has quit IRC14:05
*** limao has joined #openstack-kuryr14:05
* apuimedo is back14:16
*** gsagie has quit IRC14:22
*** pcaruana has quit IRC14:23
*** salv-orlando has joined #openstack-kuryr14:24
*** limao has quit IRC14:26
*** limao has joined #openstack-kuryr14:27
apuimedoivc_: vikasc: irenab: http://blog.kubernetes.io/2016/12/container-runtime-interface-cri-in-kubernetes.html14:35
*** pcaruana has joined #openstack-kuryr14:37
apuimedo"Networking: The CRI runtime handles network plugins and the setup/teardown of the pod sandbox."14:45
apuimedowe'll have to check if this changes things up14:45
*** limao has quit IRC14:47
*** limao has joined #openstack-kuryr14:48
openstackgerritMarco Chiappero proposed openstack/kuryr-libnetwork: Driver based model for kuryr-libnetwork  https://review.openstack.org/40036514:52
irenabapuimedo: ack14:52
mchiapperoivc_: thank you, I've fixed the tests :)14:53
ivc_mchiappero cool14:53
*** lmdaly has joined #openstack-kuryr14:55
apuimedohurrah!14:56
apuimedolet's get this in and rebase the mock patch then14:57
*** garyloug has joined #openstack-kuryr14:59
*** tonanhngo has joined #openstack-kuryr15:02
mchiapperoChristmas gift :P15:03
mchiapperolet's wait for the CI but should be okay now15:03
apuimedoure15:04
apuimedo*sure15:04
*** tonanhngo has quit IRC15:04
irenabmchiappero: apuimedo : what are the plans for fuctional/fullstack tests?15:05
mchiapperoirenab: in another life :P15:05
mchiapperoI haven't started thinking about it15:05
mchiappero(yet)15:05
irenabmchiappero: Do you mean in the new year :-)?15:05
mchiapperodefinitely not now15:06
irenabmchiappero: it is not necessarily to be submitted now, but I think we shoudl manage the gap somehow15:08
apuimedowell, Spaniards have a saying, "New year, New life"15:08
irenab:-)15:08
apuimedoso that translates mchiappero's 'another life' to likely mean next year15:08
apuimedoxD15:08
mchiapperopretty much :P15:08
apuimedoit's a top prioirty15:08
apuimedo*priority, of course15:09
*** limao has quit IRC15:09
mchiapperocurrently time is an extremely scarse resource for me :(15:09
*** limao has joined #openstack-kuryr15:09
apuimedohttp://thedaoofdragonball.com/wp-content/uploads/2013/09/room-of-spirit-time-front.jpg15:11
apuimedomchiappero: ^^ may help15:11
mchiapperosometimes I try not to sleep without success :P15:12
*** oanson has joined #openstack-kuryr15:16
*** garyloug has quit IRC15:16
alraddarla_mchiappero, looks like CI is passing and will be merged. i will try to rebase by EOW apuimedo15:25
apuimedoyippey!15:28
*** dimak has quit IRC15:31
*** limao has quit IRC15:33
*** limao has joined #openstack-kuryr15:34
*** neiljerram has quit IRC15:35
mchiapperolooks ok15:42
mchiapperoi guess you can now workflow++15:43
*** limao_ has joined #openstack-kuryr15:51
*** limao has quit IRC15:55
*** jchhatbar has quit IRC15:58
apuimedomchiappero: I did15:58
apuimedo:-)15:58
*** hongbin has joined #openstack-kuryr16:01
mchiapperoapuimedo: thank you!16:11
*** limao_ has quit IRC16:15
*** limao has joined #openstack-kuryr16:16
*** diga has joined #openstack-kuryr16:16
mchiapperoalraddarla_: let me know if there is something you are not clear with in the new test_kuryr.py16:19
alraddarla_mchiappero, okay sounds good. thanks16:20
mchiapperowelcome16:22
*** roeyc1 has quit IRC16:24
*** limao has quit IRC16:32
*** limao has joined #openstack-kuryr16:33
*** limao has quit IRC16:35
apuimedohttps://review.openstack.org/#/c/400365/16:44
apuimedoIt is merged!16:44
mchiapperochampagne for everyone!16:49
apuimedoI took 'fuet' instead16:52
apuimedo:-)16:52
openstackgerritAntoni Segura Puimedon proposed openstack/kuryr-libnetwork: Nested-Containers: trunk subports management  https://review.openstack.org/40246216:59
openstackgerritMerged openstack/kuryr-libnetwork: Delete kuryr-subnet in existing Neutron network  https://review.openstack.org/41114417:09
openstackgerritMerged openstack/fuxi: Separate unit tests from fullstack tests  https://review.openstack.org/40393117:11
openstackgerritMerged openstack/fuxi: Add basic fullstack volume tests  https://review.openstack.org/40394117:11
openstackgerritMerged openstack/kuryr-libnetwork: Fix misleading info in CreateNetwork  https://review.openstack.org/41111517:12
*** garyloug has joined #openstack-kuryr17:13
mchiapperolots of new code today :)17:16
*** neiljerram has joined #openstack-kuryr17:21
*** lmdaly has quit IRC17:35
*** neiljerram has quit IRC17:44
*** neiljerram has joined #openstack-kuryr17:57
*** pcaruana has quit IRC17:59
*** yamamoto has quit IRC17:59
*** yamamoto has joined #openstack-kuryr18:03
*** yamamoto has quit IRC18:07
*** salv-orlando has quit IRC18:12
*** garyloug has quit IRC18:32
*** tonanhngo has joined #openstack-kuryr18:50
*** tonanhngo has quit IRC18:50
*** tonanhngo has joined #openstack-kuryr18:57
*** yamamoto has joined #openstack-kuryr19:05
*** diogogmt has joined #openstack-kuryr19:10
*** yamamoto has quit IRC19:13
*** diga has quit IRC19:14
*** neiljerram has quit IRC19:44
*** oanson has quit IRC20:18
*** neiljerram has joined #openstack-kuryr20:58
*** roeyc has joined #openstack-kuryr21:13
apuimedo:-)21:17
*** irenab_ has joined #openstack-kuryr21:21
*** irenab has quit IRC21:21
*** irenab_ is now known as irenab21:21
*** roeyc has quit IRC21:22
*** roeyc has joined #openstack-kuryr21:22
*** roeyc has quit IRC21:35
apuimedoivc_: about the races starting containers in devstack22:03
apuimedowhich was it?22:03
apuimedocause I see all the k8s containers use 'wait_for'22:04
apuimedoeven the kubelet22:05
apuimedoonly kuryr-kubernetes controller does not22:06
apuimedoso I'll add a wait there22:06
openstackgerritAntoni Segura Puimedon proposed openstack/kuryr-kubernetes: devstack: Have controller wait for K8s API  https://review.openstack.org/41324722:23
*** roeyc has joined #openstack-kuryr22:42
*** diogogmt has quit IRC22:50
*** salv-orlando has joined #openstack-kuryr23:06
*** salv-orlando has quit IRC23:40
*** diogogmt has joined #openstack-kuryr23:42
*** roeyc has quit IRC23:46
*** roeyc has joined #openstack-kuryr23:47
openstackgerritTony Breeds proposed openstack/fuxi: Add Constraints support  https://review.openstack.org/41327423:53
*** diogogmt has quit IRC23:56

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