*** Bakey has quit IRC | 00:31 | |
harlowja | dmsimard hey, we are seeing some results in our ara UI that seem like tehy should not be there | 01:18 |
---|---|---|
harlowja | basically a usage of lineinfile that shows a result of a key :( | 01:19 |
harlowja | (private key) | 01:20 |
harlowja | wondering if perhaps a b ug in ara (or lineinfile) | 01:21 |
dmsimard | harlowj: ara picks up whatever Ansible throws at it, it doesn't really decide anything | 01:26 |
dmsimard | harlowja ^ | 01:26 |
harlowja | kk, will see, gonna get back to u | 01:26 |
dmsimard | If you don't want the results to be logged, use no_log | 01:26 |
harlowja | ya, i'll get back to u, might be our mistake | 01:49 |
harlowja | so nothing to see here (yet) | 01:49 |
harlowja | ha | 01:49 |
*** harlowja has quit IRC | 01:54 | |
*** bcoca has quit IRC | 03:16 | |
*** jlozadad_ has joined #ara | 04:20 | |
*** jlozadad has quit IRC | 04:24 | |
*** BlessJah has quit IRC | 04:29 | |
*** BlessJah has joined #ara | 04:38 | |
*** rvgate has quit IRC | 09:24 | |
*** rvgate has joined #ara | 09:24 | |
*** bcoca has joined #ara | 16:30 | |
*** bcoca has joined #ara | 16:30 | |
*** spiette has joined #ara | 16:44 | |
*** spiette has quit IRC | 16:45 | |
*** bcoca has quit IRC | 17:12 | |
*** jlozadad has joined #ara | 17:47 | |
*** jlozadad has quit IRC | 17:51 | |
*** jlozadad_ has quit IRC | 17:52 | |
*** weshay|ruck has quit IRC | 21:37 | |
*** ara-slack has quit IRC | 21:37 | |
*** berendt has quit IRC | 21:37 | |
*** leifmadsen has quit IRC | 21:37 | |
*** ChanServ has quit IRC | 21:38 | |
*** ChanServ has joined #ara | 21:42 | |
*** barjavel.freenode.net sets mode: +o ChanServ | 21:42 | |
*** berendt has joined #ara | 21:45 | |
*** weshay|ruck has joined #ara | 21:45 | |
*** leifmadsen has joined #ara | 21:45 | |
*** ara-slack has joined #ara | 21:45 | |
*** barjavel.freenode.net sets mode: +v ara-slack | 21:45 | |
*** ara-slack1 has joined #ara | 21:46 | |
*** ara-slack has quit IRC | 21:46 | |
ara-slack1 | <john> This is probably a real newb problem that isn't difficult to fix. If anyone has ideas, please let me know, thanks! In the meantime, I'll chip away at it. | 21:47 |
ara-slack1 | <john> If I unset the ARA env vars, the OSA play executes without error. | 21:51 |
ara-slack1 | <dmsimard> @john I'm not super familiar with OSA and it's great that you found out the last conversation about that :D | 22:17 |
ara-slack1 | <dmsimard> I think OSA sets it's own Ansible configuration so the fact that you are setting env vars is overriding that | 22:18 |
ara-slack1 | <john> Hi @dmsimard -- great work on this product. Trying to figure it out now. OSA uses a .rc file and looks like there is a name collision. The OSA .rc file, for instance, does: "export ANSIBLE_LIBRARY="${ANSIBLE_LIBRARY:-/etc/ansible/roles/plugins/library}", so when the ANSIBLE_LIBRARY env var is preset for ARA, the OSA library var gets dropped | 22:18 |
ara-slack1 | <john> Yeah -- you're right, looks like | 22:19 |
ara-slack1 | <dmsimard> If you try the same snippet but without ANSIBLE_LIBRARY and ANSIBLE_ACTION_PLUGINS, does it work ? | 22:19 |
ara-slack1 | <dmsimard> Library and action plugins are only required if you want to use the ara_record/ara_read modules | 22:20 |
ara-slack1 | <dmsimard> If we find how to do this properly, we should document it in the OSA docs :) | 22:21 |
dmsimard | andymccr, evrardjp ^ | 22:21 |
ara-slack1 | <john> Sounds great -- giving it a try now. ARA is great. I'm going to start using it whenever I have long playbooks. | 22:21 |
ara-slack1 | <dmsimard> There's probably an ansible.cfg file somewhere ? Maybe you could edit that to include the stuff you need. Sorry I can't help more than that, multitasking cooking and phone :p | 22:23 |
ara-slack1 | <john> Ha -- no problem, thanks for the tips. Looks like there will be a name collision with the callback var as well since it's in the OSA rc too (export ANSIBLE_CALLBACK_PLUGINS="${ANSIBLE_CALLBACK_PLUGINS:-/etc/ansible/roles/plugins/callback}"). Trying anyway... | 22:24 |
ara-slack1 | <john> Get an error of: "ERROR! Unexpected Exception: No module named flask" | 22:25 |
ara-slack1 | <john> I'll chip away at it an post if I figure it out. | 22:28 |
ara-slack1 | <dmsimard> I think by default OSA bootstraps Ansible in a virtualenv | 22:30 |
ara-slack1 | <dmsimard> ARA needs to be installed in that virtualenv | 22:30 |
ara-slack1 | <dmsimard> In CI I think it's like /opt/ansible ? I forget | 22:31 |
ara-slack1 | <dmsimard> @john ^ | 22:33 |
ara-slack1 | <john> yeah, there is are /opt/ansible-runtime and /opt/openstack-ansible/ directories created with OSA with the playbooks being in the later (that's where I also tried the ARA config) | 22:35 |
ara-slack1 | <john> The ansible binary with OSA is at /opt/ansible-runtime/bin/ | 22:37 |
ara-slack1 | <john> deployed ara into virtualenv (after executing source /opt/ansible-runtime/bin/activate, did pip install tox, pip install ara, generated new config file in the /opt/openstack-ansible/playbook directory). No errors now, but not populating any data into ara either. | 23:21 |
*** jlozadad has joined #ara | 23:48 | |
ara-slack1 | <dmsimard> As soon as the ARA callback plugin is loaded by Ansible, it should (by default) create a ~/.ara directory (for the user running Ansible) with a sqlite database inside | 23:50 |
ara-slack1 | <dmsimard> If you don't have that directory and database, it means the callback wasn't loaded | 23:51 |
ara-slack1 | <john> I do have it, but with an earlier timestamp today. I'm guessing it was being called on my initial install attempt when there were env var conflicts, but now that it's inside the virtualenv, it may not be getting called properly. I delete that directory and see if it gets re-created. | 23:52 |
ara-slack1 | <dmsimard> Did you export the callback path after sourcing the venv ? | 23:54 |
ara-slack1 | <john> Yeah -- not re-created after I delete it. Doesn't look like the callbacks are being fired properly after install into virtualenv | 23:54 |
ara-slack1 | <john> I'm using a new ansible.cfg file now with the updated virtualenv dir: | 23:54 |
ara-slack1 | <john> File uploaded https://ara-community.slack.com/files/U97AJK1DK/F97B6URNH/-.txt / https://slack-files.com/T6VAB05L7-F97B6URNH-2708cd51b6 | 23:55 |
ara-slack1 | <dmsimard> I'm not positive that ansible.cfg file is loaded | 23:55 |
ara-slack1 | <dmsimard> Ansible looks in $PWD, /etc/ansible/ansible.cfg, ~/ansible.cfg etc | 23:56 |
ara-slack1 | <dmsimard> The re-export from OSA you linked earlier | 23:56 |
ara-slack1 | <dmsimard> Should make it so an export of ANSIBLE_CALLBACK_PLUGINS works | 23:57 |
ara-slack1 | <dmsimard> So export ANSIBLE_CALLBACK_PLUGINS=/opt/ansible-runtime/local/lib/python2.7/site-packages/ara/plugins/callbacks | 23:58 |
ara-slack1 | <john> (Looks like the config file was being grabbed: root@ansible:/opt/openstack-ansible/playbooks# openstack-ansible setup-infrastructure.yml --syntax-check -vvvv Variable files: "-e @/etc/openstack_deploy/user_secrets.yml -e @/etc/openstack_deploy/user_variables.yml " Using /opt/openstack-ansible/playbooks/ansible.cfg as config file ... ) | 23:59 |
ara-slack1 | <john> Ok -- will try exporting | 23:59 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!