Monday, 2017-10-16

*** jwcroppe has quit IRC00:51
*** jwcroppe has joined #openstack-powervm00:52
*** thorst has quit IRC01:09
*** adreznec has quit IRC02:37
*** adreznec has joined #openstack-powervm02:39
*** esberglu has quit IRC02:43
*** thorst has joined #openstack-powervm03:10
*** thorst has quit IRC03:15
*** esberglu has joined #openstack-powervm03:26
*** tjakobs has joined #openstack-powervm03:28
*** esberglu has quit IRC03:30
*** tjakobs has quit IRC03:33
*** tjakobs has joined #openstack-powervm03:34
*** tjakobs has quit IRC03:38
*** edmondsw has joined #openstack-powervm03:53
*** edmondsw has quit IRC03:57
*** tjakobs has joined #openstack-powervm04:42
*** tjakobs has quit IRC05:08
*** thorst has joined #openstack-powervm05:12
*** thorst has quit IRC05:16
*** edmondsw has joined #openstack-powervm05:41
*** edmondsw has quit IRC05:45
*** AndyWojo has quit IRC06:24
*** AndyWojo has joined #openstack-powervm06:26
*** openstackgerrit has quit IRC06:28
*** jwcroppe has quit IRC06:36
*** jwcroppe has joined #openstack-powervm06:36
*** esberglu has joined #openstack-powervm06:38
*** AlexeyAbashkin has joined #openstack-powervm06:39
*** esberglu has quit IRC06:43
*** AlexeyAbashkin has quit IRC06:46
*** edmondsw has joined #openstack-powervm07:29
*** efried has quit IRC07:32
*** edmondsw has quit IRC07:33
*** AlexeyAbashkin has joined #openstack-powervm07:38
*** efried has joined #openstack-powervm07:44
*** esberglu has joined #openstack-powervm08:26
*** esberglu has quit IRC08:30
*** esberglu has joined #openstack-powervm09:20
*** esberglu has quit IRC09:20
*** esberglu has joined #openstack-powervm09:20
*** esberglu has quit IRC09:21
*** AlexeyAbashkin has quit IRC09:53
*** AlexeyAbashkin has joined #openstack-powervm09:53
*** esberglu has joined #openstack-powervm10:14
*** esberglu has quit IRC10:18
*** AlexeyAbashkin has quit IRC11:04
*** edmondsw has joined #openstack-powervm11:05
*** edmondsw has quit IRC11:09
*** AlexeyAbashkin has joined #openstack-powervm11:20
*** thorst has joined #openstack-powervm11:54
*** thorst has quit IRC11:54
*** thorst has joined #openstack-powervm11:56
*** edmondsw has joined #openstack-powervm12:09
*** esberglu has joined #openstack-powervm12:38
*** kylek3h has quit IRC14:03
*** esberglu has quit IRC14:46
*** tjakobs has joined #openstack-powervm14:48
*** tjakobs has quit IRC14:49
*** tjakobs has joined #openstack-powervm14:49
*** tjakobs_ has joined #openstack-powervm14:56
*** tjakobs has quit IRC14:56
*** thorst has quit IRC15:37
mdrabeefried could you shlap https://review.openstack.org/#/c/511343 on your review list pretty please15:48
efriedmdrabe Ack.  Ready to go, is it?15:58
mdrabeYep and live tested15:58
efriedcool16:04
*** AlexeyAbashkin has quit IRC16:36
*** esberglu has joined #openstack-powervm17:45
*** tjakobs_ has quit IRC17:57
*** AlexeyAbashkin has joined #openstack-powervm17:59
*** AlexeyAbashkin has quit IRC18:03
*** tjakobs_ has joined #openstack-powervm18:04
efriedmdrabe See review, me confused.18:19
*** edmondsw has quit IRC19:04
*** edmondsw has joined #openstack-powervm19:04
*** edmondsw has quit IRC19:09
*** openstackgerrit has joined #openstack-powervm19:23
openstackgerritMatt Rabe proposed openstack/nova-powervm master: Persist existing LPAR wrapper attributes in DefaultStandardize on resize  https://review.openstack.org/51134319:23
*** kylek3h has joined #openstack-powervm19:23
*** kylek3h has quit IRC19:26
*** edmondsw has joined #openstack-powervm19:54
mdrabeefried: history quiz, remember why we changed the raised ConsoleTypeUnavailable to InteralError here https://github.com/openstack/nova-powervm/blob/master/nova_powervm/virt/powervm/driver.py#L1744?20:34
mdrabeIt's not evident in the review https://review.openstack.org/#/c/435114/6/nova_powervm/virt/powervm/driver.py20:35
efriedmdrabe Finding the in-tree review...20:46
efriedmdrabe https://review.openstack.org/#/c/409402/14/nova/tests/unit/virt/powervm/test_driver.py@26920:49
efriedblaayum20:49
mdrabeAh thnx couldn't find that20:51
mdrabeefried: Can we change it back to ConsoleTypeUnavailable?20:51
mdrabeInternalError isn't a handled exception by the API, but ConsoleTypeUnavailable is20:51
mdrabeSo all InternalErrors thrown from get_vnc_console are treated as unexpected exceptions from the API, masking the original error20:53
*** edmondsw has quit IRC20:56
mdrabeefried: Here's the handled exceptions by the API https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/remote_consoles.py#L54-L6220:58
efriedmdrabe "masking the original error"?21:08
efriedIs there some kind of bug for this that you're trying to resolve?21:09
mdrabeBecause get_vnc_console (the API) doesn't handle InternalError exceptions, it gets blown up as an unhandled exception21:09
mdrabeSorta, side effect of a bug21:09
efriedI think that's what we want, in the case of an Exception.21:10
mdrabeThis is just a small improvement thing21:10
efriedIf there's a more specific thing that's happening, we should be detecting it and raising something more specific.21:10
efriedBut if it's anything else, it's truly unexpected/unhandled, and it should be blowing up hard.21:10
mdrabeYea but this is a handled exception by the driver21:11
efriedBut "masking" worries me.  That's a code flow problem, if it's truly happening.  Not necessarily an improper use of exceptions by us.21:11
mdrabeWhich means it should be a handled exception by the API21:11
efriedWhat is it?21:11
mdrabeHere's what it looks like from the API when InternalError is raised:21:11
mdrabeHTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.21:11
efriedUhm, right, and now you look in the compute log and it says what?21:11
efriedMy point is, whatever happened there is NOT necessarily a 400.21:12
mdrabeInstead if it's a ConsoleTypeUnavailable exception then the API would catch it and relay the actual exception message21:12
efriedIn fact, it's most likely NOT a 400.21:12
efriedYeah, I don't think we want it to.21:12
efriedYou must have an example of the actual exception that prompted this discussion.21:12
efriedWhat is it?21:12
mdrabeGrabbin it just a sec21:13
mdrabeultimately it was the firewall21:13
mdrabeNot sure what compute actually gets though21:13
mdrabeefried: here it is from compute: http://paste.openstack.org/show/623763/21:17
mdrabeMore generally I think that any exception _explicitly_ raised by the driver should be handled in the API21:18
efriedWhat does the InstanceNotFound code path do?21:19
mdrabeThat's handled in the API21:19
efriedWhere?21:19
efriedoh, I see it.21:19
mdrabehttps://github.com/openstack/nova/blob/master/nova/api/openstack/compute/remote_consoles.py#L5721:19
efriedThing is, ConsoleTypeUnavailable is not appropriate.21:20
mdrabewainot? existing vterm? Based off the name I'd think that'd fit21:20
efried"Unavailable console type %(console_type)s."21:21
efriedAs in, "you asked for console type X, but I only support Y and Z".21:21
mdrabeInstanceNotReady then perhaps?21:21
efriedMeh.  That's slightly better.  But unless we override the message it doesn't really help the user.21:22
efriedAnd overriding the message is kind of ew.21:22
efriedBut21:22
efriedI could get behind it21:23
efriedIf we catch VNCBasedTerminalFailedToOpen specifically.21:23
efriedNot for the general Exception case.21:23
mdrabesubclass one of those maybe?21:23
efriedcould do.21:23
mdrabeIght I'll open a bug and whip it up21:25
*** edmondsw has joined #openstack-powervm22:25
*** edmondsw has quit IRC22:29
*** esberglu has quit IRC22:36
*** esberglu has joined #openstack-powervm23:11
*** esberglu has quit IRC23:15
*** tjakobs_ has quit IRC23:17

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