hiroki | dmsimard|off: did you get a change to look at the two items ? (access to ARA on a subdomain 'http://domain.tld/ara', and the fact that generated URL's for files do not get a trailing slash prepended and therefore generating a 301 (subsequently breaking HTTPS in a reverse proxy scenario)) | 05:24 |
---|---|---|
*** resmo has joined #ara | 06:55 | |
*** sshnaidm|off is now known as sshnaidm | 08:41 | |
ssbarnea | dmsimard|off: any idea when we should see new ara release? It would be helpful to have it as a pre-release, as we could install it with pip install --pre. | 10:00 |
ssbarnea | somehow I am more confident of installing things from pypi than using git master branch, as it may change too often. | 10:01 |
*** sshnaidm has quit IRC | 10:10 | |
openstackgerrit | Sorin Sbarnea proposed openstack/ara master: Allow ARA module to be run https://review.openstack.org/563561 | 10:22 |
ssbarnea | https://storyboard.openstack.org/#!/story/2001894 | 10:58 |
*** sshnaidm has joined #ara | 11:03 | |
*** dmsimard|off is now known as dmsimard | 12:51 | |
dmsimard | hiroki: hey, I had to take some time off last week and didn't manage to get back to you, sorry | 12:52 |
dmsimard | ssbarnea: new release was supposed to be last week but PTO got in the way | 12:52 |
dmsimard | new releases are always tagged as release candidate (installable with --pre) before being released | 12:53 |
ssbarnea | dmsimard: ok, no pressure. just add a letter to the tag name to make it a prerelease and we will be able to consume it. | 12:53 |
ssbarnea | is better to limit the amount of affected users with this approach. | 12:54 |
ssbarnea | what am wondering about the bug I encountered regarding missing ara module. | 12:54 |
dmsimard | it's not a bug, the README and latest docs mention a feature that isn't yet released | 12:55 |
dmsimard | I mean, it's a doc bug if anything | 12:55 |
ssbarnea | can you reproduce https://storyboard.openstack.org/#!/story/2001894 ? | 12:56 |
dmsimard | I've never seen something like that but I'll have a look | 12:57 |
*** bcoca has joined #ara | 13:04 | |
*** bcoca has joined #ara | 13:04 | |
ssbarnea | dmsimard: just let me know as I could provide extra info. it happened to me on tow different platforms (macos and rhel). i will try to write a simple bash script reproducer in order to narrow it now. | 13:07 |
dmsimard | ssbarnea: seems to be working for me (installing in a venv and then doing source <(python -m ara.setup.env) | 13:15 |
ssbarnea | dmsimard: doing some extra testing now to see exactly in which case it fails. | 13:16 |
dmsimard | are you mixing pip and system dependencies ? the only reason I would see Ansible not finding ara is if they're not using the same python interpreter | 13:16 |
dmsimard | ok, thanks, let me know | 13:16 |
ssbarnea | dmsimard: yep, I was able to narrow it down: it happens when ansible is installed as a system packages and ARA inside VENV. | 13:31 |
ssbarnea | if ansible is also inside venv, it works. but when ara is inside vevn and ansible is inhereted using --system-site-packages, it breaks. | 13:31 |
*** tbielawa has joined #ara | 13:32 | |
ssbarnea | i am not sure if this is ara fault, but is a reasonable use case, especially as we have a policy around here to install packages from RPMs. | 13:32 |
ssbarnea | it seems that ansible forgets some parts of the PYTHONPATH, causing this. | 13:33 |
ara-slack2 | <dmsimard> I filed a similar bug against AWX | 13:39 |
ara-slack2 | <dmsimard> https://github.com/ansible/awx/issues/1737 | 13:40 |
ssbarnea | i spoke with ansible devs on #ansible-devel and it seems to be a complex issue. | 14:05 |
ssbarnea | mainly even if I bypass shebang line by doing: python `which ansible` -- it will not work. | 14:06 |
ssbarnea | i need to define PYTHONPATH in order to make it work. | 14:06 |
ssbarnea | but doing this seems not to be as easy as in theory. | 14:07 |
ssbarnea | i need to build a PYTHONPATH that contains both virtualenv and the original python path. | 14:07 |
ssbarnea | so current question is how to build this correctly, doing "join(sys.path)" is apparently not the correct solution. | 14:09 |
ssbarnea | at least on my system sys.path contains lots of paths, including some egg files, not sure is what I need. | 14:11 |
ssbarnea | and here is current workaround: | 14:13 |
ssbarnea | PYTHONPATH=`python -c "import sys; print(':'.join(sys.path))"` python `which ansible` -i 'localhost,' --connection=local -m ping all | 14:13 |
ssbarnea | it is very ugly, but it the only one that worked. | 14:13 |
*** tbielawa is now known as tbielawa|brbbrbb | 14:22 | |
*** tbielawa|brbbrbb is now known as tbielawa | 14:31 | |
*** tbielawa is now known as tbielawa|mtg | 14:31 | |
*** Bakey has joined #ara | 14:32 | |
*** tbielawa|mtg is now known as tbielawa | 14:59 | |
dmsimard | ssbarnea: they do something like this in AWX already, hang on | 15:14 |
dmsimard | https://github.com/ansible/awx/blob/devel/tools/scripts/awx-python is what I was thinking of but that's not it, there's something else | 15:14 |
ssbarnea | for the moment i implemented this hideous hack, now I am trying to tune nginx to make ara work when files jenkins artifacts. i have some "fun" with CORS> | 15:16 |
dmsimard | ssbarnea: I know it doesn't help *right now* but there is a todo to package ARA -- it's already in fedora rawhide and I need to package it.. probably in RDO | 15:17 |
dmsimard | it can't be in EPEL because there's some base dependencies that are in RHEL and out of date | 15:17 |
dmsimard | so that you can install ara with yum instead of pip (which might resolve your conflicting issue) | 15:18 |
ssbarnea | yep, i know that his one is tricky and in fact is not ara fault. any module needed by ansible would be affected by this issue. | 15:18 |
ssbarnea | i hope you can get rid of the iframe use, is a PITA due to cors. | 15:20 |
dmsimard | It's planned in 1.0, yes | 15:24 |
dmsimard | the iframe is a "clever" workaround so the data is retrieved "just in time" rather than at the initial page load | 15:25 |
*** tbielawa is now known as tbielawa|brb | 15:33 | |
*** resmo has quit IRC | 15:36 | |
*** sshnaidm is now known as sshnaidm|afk | 15:41 | |
*** sshnaidm|afk has quit IRC | 15:46 | |
*** sshnaidm has joined #ara | 15:48 | |
*** sshnaidm has quit IRC | 15:49 | |
*** Pies has joined #ara | 15:57 | |
Pies | hi, I'm trying to check ara. Unfortunately if I install according to https://github.com/openstack/ara#quickstart, then there is no module setup in ara, so `python -m ara.setup.callback_plugins` doesn't works | 16:05 |
Pies | I just replicated it in new env, with clean install ansible and ara, and I still get "(env) pies@x230:/tmp $ python -m ara.setup.ansible | 16:06 |
Pies | /tmp/env/bin/python: No module named setup | 16:06 |
Bakey | so playing around with ara_record, can you link directly to the key/value pairs in a specific playbook run? | 16:08 |
*** tbielawa|brb is now known as tbielawa | 16:09 | |
dmsimard | Pies: hey, this is my bad -- those instructions are meant for the upcoming release | 16:20 |
dmsimard | Please look at http://ara.readthedocs.io/en/stable/configuration.html in the meantime | 16:21 |
dmsimard | Bakey: I'm not sure I understand what you mean, can you explain ? | 16:21 |
Pies | dmsimard: ack, good to know. In meantime I estimated results from python -m ara.setup.ansible, so I'm already checking if ara can help me with task at hand ;) | 16:26 |
openstackgerrit | Guillaume Vincent proposed openstack/ara-web master: Extract Navbar component from App component https://review.openstack.org/563696 | 16:53 |
openstackgerrit | Guillaume Vincent proposed openstack/ara-web master: Create MainContent component with Results list sandbox https://review.openstack.org/563697 | 16:53 |
openstackgerrit | Merged openstack/ara-web master: Extract Navbar component from App component https://review.openstack.org/563696 | 16:55 |
*** sshnaidm has joined #ara | 17:00 | |
*** sshnaidm is now known as sshnaidm|off | 17:02 | |
openstackgerrit | Guillaume Vincent proposed openstack/ara-web master: Create MainContent component with Results list sandbox https://review.openstack.org/563697 | 17:08 |
openstackgerrit | Sorin Sbarnea proposed openstack/ara master: Allow ara to be instalal in a virtualenv https://review.openstack.org/563712 | 17:38 |
openstackgerrit | Sorin Sbarnea proposed openstack/ara master: Allow ara to be installed in a virtualenv https://review.openstack.org/563712 | 17:40 |
ssbarnea | dmsimard: ^^ i managed to find a way to avoid the import error. | 17:41 |
Bakey | dmsimard: I'm registering custom values using ara_record. Is there a way to link specifically to the key/value pairs shown when you expand "Records" in the web UI? As opposed to the whole playbook report? | 17:42 |
dmsimard | Bakey: ah, I see what you mean. There's no way right now unfortunately. | 17:43 |
dmsimard | Bakey: next best thing would be to retrieve the value through the CLI | 17:43 |
dmsimard | ssbarnea: thanks, I'll review | 17:45 |
Bakey | dmsimard: I'm trying to give this info to people not Ansible savvy, so I was hoping I could send them a link on the fly | 17:48 |
Bakey | I can get close enough though, so thanks | 17:48 |
dmsimard | Bakey: I'm sure this is something that will be more straightforward with the API in the major version we're working on | 17:49 |
openstackgerrit | Merged openstack/ara master: Rebrand Ansible Run Analysis to ARA Records Ansible https://review.openstack.org/547245 | 17:59 |
*** harlowja has joined #ara | 18:44 | |
*** harlowja has quit IRC | 19:07 | |
Bakey | dmsimard: I've got a playbook now that pipes a bunch of output into ara and then spits out the URL for the user to go find the data | 19:42 |
Bakey | it works | 19:42 |
*** tbielawa is now known as tbielawa|brb | 20:18 | |
*** dougbtv_ has joined #ara | 20:37 | |
*** dougbtv has quit IRC | 20:40 | |
*** tbielawa|brb is now known as tbielawa | 20:57 | |
*** tbielawa has quit IRC | 20:57 | |
*** dougbtv__ has joined #ara | 21:01 | |
*** dougbtv_ has quit IRC | 21:03 | |
*** jrist has quit IRC | 22:08 | |
*** jrist has joined #ara | 22:12 | |
*** jrist has quit IRC | 22:12 | |
*** jrist has joined #ara | 22:12 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!