openstackgerrit | David Moreau Simard proposed openstack/ara master: Move "ara generate" to "ara generate html" https://review.openstack.org/431758 | 01:56 |
---|---|---|
*** mnaser has quit IRC | 07:41 | |
*** openstackgerrit has quit IRC | 10:18 | |
*** jclaret has joined #ara | 12:28 | |
*** themurph has joined #ara | 14:44 | |
*** mnaser has joined #ara | 15:54 | |
*** mnaser has joined #ara | 15:54 | |
*** tbielawa|busy has joined #ara | 16:05 | |
tbielawa|busy | hey ARA people. I just wanted to drop in here and say THANK YOU. | 16:05 |
*** karimb has joined #ara | 16:05 | |
tbielawa|busy | This tool is great and making my job right now way easier. | 16:05 |
tbielawa|busy | please keep up the great work :) | 16:05 |
*** abutcher has joined #ara | 16:11 | |
*** jclaret has quit IRC | 16:27 | |
dmsimard | tbielawa|busy: wow thanks :) | 16:50 |
dmsimard | keep that feedback coming :) | 16:50 |
*** tbielawa|busy is now known as tbielawa|mtg | 17:14 | |
tbielawa|mtg | dmsimard: :-) | 17:14 |
tbielawa|mtg | At first I thought, "dang, I have to copy/paste this data right from the web interface." then I quickly discovered the intospective powers of the ara report/list tool :DDD | 17:14 |
tbielawa|mtg | a little /bin/jq magic and you got yourself some magic filtering | 17:14 |
dmsimard | tbielawa|mtg: using jq with json output from the cli ? | 17:25 |
tbielawa|mtg | dmsimard: unbelieveable, right! | 17:25 |
dmsimard | tbielawa|mtg: curious to see, do you have an example ? | 17:27 |
tbielawa|mtg | dmsimard: for example, i just wanted the changed results in json form (I get there's ID's and x-references, but this was enough for me) | 17:27 |
tbielawa|mtg | $ ara result list --playbook 3822a8a3-f345-48aa-8bd8-595618c22647 -f json | jq '.[] | select(.Status == "changed")' | 17:27 |
dmsimard | wow nice | 17:27 |
dotplus | that needs to go in the docs. | 17:45 |
dmsimard | Yeah I think it's a nice use case ! | 17:47 |
dotplus | it's probably the best approach to dealing with my earlier question about roles. Not currently looking the json data structure, but I'm betting that there is something like 'select(.Filename == <role_name>)' that would work | 17:55 |
dotplus | hm, does jq support regex matches instead of ==? I bet it does | 17:55 |
*** tbielawa|mtg is now known as tbielawa | 18:34 | |
*** tbielawa is now known as tbielawa|lunch | 18:56 | |
*** karimb has quit IRC | 19:10 | |
*** tbielawa|lunch is now known as tbielawa | 20:00 | |
*** karimb has joined #ara | 20:01 | |
*** Ravi_ has joined #ara | 20:18 | |
*** Ravi_ has quit IRC | 20:22 | |
tbielawa | i see notes abotu regexes in the JQ docs | 20:28 |
*** karimb has quit IRC | 20:59 | |
*** karimb has joined #ara | 21:04 | |
dotplus | perhaps ara_record could be (also) used to help identify role results/timing | 21:16 |
*** karimb has quit IRC | 21:33 | |
dmsimard | dotplus: yeah maybe you could run a command/timestamp at the beginning and the end of the role and then record the difference | 21:40 |
dotplus | oh that too. I was thinking perhaps a trick involving writing something and then using jq to filter on it. But I think perhaps I like yours better | 21:44 |
tbielawa | I'm not sure of what the actual intended (real life) use cases for the ara_(record|read) modules are? Since Ara seems to keep track of every single state of the running process already.... | 21:45 |
tbielawa | am I missing some clever idioms here? | 21:46 |
tbielawa | like, http://ara.readthedocs.io/en/latest/usage.html#using-the-ara-record-module , ok, but that example doesn't show me why ara-record is better. if I did a debug i'd have that same information available int he ARA report. | 21:46 |
*** tbielawa has quit IRC | 21:50 | |
dmsimard | tbielawa: ara_record is recorded and displayed at the playbook level in the UI, you don't need to dig through a task result | 21:59 |
dmsimard | Oops, he's gone. | 21:59 |
*** abutcher has quit IRC | 22:15 | |
*** openstackgerrit has joined #ara | 23:59 | |
openstackgerrit | David Moreau Simard proposed openstack/ara master: Add unit tests for ara generate command https://review.openstack.org/432496 | 23:59 |
openstackgerrit | David Moreau Simard proposed openstack/ara master: Make py.test verbose in tox https://review.openstack.org/432497 | 23:59 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!