Thursday, 2019-06-27

*** openstack has joined #openstack-lbaas13:14
*** ChanServ sets mode: +o openstack13:14
*** rcernin has quit IRC13:31
*** boden has joined #openstack-lbaas13:34
*** pcaruana has quit IRC13:46
*** pcaruana has joined #openstack-lbaas13:47
*** gcheresh has quit IRC13:48
*** gcheresh has joined #openstack-lbaas13:56
*** spatel has joined #openstack-lbaas14:01
*** ricolin_ has joined #openstack-lbaas14:20
openstackgerritCarlos Goncalves proposed openstack/octavia master: Fix listener stats and amp health DB deadlock  https://review.opendev.org/66794014:29
johnsomcgoncalves ^^^^ Hmmm, not sure I agree with that. Those retry wrappers should be used with caution.14:34
cgoncalvesjohnsom, totally open for comments. I don't fully grasp DB locks, etc14:37
cgoncalvesdulek should be testing it now14:38
cgoncalveshe encountered that today twice on kuryr CI jobs14:38
dulekcgoncalves: It's a transient issue, so it may happen, or not.14:38
johnsomYeah, however I don't think it's really an issue.14:38
johnsomThere is some built in "throw this away because it's old"14:39
johnsomI'm not sure why this is escalating though, we had some exception handling wrappers around this stuff.14:39
squarebracketin the health manager, i'm seeing "UnboundLocalError: local variable 'lock_session' referenced before assignment". that's definitely a bug and not a config issue, right? this is from the stein release of octavia14:41
cgoncalvesall exceptions are caught, db rolled back, exception reraised14:41
johnsomsquarebracket That is not good. Can you paste the traceback?14:42
johnsomcgoncalves, yeah, ok, so we are handling that internally. This is likely a log level bug14:46
*** fnaval has joined #openstack-lbaas14:46
squarebracketah wait, it seems i missed an error: "Original exception being dropped .... " which says there's an auth exception. i guess the auth error is triggering the UnboundLocalError.14:53
cgoncalvesjohnsom, instead of changing log level, maybe explicitly catch DBDeadlock exception and log a warn that update was dropped but error to all other exceptions?14:56
cgoncalveshttps://github.com/openstack/octavia/blob/c4faac25de85ca3d8b4f12964589a36b2bcd3b57/octavia/controller/healthmanager/health_drivers/update_db.py#L21014:57
johnsomcgoncalves lol, that is effectively lowering the log level for the DBDeadlock exception.  grin14:57
cgoncalveshmm. that is what you were suggesting, no?14:58
cgoncalveslower for DBDeadlock but keep for all others14:58
johnsomRight14:58
cgoncalvesok. I understood you were saying lowering for all. alright, will update patch later14:59
johnsomI would do it here however: https://github.com/openstack/octavia/blob/master/octavia/controller/healthmanager/health_drivers/update_db.py#L6614:59
johnsomAnd here: https://github.com/openstack/octavia/blob/master/octavia/controller/healthmanager/health_drivers/update_db.py#L40215:00
*** ivve has quit IRC15:00
squarebrackethere's the traceback fwiw: https://pastebin.com/DFpv9bux15:00
squarebracketi imagine that probably lock_session should be init'd to None and then checked to see if it exists before doing the rollback()15:01
squarebracketobviously if the db connection can't be init'd, you can't roll it back15:01
squarebracketinit'ing right before the `try` here: https://github.com/openstack/octavia/blob/master/octavia/controller/healthmanager/health_manager.py#L8815:02
squarebracketat least in that case the auth error should be the one bubbling up15:05
johnsomYes, looks like it.  It's a harmless issue as it will automatically retry on the next cycle, but could be cleaner if we can't get a DB session.15:05
johnsomThe reraise did bubble up the sql exception, so at least that was a win.15:07
johnsomOperationalError: (pymysql.err.OperationalError) (1045, u"Access denied for user \'octavia\'@\'lovelace.qa.vantrix.com\15:07
squarebracketmmm, yeah, in the json15:07
johnsomAre you up for opening a story and/or fixing this?15:08
squarebracketi'm used to seeing the tracebacks like from futurist.15:08
squarebracketi could submit a patch if you'd like15:08
johnsomCool, thank you15:08
squarebracketwould this be something for which i should create/amend a test? i haven't looked into how you're doing testing.15:09
johnsomYes, there should be a test update for this. Likely a new test here: https://github.com/openstack/octavia/blob/master/octavia/tests/unit/controller/healthmanager/test_health_manager.py15:13
squarebracketsorry yes, i just found that, should have rtfm before asking :)15:14
*** pcaruana has quit IRC15:14
johnsomIt in fact is a bit light on the test coverage there: http://logs.openstack.org/61/665861/7/check/openstack-tox-cover/0dc0b6d/cover/octavia_controller_healthmanager_health_manager_py.html15:15
*** Vorrtex has joined #openstack-lbaas15:17
*** luksky has quit IRC15:34
*** gcheresh has quit IRC15:56
*** yboaron_ has quit IRC15:59
*** luksky has joined #openstack-lbaas16:30
*** ramishra has quit IRC17:03
openstackgerritCarlos Goncalves proposed openstack/octavia-tempest-plugin master: DNM: Create two listeners in scenario test  https://review.opendev.org/66790817:07
*** ricolin_ has quit IRC17:12
*** ricolin has joined #openstack-lbaas17:12
*** pcaruana has joined #openstack-lbaas17:54
openstackgerritCarlos Goncalves proposed openstack/octavia master: DNM CentOS7 gate test  https://review.opendev.org/66546418:06
*** ricolin has quit IRC18:09
*** boden has quit IRC18:46
*** boden has joined #openstack-lbaas18:47
spateljohnsom: question, does amphora flavor has any specific properties like large hugepage, cpu pinning etc..?19:05
spatelthat is the problem, i have all my compute nodes configure for hugepage and now amphora failed to launch instance because it doesn't has hugepage setting in flavor19:08
johnsomspatel The nova flavor used by Octavia can have those settings.19:32
johnsomhttps://docs.openstack.org/octavia/latest/configuration/configref.html#controller_worker.amp_flavor_id19:32
openstackgerritChuck Wilson proposed openstack/octavia master: only rollback DB when we have a connection to the DB  https://review.opendev.org/66803219:34
squarebracket^ checked to make sure the test failed without changes, and it did19:35
johnsomCool, thanks!19:35
johnsomspatel You can also override that default setting with an Octavia flavor that defines the compute_flavor.19:36
*** spatel has quit IRC19:37
johnsomsquarebracket Do you mind if I make a few updates to your patch or would you like to do the updates based on comments?19:37
openstackgerritChuck Wilson proposed openstack/octavia master: only rollback DB when we have a connection to the DB  https://review.opendev.org/66803219:48
squarebracketjohnsom: whatever you prefer19:50
squarebracketand just to be clear -- are you asking me to open an equivalent bug?19:50
johnsomYeah, part of the criteria we use for backporting a patch is if there is a filed bug (stories in our case).19:51
johnsomhttps://storyboard.openstack.org/#!/dashboard/stories19:51
squarebracketok, i will create one19:54
squarebracketcreated https://storyboard.openstack.org/#!/story/200606220:03
openstackgerritMichael Johnson proposed openstack/octavia master: only rollback DB when we have a connection to the DB  https://review.opendev.org/66803220:06
johnsomCool, I liked the story to the patch (the two lines in the commit message) and added the release note.20:07
johnsomThat should be good-to-go20:07
*** gcheresh has joined #openstack-lbaas20:08
*** ivve has joined #openstack-lbaas20:12
squarebracketmuch obliged, i was trying to figure out how to link the two20:12
*** spatel has joined #openstack-lbaas20:13
spateljohnsom: thanks i am doing it now20:13
*** gcheresh has quit IRC20:29
*** spatel has quit IRC20:37
*** Vorrtex has quit IRC20:56
squarebracketi'm getting a MissingAuthPlugin from the octavia api, but i've configured the keystone_auth section of the conf. is there something i might be missing? i've set most of the values listed in the install guide20:57
johnsomMissingAuthPlugin, hmnm, definitely a keystone thing. Let me look up a few things21:02
johnsomkeystone_authtoken and service_auth come to mind immediately. I would check the "auth_type" setting in the service_auth section, or both really.21:04
johnsomYou can also compare your octavia.conf to one of the test jobs: http://logs.openstack.org/61/665861/7/check/octavia-v2-dsvm-scenario/63357b7/controller/logs/etc/octavia/octavia_conf.txt.gz21:04
johnsomIf that doesn't help, can you https://paste.openstack.org the error output?21:05
*** pcaruana has quit IRC21:05
*** fnaval has quit IRC21:10
*** fnaval has joined #openstack-lbaas21:14
*** fnaval has quit IRC21:14
*** tesseract has quit IRC21:19
squarebracketah! i was missing the service_auth section21:20
squarebracketthans21:20
*** rcernin has joined #openstack-lbaas21:24
*** boden has quit IRC21:55
johnsomOk, first light:22:43
johnsomhttps://www.irccloud.com/pastebin/1vYEOJl2/22:43
*** luksky has quit IRC23:00
openstackgerritMichael Johnson proposed openstack/octavia master: Make amphora use a single HAProxy instance  https://review.opendev.org/66806823:03
xgerman^^ undoing the damage Steven has done?23:03
johnsomYes!23:04
johnsomIt's causing critical failures now so must go!23:04
johnsomDo you remember how hard I argued against the proc-per-listener? sigh23:05
*** spatel has joined #openstack-lbaas23:13
*** spatel has quit IRC23:14
xgermanyep, I remember :-) But his argument was that if you habve more than one listener and change stuff on one the others all stop transporting traffic23:16
johnsomzero hit reloads....23:20
johnsomWasn't a true issue then, really isn't now.23:23
xgermanYeah, sounded always fishy…23:43

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