Wednesday, 2020-08-19

openstackgerritDavid Moreau Simard proposed recordsansible/ara master: WIP: API: Stop returning nested children resources  https://review.opendev.org/74682301:02
*** evrardjp has quit IRC04:33
*** evrardjp has joined #ara04:33
*** sshnaidm is now known as sshnaidm|afk12:26
*** dbpiv has joined #ara12:58
bwatsonany tips on configuring molecule to record to ara?13:52
dmsimardbwatson: hey o/ there was an issue a long time ago about ara in molecule https://github.com/ansible-community/molecule/issues/72813:53
dmsimardturns out you can use whatever callback13:53
ara-slackzach.swanson: Can a playbook find out its ARA url during the playbook execution ?13:55
bwatsonyes, in my molecule.yml I currently setup ANSIBLE_CALLBACK_PLUGINS and ANSIBLE_CALLBACK_WHITELIST to enable the junit plugin/callback for our Jenkins CI to display test results13:55
bwatsonhowever, given ara could be installed in different locations, I'm wondering if anyone knows how that could be set "dynamically" in molecule.yml?13:56
ara-slackzach.swanson: Can a playbook find out its ARA url during the playbook execution ?13:56
ara-slackI want to have it output and the end of the run the url so that my developers can find it easily to troubleshoot13:56
ara-slackzach.swanson: Can a playbook find out its ARA url during the playbook execution ?13:56
ara-slackI want to have it output and the end of the userdata ec2 run the url so that my developers can find it easily to troubleshoot13:56
bwatsonfor example, I don't _know_ if this will work in molecule.yml: $(python3 -m ara.setup.callback_plugins)13:57
dmsimardbwatson: yeah I wouldn't expect that to work either13:59
dmsimardgood question, actually13:59
bwatsonperhaps I should setup a dedicated ARA server and go that route13:59
dmsimardI'd ask ssbarnea but he's not around14:00
bwatsonunfortunately, if you export that environment variable before running molecule, it gets reset because my molecule config already sets it for junit14:00
bwatsonno worries, I'll keep playing around.  just didn't want to re-invent a wheel14:01
dmsimardbwatson: maybe you can include junit in your export ?&14:01
bwatsonhmmm, good idea14:02
dmsimard@zach.swanson: if you're using a recent enough version of ara, there's an "ara_playbook" action plugin that could help https://ara.readthedocs.io/en/latest/ara-api-lookup.html#ara-playbook14:04
dmsimardI can get back to you with an example later14:04
ara-slackzach.swanson: Hmm I think I may need to upgrade for that one14:05
ara-slackzach.swanson: that was a new-ish feature right?14:06
dmsimardit landed in 1.4.014:06
dmsimardbefore 1.4.0 I think I have an example somewhere that uses ara_record instead14:06
dmsimardbit more clunky though14:06
ara-slackzach.swanson: ah yah still running on 1.3.3, I haven’t rebuilt in awhile14:08
bwatsondmsimard: including the junit in the export seems like a winner14:08
ara-slackzach.swanson: I was considering just migrating to your container build anyways14:09
dmsimard@zach.swanson: pre 1.4.0 you can get the playbook id by using ara_record: https://ara.readthedocs.io/en/latest/ara-record.html#recording-arbitrary-data-in-playbooks and then you can construct the URL with that14:12
dmsimardthe register from ara_record contains the playbook id14:12
*** sshnaidm|afk is now known as sshnaidm14:42
*** etienne has joined #ara19:01
*** dmsimard7 has joined #ara21:14
*** dmsimard has quit IRC21:15
*** dmsimard7 is now known as dmsimard21:15

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!