*** themurph has joined #ara | 06:08 | |
*** karimb has joined #ara | 10:10 | |
*** openstackgerrit has quit IRC | 10:33 | |
*** jclaret has joined #ara | 11:25 | |
*** Maximus86 has joined #ara | 11:39 | |
*** karimb has quit IRC | 11:40 | |
Maximus86 | Hi there! | 11:40 |
---|---|---|
Maximus86 | I'd like to know in advance which "ID" my playbook run will get in ARA.. at playbook runtime. Would this be possible? | 11:41 |
Maximus86 | I'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 ARA | 11:43 |
Maximus86 | Also, thanks for updating the docs with flask, I spoke with dms_ on Reddit abouty it | 11:44 |
*** karimb has joined #ara | 11:59 | |
*** karimb has quit IRC | 12:44 | |
dmsimard | Maximus86: hi o/ | 12:45 |
dmsimard | The playbook id is persisted temporarily in ~/.ansible/tmp/ara.json (iirc, on my phone right now) | 12:46 |
dmsimard | This is how the ara_record and ara_read modules are able to operate on the specific playbook | 12:47 |
dmsimard | If 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 |
Maximus86 | that's awesome, I'll play around with that | 13:30 |
Maximus86 | thank you! | 13:31 |
*** Maximus86 has left #ara | 14:12 | |
*** themurph has quit IRC | 14:12 | |
*** themurph has joined #ara | 14:19 | |
*** rteague has joined #ara | 15:10 | |
*** tbielawa has joined #ara | 15:11 | |
*** jclaret has quit IRC | 16:02 | |
tbielawa | dmsimard: i'm going to guess you know dradez, don't you? | 17:15 |
dmsimard | tbielawa: of course :) | 17:16 |
tbielawa | dmsimard: he and I used to be on IT-PC together back in 2011, first team I was on here @ red hat | 17:16 |
tbielawa | dmsimard: background, I was running my org-chart generator up your managment chain and saw he was near you on the graph :) | 17:16 |
dmsimard | He's a nice guy, met him a couple times and beers were had in RDU :) | 17:17 |
tbielawa | :-) | 17:17 |
dmsimard | I help him from time to time on OpenStack/RDO stuff | 17:17 |
dmsimard | tbielawa: by the way I created that this morning so I don't forget: https://storyboard.openstack.org/#!/story/2000904 | 17:18 |
tbielawa | dmsimard: 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 |
tbielawa | dmsimard++ | 17:19 |
tbielawa | yay! :D | 17:19 |
tbielawa | dmsimard: whose idea was ARA, anyway? | 17:22 |
*** karimb has joined #ara | 17:22 | |
dmsimard | mine | 17:22 |
tbielawa | niiiiiiiiiiice | 17:22 |
tbielawa | had an idea | 17:22 |
tbielawa | *itch | 17:22 |
tbielawa | guess in some contexts itches are synonyms for ideas :) | 17:22 |
dmsimard | tbielawa: 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 |
tbielawa | oh wait a gosh darn minute | 17:23 |
tbielawa | ahahahahahhahahahahahaa | 17:23 |
dmsimard | and there's this internal IT thing | 17:23 |
dmsimard | uh, let me find that | 17:23 |
tbielawa | i 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 so | 17:24 |
*** tbielawa is now known as tbielawa|brb | 17:49 | |
*** karimb has quit IRC | 18:07 | |
*** tbielawa|brb is now known as tbielawa | 18:11 | |
*** permalac has quit IRC | 18:34 | |
rteague | dmsimard: 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 |
dmsimard | rteague: hey, thanks for looking into this -- I don't think there was a new sql migration in .12 but let me double check | 19:02 |
dmsimard | yeah, I didn't touch the actual database layout, only added a property helper -- https://github.com/openstack/ara/commit/96852e08852d2bb19dbb13cc972975a0584ead4f | 19:02 |
dmsimard | rteague: 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 |
dmsimard | something like: sqlite3 ~/.ara/ansible.sqlite "select count(*) from playbooks" (and same thing for hosts and task_results) | 19:05 |
rteague | dmsimard: here's the data off the main page, http://pastebin.com/XeWkaunL | 19:08 |
rteague | records 0 seems odd | 19:08 |
dmsimard | oh hey that works too | 19:08 |
dmsimard | rteague: records is for the ara_record feature, sort of persistent ara facts | 19:09 |
rteague | ah, gotcha | 19:09 |
rteague | dmsimard: so the main page loads fine, just hangs on /records | 19:09 |
rteague | could be something else wonky on my system too. running from ara-manage runserver | 19:10 |
dmsimard | rteague: are you using default configs for the most part ? not overriding any pagination settings or anything ? | 19:11 |
rteague | all defaults | 19:11 |
*** georgem1 has joined #ara | 19:34 | |
*** jclaret has joined #ara | 19:43 | |
dmsimard | rteague: so I reproduced the issue and so far I have absolutely no clue what's going on :( | 20:03 |
dmsimard | Added verbose "traps" everywhere and everything seems to be generated just fine but doing an strace on the process, there's obviously something looping | 20:03 |
rteague | dmsimard: alrighty, at least I'm not alone. | 20:03 |
dmsimard | there'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 that | 20:06 |
dmsimard | s/for that/for now/ | 20:06 |
*** georgem1 has left #ara | 20:20 | |
*** tbielawa is now known as tbielawa|lunch | 20:45 | |
dmsimard | rteague: I think I got a solution | 21:09 |
dmsimard | It's something I had started doing in the UI rework but eventually dropped it because it seemed like premature optimization | 21:09 |
dmsimard | wow, yup, instataneous loading | 21:10 |
rteague | dmsimard: good to hear you are on to something, sweet! | 21:11 |
*** openstackgerrit has joined #ara | 21:13 | |
openstackgerrit | David Moreau Simard proposed openstack/ara master: WIP: Defer data tables rendering with AJAX pre-processed results https://review.openstack.org/442164 | 21:13 |
dmsimard | rteague: to give you an idea ^ | 21:14 |
-openstackstatus- NOTICE: restarting gerrit to address performance problems | 21:14 | |
dmsimard | rteague: I'll try and get a release out with fixes for that ASAP, there's still some things to figure out | 21:15 |
*** jclaret has quit IRC | 21:16 | |
*** tbielawa|lunch is now known as tbielawa | 21:45 | |
*** tbielawa has quit IRC | 22:00 | |
openstackgerrit | David Moreau Simard proposed openstack/ara master: WIP: Defer data tables rendering with AJAX pre-processed results https://review.openstack.org/442164 | 22:24 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!