Friday, 2017-02-10

openstackgerritDavid Moreau Simard proposed openstack/ara master: Move "ara generate" to "ara generate html"  https://review.openstack.org/43175801:56
*** mnaser has quit IRC07:41
*** openstackgerrit has quit IRC10:18
*** jclaret has joined #ara12:28
*** themurph has joined #ara14:44
*** mnaser has joined #ara15:54
*** mnaser has joined #ara15:54
*** tbielawa|busy has joined #ara16:05
tbielawa|busyhey ARA people. I just wanted to drop in here and say THANK YOU.16:05
*** karimb has joined #ara16:05
tbielawa|busyThis tool is great and making my job right now way easier.16:05
tbielawa|busyplease keep up the great work :)16:05
*** abutcher has joined #ara16:11
*** jclaret has quit IRC16:27
dmsimardtbielawa|busy: wow thanks :)16:50
dmsimardkeep that feedback coming :)16:50
*** tbielawa|busy is now known as tbielawa|mtg17:14
tbielawa|mtgdmsimard: :-)17:14
tbielawa|mtgAt 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 :DDD17:14
tbielawa|mtga little /bin/jq magic and you got yourself some magic filtering17:14
dmsimardtbielawa|mtg: using jq with json output from the cli ?17:25
tbielawa|mtgdmsimard: unbelieveable, right!17:25
dmsimardtbielawa|mtg: curious to see, do you have an example ?17:27
tbielawa|mtgdmsimard: 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
dmsimardwow nice17:27
dotplusthat needs to go in the docs.17:45
dmsimardYeah I think it's a nice use case !17:47
dotplusit'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 work17:55
dotplushm, does jq support regex matches instead of ==? I bet it does17:55
*** tbielawa|mtg is now known as tbielawa18:34
*** tbielawa is now known as tbielawa|lunch18:56
*** karimb has quit IRC19:10
*** tbielawa|lunch is now known as tbielawa20:00
*** karimb has joined #ara20:01
*** Ravi_ has joined #ara20:18
*** Ravi_ has quit IRC20:22
tbielawai see notes abotu regexes in the JQ docs20:28
*** karimb has quit IRC20:59
*** karimb has joined #ara21:04
dotplusperhaps ara_record could be (also) used to help identify role results/timing21:16
*** karimb has quit IRC21:33
dmsimarddotplus: yeah maybe you could run a command/timestamp at the beginning and the end of the role and then record the difference21:40
dotplusoh 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 better21:44
tbielawaI'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
tbielawaam I missing some clever idioms here?21:46
tbielawalike, 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 IRC21:50
dmsimardtbielawa: ara_record is recorded and displayed at the playbook level in the UI, you don't need to dig through a task result21:59
dmsimardOops, he's gone.21:59
*** abutcher has quit IRC22:15
*** openstackgerrit has joined #ara23:59
openstackgerritDavid Moreau Simard proposed openstack/ara master: Add unit tests for ara generate command  https://review.openstack.org/43249623:59
openstackgerritDavid Moreau Simard proposed openstack/ara master: Make py.test verbose in tox  https://review.openstack.org/43249723:59

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