Monday, 2017-03-06

*** themurph has joined #ara06:08
*** karimb has joined #ara10:10
*** openstackgerrit has quit IRC10:33
*** jclaret has joined #ara11:25
*** Maximus86 has joined #ara11:39
*** karimb has quit IRC11:40
Maximus86Hi there!11:40
Maximus86I'd like to know in advance which "ID" my playbook run will get in ARA.. at playbook runtime. Would this be possible?11:41
Maximus86I'd like to create a kind of link-back from my playbook run to the log stored in ARA. An example would be a variable in a template, converted to a link to the ansible run that placed the template on the system, in ARA11:43
Maximus86Also, thanks for updating the docs with flask, I spoke with dms_ on Reddit abouty it11:44
*** karimb has joined #ara11:59
*** karimb has quit IRC12:44
dmsimardMaximus86: hi o/12:45
dmsimardThe playbook id is persisted temporarily in ~/.ansible/tmp/ara.json (iirc, on my phone right now)12:46
dmsimardThis is how the ara_record and ara_read modules are able to operate on the specific playbook12:47
dmsimardIf you happen to use ara_record and ara_read, the playbook id is one of the returned keys (i.e register a task running ara_read and then look at var.playbook_id )12:48
Maximus86that's awesome, I'll play around with that13:30
Maximus86thank you!13:31
*** Maximus86 has left #ara14:12
*** themurph has quit IRC14:12
*** themurph has joined #ara14:19
*** rteague has joined #ara15:10
*** tbielawa has joined #ara15:11
*** jclaret has quit IRC16:02
tbielawadmsimard: i'm going to guess you know dradez, don't you?17:15
dmsimardtbielawa: of course :)17:16
tbielawadmsimard: he and I used to be on IT-PC together back in 2011, first team I was on here @ red hat17:16
tbielawadmsimard: background, I was running my org-chart generator up your managment chain and saw he was near you on the graph :)17:16
dmsimardHe's a nice guy, met him a couple times and beers were had in RDU :)17:17
tbielawa:-)17:17
dmsimardI help him from time to time on OpenStack/RDO stuff17:17
dmsimardtbielawa: by the way I created that this morning so I don't forget: https://storyboard.openstack.org/#!/story/200090417:18
tbielawadmsimard: he's probably cry if you told him that Nushus (pozer) is still running in a very few locations. but he might smile again if you tell him that tbielawa finally did the work to get CSP uploads off of it :-)17:19
tbielawadmsimard++17:19
tbielawayay! :D17:19
tbielawadmsimard: whose idea was ARA, anyway?17:22
*** karimb has joined #ara17:22
dmsimardmine17:22
tbielawaniiiiiiiiiiice17:22
tbielawahad an idea17:22
tbielawa*itch17:22
tbielawaguess in some contexts itches are synonyms for ideas :)17:22
dmsimardtbielawa: it started off as me being frustrated with ansible output, you might have heard of human_log (and see my name in the header of https://gist.github.com/cliffano/9868180 )17:22
tbielawaoh wait a gosh darn minute17:23
tbielawaahahahahahhahahahahahaa17:23
dmsimardand there's this internal IT thing17:23
dmsimarduh, let me find that17:23
tbielawai am quite familiar with human log,. I bet abutcher probably poked you about it at least once. I remember him adding it to a project here a yearish ago or so17:24
*** tbielawa is now known as tbielawa|brb17:49
*** karimb has quit IRC18:07
*** tbielawa|brb is now known as tbielawa18:11
*** permalac has quit IRC18:34
rteaguedmsimard: I was tracking down why 0.12 was not pulling up playbook records.  I found that if I start with a fresh database, the webserver works fine.  However, using my original database, the site would just hang trying to open /reports.  Maybe be some database changes from .11 to .12?19:01
dmsimardrteague: hey, thanks for looking into this -- I don't think there was a new sql migration in .12 but let me double check19:02
dmsimardyeah, I didn't touch the actual database layout, only added a property helper -- https://github.com/openstack/ara/commit/96852e08852d2bb19dbb13cc972975a0584ead4f19:02
dmsimardrteague: you mentioned you had a good amount of playbooks, yes ? Can you get me a record count from the database ? I can try and simulate that kind of size on my end and look at what happens.19:03
dmsimardsomething like: sqlite3 ~/.ara/ansible.sqlite "select count(*) from playbooks"   (and same thing for hosts and task_results)19:05
rteaguedmsimard: here's the data off the main page, http://pastebin.com/XeWkaunL19:08
rteaguerecords 0 seems odd19:08
dmsimardoh hey that works too19:08
dmsimardrteague: records is for the ara_record feature, sort of persistent ara facts19:09
rteagueah, gotcha19:09
rteaguedmsimard: so the main page loads fine, just hangs on /records19:09
rteaguecould be something else wonky on my system too.  running from ara-manage runserver19:10
dmsimardrteague: are you using default configs for the most part ? not overriding any pagination settings or anything ?19:11
rteagueall defaults19:11
*** georgem1 has joined #ara19:34
*** jclaret has joined #ara19:43
dmsimardrteague: so I reproduced the issue and so far I have absolutely no clue what's going on :(20:03
dmsimardAdded verbose "traps" everywhere and everything seems to be generated just fine but doing an strace on the process, there's obviously something looping20:03
rteaguedmsimard: alrighty, at least I'm not alone.20:03
dmsimardthere's some upstream bugs in flask-sqlalchemy around pagination performance over larger data sets and the loops I'm seeing seem to involve sqlalchemy so I'm tilting in that direction for that20:06
dmsimards/for that/for now/20:06
*** georgem1 has left #ara20:20
*** tbielawa is now known as tbielawa|lunch20:45
dmsimardrteague: I think I got a solution21:09
dmsimardIt's something I had started doing in the UI rework but eventually dropped it because it seemed like premature optimization21:09
dmsimardwow, yup, instataneous loading21:10
rteaguedmsimard: good to hear you are on to something, sweet!21:11
*** openstackgerrit has joined #ara21:13
openstackgerritDavid Moreau Simard proposed openstack/ara master: WIP: Defer data tables rendering with AJAX pre-processed results  https://review.openstack.org/44216421:13
dmsimardrteague: to give you an idea ^21:14
-openstackstatus- NOTICE: restarting gerrit to address performance problems21:14
dmsimardrteague: I'll try and get a release out with fixes for that ASAP, there's still some things to figure out21:15
*** jclaret has quit IRC21:16
*** tbielawa|lunch is now known as tbielawa21:45
*** tbielawa has quit IRC22:00
openstackgerritDavid Moreau Simard proposed openstack/ara master: WIP: Defer data tables rendering with AJAX pre-processed results  https://review.openstack.org/44216422:24

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