openstackgerrit | David Moreau Simard proposed recordsansible/ara master: WIP: API: Stop returning nested children resources https://review.opendev.org/746823 | 01:02 |
---|---|---|
*** evrardjp has quit IRC | 04:33 | |
*** evrardjp has joined #ara | 04:33 | |
*** sshnaidm is now known as sshnaidm|afk | 12:26 | |
*** dbpiv has joined #ara | 12:58 | |
bwatson | any tips on configuring molecule to record to ara? | 13:52 |
dmsimard | bwatson: hey o/ there was an issue a long time ago about ara in molecule https://github.com/ansible-community/molecule/issues/728 | 13:53 |
dmsimard | turns out you can use whatever callback | 13:53 |
ara-slack | zach.swanson: Can a playbook find out its ARA url during the playbook execution ? | 13:55 |
bwatson | yes, 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 results | 13:55 |
bwatson | however, 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-slack | zach.swanson: Can a playbook find out its ARA url during the playbook execution ? | 13:56 |
ara-slack | I want to have it output and the end of the run the url so that my developers can find it easily to troubleshoot | 13:56 |
ara-slack | zach.swanson: Can a playbook find out its ARA url during the playbook execution ? | 13:56 |
ara-slack | I want to have it output and the end of the userdata ec2 run the url so that my developers can find it easily to troubleshoot | 13:56 |
bwatson | for example, I don't _know_ if this will work in molecule.yml: $(python3 -m ara.setup.callback_plugins) | 13:57 |
dmsimard | bwatson: yeah I wouldn't expect that to work either | 13:59 |
dmsimard | good question, actually | 13:59 |
bwatson | perhaps I should setup a dedicated ARA server and go that route | 13:59 |
dmsimard | I'd ask ssbarnea but he's not around | 14:00 |
bwatson | unfortunately, if you export that environment variable before running molecule, it gets reset because my molecule config already sets it for junit | 14:00 |
bwatson | no worries, I'll keep playing around. just didn't want to re-invent a wheel | 14:01 |
dmsimard | bwatson: maybe you can include junit in your export ?& | 14:01 |
bwatson | hmmm, good idea | 14: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-playbook | 14:04 |
dmsimard | I can get back to you with an example later | 14:04 |
ara-slack | zach.swanson: Hmm I think I may need to upgrade for that one | 14:05 |
ara-slack | zach.swanson: that was a new-ish feature right? | 14:06 |
dmsimard | it landed in 1.4.0 | 14:06 |
dmsimard | before 1.4.0 I think I have an example somewhere that uses ara_record instead | 14:06 |
dmsimard | bit more clunky though | 14:06 |
ara-slack | zach.swanson: ah yah still running on 1.3.3, I haven’t rebuilt in awhile | 14:08 |
bwatson | dmsimard: including the junit in the export seems like a winner | 14:08 |
ara-slack | zach.swanson: I was considering just migrating to your container build anyways | 14: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 that | 14:12 |
dmsimard | the register from ara_record contains the playbook id | 14:12 |
*** sshnaidm|afk is now known as sshnaidm | 14:42 | |
*** etienne has joined #ara | 19:01 | |
*** dmsimard7 has joined #ara | 21:14 | |
*** dmsimard has quit IRC | 21:15 | |
*** dmsimard7 is now known as dmsimard | 21:15 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!