Monday, 2017-07-24

*** svenkat has quit IRC00:23
*** thorst has joined #openstack-powervm00:31
*** apearson has joined #openstack-powervm00:33
*** thorst has quit IRC00:36
*** thorst has joined #openstack-powervm01:03
*** thorst has quit IRC01:03
*** thorst has joined #openstack-powervm03:04
*** thorst has quit IRC03:10
*** chhavi has joined #openstack-powervm04:07
*** apearson has quit IRC04:43
*** apearson has joined #openstack-powervm04:44
*** apearson has quit IRC04:45
*** apearson has joined #openstack-powervm04:45
*** apearson has joined #openstack-powervm04:46
*** apearson has joined #openstack-powervm04:46
*** apearson has quit IRC04:47
*** apearson has joined #openstack-powervm04:47
*** apearson has quit IRC04:48
*** apearson has joined #openstack-powervm04:48
*** apearson has quit IRC04:49
*** apearson has joined #openstack-powervm04:49
*** apearson has quit IRC04:49
*** apearson has joined #openstack-powervm04:50
*** apearson has quit IRC04:50
*** apearson has joined #openstack-powervm04:50
*** apearson has quit IRC04:51
*** apearson has joined #openstack-powervm04:51
*** apearson has quit IRC04:52
*** apearson has joined #openstack-powervm04:52
*** apearson has quit IRC04:53
*** apearson has joined #openstack-powervm04:53
*** thorst has joined #openstack-powervm05:05
*** thorst has quit IRC05:10
*** thorst has joined #openstack-powervm06:27
*** thorst has quit IRC06:31
*** thorst has joined #openstack-powervm08:27
*** thorst has quit IRC08:32
*** thorst has joined #openstack-powervm10:29
*** thorst has quit IRC10:33
*** smatzek has joined #openstack-powervm10:55
*** jwcroppe has quit IRC11:29
*** svenkat has joined #openstack-powervm11:31
*** svenkat_ has joined #openstack-powervm11:39
*** svenkat has quit IRC11:40
*** svenkat_ is now known as svenkat11:40
*** jwcroppe has joined #openstack-powervm11:43
*** thorst has joined #openstack-powervm11:54
*** thorst_ has joined #openstack-powervm11:56
*** thorst_ has quit IRC11:56
*** thorst_ has joined #openstack-powervm11:57
*** thorst has quit IRC11:58
*** jwcroppe has quit IRC12:37
*** dwayne has quit IRC12:45
*** edmondsw has joined #openstack-powervm12:59
*** apearson has joined #openstack-powervm13:02
*** kylek3h has joined #openstack-powervm13:03
*** esberglu has joined #openstack-powervm13:07
*** efried_zzz is now known as efried13:29
*** dwayne has joined #openstack-powervm13:41
*** jwcroppe has joined #openstack-powervm13:54
*** dwayne has quit IRC13:59
*** apearson has quit IRC14:01
*** tjakobs has joined #openstack-powervm14:21
*** apearson has joined #openstack-powervm14:23
openstackgerritEric Fried proposed openstack/nova-powervm master: Adopt new pypowervm power_off APIs  https://review.openstack.org/47627415:04
openstackgerritEric Fried proposed openstack/nova-powervm master: Adopt new pypowervm power_off APIs  https://review.openstack.org/47627415:25
openstackgerritMerged openstack/nova-powervm master: Updated from global requirements  https://review.openstack.org/48406815:49
*** dwayne has joined #openstack-powervm15:55
*** apearson has quit IRC16:00
efriedesberglu Here's one we don't see often: https://review.openstack.org/#/c/476945/ <== ran out of procs.16:54
*** apearson has joined #openstack-powervm17:12
openstackgerritDrew Thorstensen (thorst) proposed openstack/nova-powervm master: WIP: Use OVS Attributes within pypowervm  https://review.openstack.org/48670217:21
thorst_efried: ^^ My WIP for the OVS stuff...17:21
thorst_curious if/when you get initial impressions17:22
*** thorst_ has quit IRC17:38
*** thorst has joined #openstack-powervm17:44
*** thorst has quit IRC17:49
*** chhavi has quit IRC18:10
*** thorst has joined #openstack-powervm18:12
efriedthorst Well, I looked at it.  Can you help me understand what's going on?18:16
efriedBefore, if new_vif, we were creating a CNA and then running some linux commands.18:17
efriedNow it looks like, if new_vif, we're creating a CNA and then creating another CNA.18:17
thorstwe were always creating a pair18:19
thorsta trunk and a client18:19
thorsttrunk being a CNA on the NL18:19
efriedthorst I left some comments in the review18:20
efriedBut those are more stylistic/procedural than functional.18:21
thorstand an 'autospec'18:22
thorstwhich means I have to go learn auto spec'ing?18:22
thorstquick reference for me to work off of?18:22
efriedthorst https://review.openstack.org/#/c/438119/5..618:25
efriedIf by "reference" you mean "examples".18:25
efriedIf you mean actual reference, https://docs.python.org/3/library/unittest.mock.html#auto-speccing18:27
thorstthx18:27
efriedthorst Did you change the superclass with the intent of doing away with LIO stuff entirely?18:27
efriedCause at this point it looks like the super.plug isn't doing anything.18:27
thorstmy eventual goal is to get rid of the LB implementation18:28
thorstI'd need adreznec to sign off on that though18:28
thorstand then make a vif folder18:28
thorstand then put in an 'ovs.py', 'sea.py', 'sriov.py', etc...18:28
efriedight.  Then I guess you'll have to pull the PvmLioVifDriver.plug impl into PvmOvsVifDriver somehow.18:28
thorstit already is18:29
thorstand PvmOvsVifDriver no longer extends PvmLioVifDriver....only the LB implementation does18:30
thorstso if I can toss that...18:30
thorstthen I can get rid of that whole class chain18:30
efriedOh, I see, that code actually *is* duplicated from the superclass.  And the super.plug is what, just for form?18:30
efriedSince the superclass method is abstract, prolly should just toss that call.18:31
thorstyeah, it was for form18:31
thorstbut k18:31
thorstso you just want me to autospec the mgmt_partition thing?18:34
efriedthorst The policy we enacted was basically to autospec anything from pypowervm in test cases that we touch.  So all the pypowervm mocks in all the tests you touched here.18:36
efriedI'd be especially concerned with the two CNA ones whose APIs changed in 1.1.6.18:36
thorstk...wondering how to auto spec a method instead of a class18:36
thorstinvestigating18:36
efriedPoint of autospec is to make sure we're calling those guys with the correct arg names & numbers, not just calling it how our test claims to be expecting it called.18:37
thorstright right.18:37
efriedthorst See e.g. https://review.openstack.org/#/c/438119/5..6/nova/tests/unit/virt/powervm/test_driver.py@35 to mock a method.18:37
efried...to autospec* a method18:38
thorstthat seems absurdly simple18:38
efried:)18:38
efriedthorst Added another couple comments18:42
efriedthorst Oh, and what about 5588?  If these fields are totally arbitrary, can they contain e.g. '<' and therefore screw up our XML?18:43
thorstefried: this seems odd  " unbound method search() must be called with CNA instance as first argument (got MagicMock instance instead)"18:44
thorstefried: yep, they could.18:44
thorstso we probably need to sanitize....18:44
efriedAt the REST level.  It needs to be CDATA'd.18:44
efriedthat is, it needs to be sent to us from the server CDATA'd, and we need to CDATA it when we pass it in.18:45
efriedthorst Autospec is making sure you're calling with the right kind of arguments.  Whatever MagicMock you're using there needs to be specced itself.18:45
thorstefried: is that something nvcastet needs to do?18:46
efriedthorst Yeah, or whoever handles the REST side.  But also something we'll have to handle in pypowervm.18:46
thorstdon't all fields that have string inputs have this issue?18:47
efriedthorst Name me another that can accept binary or '<'.18:49
efriedor '&'18:50
thorstlpar name?18:50
efriedthorst Even if that's true, which I kinda doubt, nobody's gonna be stupid enough to put those in their LPAR names.18:55
efriedthorst And no.  See #novalink18:56
efriedWe have encoded data in some Jobs, and that stuff *is* CDATA-escaped.18:57
*** jwcroppe has quit IRC18:58
*** apearson has quit IRC18:58
*** jwcroppe has joined #openstack-powervm18:59
*** apearson has joined #openstack-powervm19:01
*** jwcroppe_ has joined #openstack-powervm19:01
efriedthorst Looks like we get the python side for free.19:02
thorstfor lpar_name or both?19:02
efriedlpar_name is n/a, can't take ( ) \ < > * $ & ? | [ ] ' " `, ! # % + /19:02
thorstright...19:03
efriedActually, what I'm seeing is it automatically encodes/decodes.19:03
efriedIt's not CDATAing.19:03
efriedlxml is taking care of that.19:03
thorstyeah, that's what I would've expected.19:03
thorstso we really just need REST to enforce19:03
efriedSo e.g. it converts > to &gt;19:03
thorst?19:03
*** jwcroppe has quit IRC19:03
efriedWell19:03
efriedYeah, it would do the trick if REST was able to send & receive stuff thusly encoded.19:04
efriedWhich it would make sense if LWP already did transparently.19:04
efriedI guess.19:04
efriedMaybe.19:04
efriedNeeds to be tested out.19:04
*** thorst is now known as thorst_afk19:15
*** apearson has quit IRC19:39
*** jwcroppe_ has quit IRC19:45
*** jwcroppe has joined #openstack-powervm19:45
*** apearson has joined #openstack-powervm19:46
*** jwcroppe has quit IRC19:50
*** jwcroppe has joined #openstack-powervm19:53
*** jwcroppe has quit IRC20:05
*** mdrabe has quit IRC20:05
*** mdrabe has joined #openstack-powervm20:09
openstackgerritDrew Thorstensen (thorst) proposed openstack/nova-powervm master: WIP: Use OVS Attributes within pypowervm  https://review.openstack.org/48670220:11
*** jwcroppe has joined #openstack-powervm20:24
*** svenkat has quit IRC20:57
*** edmondsw has quit IRC21:04
*** edmondsw has joined #openstack-powervm21:04
*** edmondsw_ has joined #openstack-powervm21:05
*** edmondsw has quit IRC21:09
*** edmondsw_ has quit IRC21:10
*** smatzek has quit IRC21:20
*** apearson has quit IRC21:25
*** jwcroppe has quit IRC21:26
*** jwcroppe has joined #openstack-powervm21:32
*** edmondsw has joined #openstack-powervm21:39
*** jwcroppe has quit IRC21:42
*** edmondsw has quit IRC21:44
*** jwcroppe has joined #openstack-powervm21:45
*** esberglu has quit IRC21:46
*** dwayne has quit IRC22:05
*** esberglu has joined #openstack-powervm22:05
*** esberglu has quit IRC22:10
*** kylek3h has quit IRC22:13
*** jwcroppe has quit IRC22:37
*** tjakobs has quit IRC22:37
*** jwcroppe has joined #openstack-powervm22:44
*** jwcroppe has quit IRC23:06
*** dwayne has joined #openstack-powervm23:14

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