*** cuongnv has joined #ara | 00:48 | |
openstackgerrit | Merged openstack/ara master: Provide helpful return output on ara_record tasks https://review.openstack.org/468048 | 00:56 |
---|---|---|
*** jparrill has joined #ara | 06:10 | |
*** jparrill has quit IRC | 06:14 | |
*** jparrill has joined #ara | 06:24 | |
*** jclaret has joined #ara | 07:17 | |
*** openstackgerrit has quit IRC | 07:48 | |
*** karimb has joined #ara | 08:01 | |
*** ishanjain has joined #ara | 08:29 | |
ishanjain | Hi all | 08:35 |
*** viniciusfs has quit IRC | 08:45 | |
ishanjain | I have a setup where we maintain a large number of environments via Ansible playbooks and to keep a track of who changed what, we now have an ARA setup. At the end of (some very important) playbooks, we generate a sort of repo that goes to a text file. I was thinking about a best way to make this output file a part of the stats of an execution in A | 08:48 |
ishanjain | RA. When i use ARA record module, the output is all messed up as it displays in JSON like format. When i use a simple cat command to output the generated report as a task, the output is pretty again but to reach it, one has to go all the way to the last 'task' and there see it. I was wondering if there is a way to make this report a part of the fil | 08:48 |
ishanjain | es where it can be viewed nicely, or any other good idea around this. | 08:48 |
ishanjain | @dmsimard: i know you are working on getting the include files recorded by ARA | 08:49 |
ishanjain | but any way we can explicitly do it within ansible playbook ? | 08:49 |
*** viniciusfs has joined #ara | 09:02 | |
*** ishanjain has quit IRC | 10:30 | |
*** viniciusfs has quit IRC | 10:32 | |
*** cuongnv has quit IRC | 10:41 | |
*** viniciusfs has joined #ara | 10:47 | |
*** ishanjain has joined #ara | 10:55 | |
dmsimard | ishanjain: there's a feature that merged yesterday that will allow you to add files with ara_record | 11:45 |
dmsimard | ishanjain: in this example, we replicate the output of the ansible-playbook command https://review.openstack.org/#/c/467696/5/run_tests.sh | 11:47 |
dmsimard | And then the 'output' key is available here: http://logs.openstack.org/96/467696/5/gate/gate-ara-integration-latest-centos-7/5cdf12d/logs/build/reports/c7105996-412d-4728-89d0-0e8d34f4b17e.html | 11:48 |
dmsimard | In the records section | 11:48 |
dmsimard | In truth, it was already possible to save files with ara_record during a playbook, that particular commit adds the ability to do it after the playbook has finished. | 11:49 |
*** viniciusfs has quit IRC | 12:35 | |
*** Sinergi has joined #ara | 12:50 | |
*** viniciusfs has joined #ara | 12:51 | |
Sinergi | Hello, I am kindly seeking help, I ran into an issue during ARA install when running as a user without escalated permissions. I am trying to cleanly uninstall ARA but failing to do so, 'pip uninstall ara' completes fine but re-installing 'sudo pip install ara' gives errors when typing 'ara' at cli | 12:56 |
Sinergi | https://www.irccloud.com/pastebin/FfKAJ383/ | 12:57 |
dmsimard | Sinergi: that doesn't ring me a bell | 13:01 |
dmsimard | Sinergi: do you have any custom configuration for the database location ? | 13:02 |
Sinergi | I didn't get as far as that I'm afraid. I was following the docs to install, I got as far as pip install ara, running into errors and then trying to remove ara to straight a fresh. | 13:03 |
Sinergi | Once removing ARA and re-installing, I get the error above. | 13:03 |
Sinergi | [smith@node-dev ~]$ ara | 13:04 |
Sinergi | Traceback (most recent call last): | 13:04 |
Sinergi | File "/usr/bin/ara", line 7, in <module> | 13:04 |
Sinergi | from ara.shell import main | 13:04 |
Sinergi | File "/usr/lib/python2.6/site-packages/ara/shell.py", line 18, in <module> | 13:04 |
Sinergi | from ara.webapp import create_app | 13:04 |
Sinergi | File "/usr/lib/python2.6/site-packages/ara/webapp.py", line 15, in <module> | 13:04 |
Sinergi | import ara.config | 13:04 |
Sinergi | File "/usr/lib/python2.6/site-packages/ara/config.py", line 88, in <module> | 13:04 |
Sinergi | 'ARA_DATABASE': 'sqlite:///{}'.format(database_path) | 13:04 |
Sinergi | ValueError: zero length field name in format | 13:04 |
dmsimard | Sinergi: please use a pastebin | 13:04 |
Sinergi | sorry! sure, I'm brand new :-/ | 13:05 |
dmsimard | Sinergi: that error really doesn't make any sense :/ is this on python3 ? | 13:05 |
dmsimard | no wait, that's 2.6 actually | 13:05 |
dmsimard | ara isn't supported on 2.6, you'll need to use 2.7 or later | 13:05 |
Sinergi | Ok, thanks for confirming for me, I appreciate it :) | 13:06 |
dmsimard | Sinergi: no problem, what kind of system is this ? | 13:12 |
dmsimard | Sinergi: FWIW upstream Ansible is going to be dropping support for older versions of python sometime soon | 13:13 |
*** jparrill has quit IRC | 13:15 | |
*** tbielawa has joined #ara | 13:26 | |
Sinergi | It's an old c6100 node that we use for accessing our systems that are locked down in the data centre. It's on it's last legs so it should hopefully get replaced this year | 13:27 |
Sinergi | I'm quite new to ansible but came across ARA and wanted to give it a try. I'll fire up a VM and try it from there | 13:28 |
Sinergi | Thanks for your help | 13:28 |
dmsimard | Sinergi: all good, let me know if you have any questions :) | 13:29 |
*** jparrill has joined #ara | 13:30 | |
*** viniciusfs has quit IRC | 13:57 | |
*** karimb has quit IRC | 14:00 | |
*** karimb has joined #ara | 14:11 | |
*** viniciusfs has joined #ara | 14:13 | |
*** ishanjain has quit IRC | 14:15 | |
*** viniciusfs has quit IRC | 14:48 | |
*** viniciusfs has joined #ara | 15:02 | |
*** viniciusfs has quit IRC | 15:11 | |
*** tbielawa is now known as tbielawa|lunch | 15:51 | |
*** jclaret has quit IRC | 16:00 | |
*** tbielawa|lunch is now known as tbielawa | 17:17 | |
*** karimb has quit IRC | 17:57 | |
*** tbielawa is now known as tbielawa|brb | 19:13 | |
*** tbielawa|brb is now known as tbielawa | 19:26 | |
*** redaudit has joined #ara | 19:56 | |
*** tbielawa has quit IRC | 20:13 | |
dmsimard | harlowja: if you have a chance, can you take the master branch of ara for a spin and let me know if it does what you're looking for ? If not we can look at improvements before tagging the next release | 21:35 |
dmsimard | note that it does require you to configure two more Ansible things http://ara.readthedocs.io/en/latest/configuration.html#using-ansible-cfg | 21:35 |
dmsimard | action_plugins and library | 21:36 |
*** jparrill has quit IRC | 21:42 | |
harlowja | cools | 21:48 |
harlowja | will do | 21:48 |
*** jparrill has joined #ara | 22:05 | |
*** jparrill has quit IRC | 23:29 | |
*** redaudit has quit IRC | 23:34 | |
*** redaudit has joined #ara | 23:38 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!