Wednesday, 2017-05-24

harlowjadmsimard is there anything i can do to try to move that output capturing stuff to existence00:22
harlowjaeven if its in the form of what zuul did?00:22
harlowjaanother one that u might know about https://gist.github.com/harlowja/f6439c083e349356c422c6c964b5f89300:24
harlowjathat's been causing `Internal Server Error00:25
harlowjaah, maybe its that jinja`>=2.9`00:27
*** cuongnv has joined #ara00:52
dmsimardharlowja: yeah macros error is jinja>=2.902:36
dmsimardharlowja: also, no progress on that output capturing stuff02:36
dmsimardharlowja: there's simply no way for a pure callback to collect that data -- I've even checked with Tower devs, tower basically just runs ansible-playbook with pexpect so that's how it ends up capturing data02:37
dmsimardso the only way to capture data would be to wrap around ansible playbook02:38
dmsimardsay instead of running ansible-playbook, you run ara-playbook or something02:38
dmsimardI don't mean to say it's not doable, but I would much, much rather avoid "breaking" the transparency/seamlessness of ara by requiring users to run something other than ansible-playbook02:39
dmsimardThere's probably a way but I haven't dug enough yet02:40
*** cliles has quit IRC03:15
*** ChanServ changes topic to "ARA - Ansible Run Analysis: Making playbook runs easier to visualize, understand and troubleshoot | Git: https://github.com/openstack/ara - Docs: https://ara.readthedocs.io/en/latest/ - Latest version: 0.13.0: https://github.com/openstack/ara/releases/tag/0.13.0 | This channel is logged: http://eavesdrop.openstack.org/irclogs/%23ara/"04:04
-openstackstatus- NOTICE: Sufficient free space has been reclaimed that jobs are passing again; any POST_FAILURE results can now be rechecked.04:04
*** jparrill has joined #ara06:15
*** karimb has joined #ara07:35
*** cuongnv has quit IRC10:11
*** jparrill has quit IRC13:43
*** jparrill has joined #ara13:44
*** tbielawa has joined #ara13:46
*** tbielawa has quit IRC13:47
*** tbielawa has joined #ara13:48
*** jparrill has quit IRC13:51
*** jparrill has joined #ara13:51
*** tbielawa has quit IRC13:58
*** tbielawa_ has joined #ara13:58
*** tbielawa_ is now known as tbielawa|mtg14:04
*** jparrill has quit IRC14:12
*** jparrill has joined #ara14:13
*** viniciusfs has joined #ara14:14
*** jparrill_ has joined #ara14:16
*** jparrill has quit IRC14:17
*** jparrill has joined #ara14:58
*** jparrill_ has quit IRC14:59
*** tbielawa|mtg is now known as tbielawa15:01
*** tbielawa has quit IRC15:01
*** viniciusfs has quit IRC15:16
*** viniciusfs has joined #ara15:31
*** jparrill has quit IRC15:59
harlowjadmsimard ya, the other way is there any way i can upload the logs to ara?16:57
harlowjai can capture them, and then just associate them after the fact?16:57
dmsimardharlowja: would need a new feature in ara_record to be able to attach data to a specific playbook that you could then run as adhoc command17:00
dmsimardBecause right now ara_record expects to run from the playbook run context so it knows in which playbook to attach the data.17:00
dmsimardIt could work.17:01
harlowjadmsimard or even outside of ara_record somehow?17:23
dmsimardara_record's the only way to add "dynamic" stuff to ara outside of a regular task from a playbook17:23
dmsimardit wouldn't be too hard to add support for ara_record/ara_read as adhoc tasks17:25
dmsimardI can take a stab at it17:25
harlowjaya, i was even thinking some kind of CLI entrypoint dmsimard17:30
harlowja`ara-associate-logs`17:30
harlowjathat i'd call after running ansible to 'associate the logs'17:30
harlowjaassociate/upload/whatever17:31
dmsimardWe can make a "helper" command that'd really wrap around ara_record but I don't really want to create something from scratch considering ara_record already exists so you can put whatever you want in it :p17:31
harlowjaya, i suppose this would work , ithink17:32
harlowjaeither way17:32
harlowjastupid logs, why so hard to do thigns with17:33
harlowjasomeone needs to talk to the ansible devs and tell them 'wtf'17:33
harlowjalol17:33
*** logan- has quit IRC17:34
dmsimardharlowja: it'd look like this: http://paste.openstack.org/raw/610586/17:34
dmsimard(in ad-hoc obv different but you get the point)17:34
harlowjaya17:34
dmsimardsure, we can do that17:35
*** logan- has joined #ara17:35
harlowjalet me know how asking the ansible devs 'wtf mate why are the runtime logs so hard to get'17:38
harlowjalol17:38
*** openstackgerrit has joined #ara17:58
openstackgerritDavid Moreau Simard proposed openstack/ara master: WIP: Allow ara_record and ara_read to run adhoc with specified playbook  https://review.openstack.org/46769617:58
dmsimardharlowja: no integration or unit tests yet but testing ^ quickly wfm17:58
harlowjacools17:59
dmsimardi.e, ansible localhost -m ara_record -a "playbook=42707d21-38b8-41f0-8f8c-c9ab6a8d7c80 key=logs value=lulz"17:59
harlowjacools18:02
dmsimardharlowja: hm, I'm not sure there is a good way to put a bunch of stuff into "value" from adhoc18:24
dmsimardlike, hundreds of lines of text18:25
dmsimardmaybe ara_record needs a 'log' type that picks up a file18:25
harlowjai'd be fine with that :)18:26
* dmsimard sighs18:26
dmsimardNow that we have permalinks for results we can do stuff like this https://gist.github.com/dmsimard/0b6e1720b7fa1f7d0f696fc00b6418ab19:21
*** openstackgerrit has quit IRC19:48
*** karimb has quit IRC22:12
harlowjacool22:50

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