Friday, 2018-07-06

*** resmo has quit IRC01:18
openstackgerritDavid Moreau Simard proposed openstack/ara master: Instanciate the application inside the callback  https://review.openstack.org/58046503:33
*** bcoca has quit IRC04:58
*** quiquell|off is now known as quiquell05:35
quiquelldmsimard: FIx the issue at our code, let's see now05:35
quiquelldmsimard: thanks05:35
*** quiquell is now known as quiquell|bbl06:58
*** quiquell|bbl is now known as quiquell07:39
*** resmo has joined #ara08:47
*** quiquell is now known as quiquell|lunch11:43
*** quiquell|lunch is now known as quiquell12:08
*** tbielawa has joined #ara12:50
dmsimardquiquell: you found an issue on your end ?13:30
quiquelldmsimard: Yep totally, ARA is working like a clock13:55
dmsimardquiquell: I'm curious how you ran into the issue in the first place, did you identify what exactly was wrong ?13:55
quiquelldmsimard: Our collect logs playbook was stuck13:56
*** Bakey has joined #ara13:56
quiquelldmsimard: Tried to reproduce that, but it was working fine13:56
quiquelldmsimard: Was not able to reproduce13:57
dmsimardquiquell: hm, if everything works I won't complain but I had a patch for you to try and see if it got rid of the cache error13:57
quiquelldmsimard: Humm... wait found an issue13:58
dmsimardhopping into a couple back to back meetings now13:58
quiquelldmsimard: setting ARA_DATABASE was failing13:58
quiquelldmsimard: worked with just setting ARA_DIR13:58
dmsimardquiquell: perhaps wrong path ? I know it's weird but there's four front slashes13:58
quiquellso doing for example ARA_DATABASE=sqlite://home/zuul/.ara/ansible.sqlite was failing13:59
dmsimardso like sqlite:////tmp/ansible.sqlite = /tmp/ansible.sqlite13:59
dmsimardyeah sqlite:// is not good enough13:59
quiquellbug doiwn ARA_DIR=/home/zuul/.ara/ was working13:59
dmsimardyou need sqlite:////home/zuul/.ara/ansible.sqlite13:59
quiquell4 bars there ?13:59
quiquellHoly sh...14:00
quiquellI have go with defaults no ARA_DATA_ABSE or ARA_DIR is set now14:00
quiquelljust move the .ara dir to ara-report so log.o.o do the work14:00
dmsimardquiquell: sure, that works too14:02
quiquelldmsimard: So we need four bars ? sqlite:////foo/bar ?14:03
dmsimardyes14:03
dmsimardsqlite:// is the protocol14:04
dmsimardand then /foo/bar is the path14:04
dmsimardand there's an extra third slash, basically14:04
dmsimardsqlite:// / /foo/bar14:04
quiquelldmsimard: I see?14:04
dmsimardquiquell: this is a sqlalchemy thing, it's not ara specific14:05
quiquellOk, now we are good using defaults so we reduce the ara stuff we have to specify14:05
*** themurph has joined #ara14:21
*** bcoca has joined #ara14:25
*** bcoca has joined #ara14:25
*** quiquell is now known as quiquell|off14:47
*** openstackgerrit has quit IRC15:19
*** tbielawa is now known as tbielawa|brb15:32
*** tbielawa|brb is now known as tbielawa16:05
*** paulfantom has quit IRC16:11
*** paulfantom has joined #ara16:11
ara-slack<dmsimard> @harlowja you were having wsgi-related issues with 0.15.0 right ? I just want to make sure they're addressed before I ship a 0.1616:17
ara-slack<harlowja> hmmm16:17
ara-slack<harlowja> ya, the app context stuff i think fixed it16:18
ara-slack<harlowja> but there was something off at some point16:18
ara-slack<dmsimard> do you have an opportunity to try the current master ? your yield_per stuff landed16:18
ara-slack<harlowja> i can i think16:19
ara-slack<harlowja> i have not yet16:19
ara-slack<dmsimard> that would be super helpful16:19
ara-slack<dmsimard> like I'd mail you stickers helpful16:20
ara-slack<harlowja> lol16:20
ara-slack<harlowja> kk16:20
dmsimardI kind of screwed up 0.15 tbh and I'd like to get 0.16 right. I've been working on improving the integration tests coverage (wsgi was a definite gap) but it's not perfect16:21
dmsimardquite a bit of fixes for 0.16 already https://github.com/openstack/ara/compare/0.15.0...master16:22
*** openstackgerrit has joined #ara16:22
openstackgerritJoshua Harlow proposed openstack/ara master: Create the app once (and ensure safely done)  https://review.openstack.org/58071216:22
ara-slack<harlowja> ^ might be useful also16:22
ara-slack<dmsimard> @harlowja oh yeah it was https://github.com/openstack/ara/commit/c6b2984141f4957c8bb58c6d0e609b71a34c3b27 I think ?16:22
ara-slack<harlowja> ya16:22
ara-slack<harlowja> https://review.openstack.org/580712 should avoid making the app over and over again i think16:23
ara-slack<harlowja> and uses a context manager for the app context ^16:23
ara-slack<dmsimard> hmm, tbh the flask context thing confuses me sometimes16:24
ara-slack<dmsimard> whether current_app is available or not, when to create the app, etc16:24
ara-slack<harlowja> ya, same here, lol16:24
ara-slack<dmsimard> so the current approach that your patch proposes, there's a couple places where this is used16:24
ara-slack<harlowja> ya, in webapp.py i think16:25
ara-slack<dmsimard> I'll be happy to move on to the 1.0 backend, everything will be much more straightforward16:25
ara-slack<dmsimard> and no need to keep carrying this odd app context thing16:25
ara-slack<harlowja> lol16:26
ara-slack<harlowja> def16:26
ara-slack<harlowja> we've been using https://review.openstack.org/#/c/580712/ for a few days now if that helps16:26
ara-slack<harlowja> and it seems to be ok :P16:26
ara-slack<harlowja> though i also confused by when to use current_app, or app, or app.context16:27
ara-slack<harlowja> lol16:27
dmsimardeh it's the kind of thing that I'll test but placing a lot of trust in you :p16:27
ara-slack<harlowja> lol16:27
dmsimardbasically16:27
dmsimardspinning up the application has a cost16:27
dmsimardso you ideally only ever want to do it once but keep the app context in memory and use that if it's already spun up16:28
dmsimardflask provides this through "current_app" but it's not obvious to me how it /actually/ works16:28
dmsimardit's like.. for the callback, you don't want to bootstrap the entire app every time ansible sends a hook to the callback16:29
dmsimardI guess for your wsgi patch it's the same general concept, you wound up spinning up N apps instead of a single one16:29
ara-slack<harlowja> ya16:30
openstackgerritMerged openstack/ansible-role-ara master: Listen on 127.0.0.1 by default  https://review.openstack.org/57653216:33
openstackgerritMerged openstack/ansible-role-ara master: Only generate a versioned package string if we have a version  https://review.openstack.org/57653316:33
openstackgerritMerged openstack/ansible-role-ara master: Move systemd service setup to the embedded webserver installation  https://review.openstack.org/57654116:33
openstackgerritMerged openstack/ansible-role-ara master: Don't nest installation variables under a params key  https://review.openstack.org/57655016:33
*** Bakey has quit IRC16:35
*** Bakey has joined #ara16:36
openstackgerritDavid Moreau Simard proposed openstack/ansible-role-ara master: use become: true when reloading systemctl daemon  https://review.openstack.org/58071516:37
openstackgerritDavid Moreau Simard proposed openstack/ansible-role-ara master: Dump the role configuration to /etc/ara  https://review.openstack.org/58071616:37
openstackgerritDavid Moreau Simard proposed openstack/ansible-role-ara master: WIP: Zuul jobs experiments  https://review.openstack.org/55793316:43
*** resmo has quit IRC16:52
*** tbielawa is now known as tbielawa|lunch17:35
*** tbielawa|lunch is now known as tbielawa18:37
*** Bakey has quit IRC18:45
*** tbielawa is now known as tbielawa|around20:18
*** tbielawa|around is now known as tbielawa|g0n321:27
*** themurph has quit IRC21:27
*** tbielawa|g0n3 has quit IRC21:27
openstackgerritDavid Moreau Simard proposed openstack/ansible-role-ara master: Always set up the ARA systemd unit file  https://review.openstack.org/58077221:29
openstackgerritDavid Moreau Simard proposed openstack/ansible-role-ara master: Always set up the ARA systemd unit file  https://review.openstack.org/58077221:30
openstackgerritDavid Moreau Simard proposed openstack/ansible-role-ara master: WIP: Zuul jobs experiments  https://review.openstack.org/55793321:32

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