Saturday, 2018-02-10

*** Bakey has quit IRC00:31
harlowjadmsimard hey, we are seeing some results in our ara UI that seem like tehy should not be there01:18
harlowjabasically a usage of lineinfile that shows a result of a key :(01:19
harlowja(private key)01:20
harlowjawondering if perhaps a b ug in ara (or lineinfile)01:21
dmsimardharlowj: ara picks up whatever Ansible throws at it, it doesn't really decide anything01:26
dmsimardharlowja ^01:26
harlowjakk, will see, gonna get back to u01:26
dmsimardIf you don't want the results to be logged, use no_log01:26
harlowjaya, i'll get back to u, might be our mistake01:49
harlowjaso nothing to see here (yet)01:49
harlowjaha01:49
*** harlowja has quit IRC01:54
*** bcoca has quit IRC03:16
*** jlozadad_ has joined #ara04:20
*** jlozadad has quit IRC04:24
*** BlessJah has quit IRC04:29
*** BlessJah has joined #ara04:38
*** rvgate has quit IRC09:24
*** rvgate has joined #ara09:24
*** bcoca has joined #ara16:30
*** bcoca has joined #ara16:30
*** spiette has joined #ara16:44
*** spiette has quit IRC16:45
*** bcoca has quit IRC17:12
*** jlozadad has joined #ara17:47
*** jlozadad has quit IRC17:51
*** jlozadad_ has quit IRC17:52
*** weshay|ruck has quit IRC21:37
*** ara-slack has quit IRC21:37
*** berendt has quit IRC21:37
*** leifmadsen has quit IRC21:37
*** ChanServ has quit IRC21:38
*** ChanServ has joined #ara21:42
*** barjavel.freenode.net sets mode: +o ChanServ21:42
*** berendt has joined #ara21:45
*** weshay|ruck has joined #ara21:45
*** leifmadsen has joined #ara21:45
*** ara-slack has joined #ara21:45
*** barjavel.freenode.net sets mode: +v ara-slack21:45
*** ara-slack1 has joined #ara21:46
*** ara-slack has quit IRC21: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 :D22:17
ara-slack1<dmsimard> I think OSA sets it's own Ansible configuration so the fact that you are setting env vars is overriding that22: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 dropped22:18
ara-slack1<john> Yeah -- you're right, looks like22: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 modules22:20
ara-slack1<dmsimard> If we find how to do this properly, we should document it in the OSA docs :)22:21
dmsimardandymccr, 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 :p22: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 virtualenv22:30
ara-slack1<dmsimard> ARA needs to be installed in that virtualenv22:30
ara-slack1<dmsimard> In CI I think it's like /opt/ansible ? I forget22: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 #ara23: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 inside23:50
ara-slack1<dmsimard> If you don't have that directory and database, it means the callback wasn't loaded23: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 virtualenv23: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-2708cd51b623:55
ara-slack1<dmsimard> I'm not positive that ansible.cfg file is loaded23:55
ara-slack1<dmsimard> Ansible looks in $PWD, /etc/ansible/ansible.cfg, ~/ansible.cfg etc23:56
ara-slack1<dmsimard> The re-export from OSA you linked earlier23:56
ara-slack1<dmsimard> Should make it so an export of ANSIBLE_CALLBACK_PLUGINS works23:57
ara-slack1<dmsimard> So export ANSIBLE_CALLBACK_PLUGINS=/opt/ansible-runtime/local/lib/python2.7/site-packages/ara/plugins/callbacks23: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 exporting23:59

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