*** Bakey has quit IRC | 00:24 | |
*** bcoca has quit IRC | 00:55 | |
*** harlowja has quit IRC | 01:23 | |
*** karimb has joined #ara | 08:06 | |
*** karimb has quit IRC | 09:18 | |
*** grumpyowl has joined #ara | 10:15 | |
*** karimb has joined #ara | 10:17 | |
*** hwoarang has quit IRC | 12:13 | |
*** gvincent has quit IRC | 13:11 | |
dmsimard | hiroki: did you manage to try it out ? | 13:12 |
---|---|---|
dmsimard | ssbarnea: you commented "done" on https://review.openstack.org/#/c/563712/ but I don't see a new patchset ? | 13:12 |
dmsimard | ssbarnea: want to land that today if possible so I can cut a pre-release and try for a release monday or tuesday | 13:13 |
ssbarnea | updating now | 13:13 |
dmsimard | thanks | 13:13 |
*** bcoca has joined #ara | 13:13 | |
*** bcoca has joined #ara | 13:13 | |
openstackgerrit | Sorin Sbarnea proposed openstack/ara master: Fix virtualenv ARA setup helper to work with system Ansible https://review.openstack.org/563712 | 13:20 |
openstackgerrit | Sorin Sbarnea proposed openstack/ara master: Fix virtualenv ARA setup helper to work with system Ansible https://review.openstack.org/563712 | 13:22 |
ssbarnea | strange, i was sure I already made the changes but somehow they were not present even locally. i had to redo them. | 13:23 |
ssbarnea | probably i messed git stashing | 13:23 |
dmsimard | ssbarnea: no worries | 13:37 |
openstackgerrit | Sorin Sbarnea proposed openstack/ara master: Fix virtualenv ARA setup helper to work with system Ansible https://review.openstack.org/563712 | 13:49 |
ssbarnea | i seem some unexpected errors on the gate, with "AttributeError: 'Blueprint' object has no attribute 'json_encoder'" | 13:51 |
dmsimard | ssbarnea: hmm, maybe the release of flask 1.0 | 13:52 |
dmsimard | let me see | 13:52 |
dmsimard | ssbarnea: let the jobs run, I'll look at the results | 13:53 |
ssbarnea | is suspect some external changes. | 13:53 |
dmsimard | hmm, I don't think we should be getting flask 1.0 -- I took care of pinning it to <0.13 | 13:54 |
dmsimard | I'll try and see if I can reproduce it locally | 13:54 |
*** tbielawa has joined #ara | 13:57 | |
dmsimard | ssbarnea: reproduced the issue locally, doesn't seem to be related to flask. I'll look, thanks for pointing this out to me., | 13:58 |
dmsimard | ssbarnea: flask shipped a broken wheel package for 0.12.3 when they released 1.0 | 14:07 |
dmsimard | https://github.com/pallets/flask/issues/2728 | 14:07 |
ssbarnea | i guess you are banning it | 14:14 |
dmsimard | I'm not sure yet, looking at options | 14:14 |
dmsimard | A maintainer just replied and said he would ship a fixed 0.12.4 | 14:15 |
ssbarnea | !=0.12.3 sounds sane | 14:15 |
openstack | ssbarnea: Error: "=0.12.3" is not a valid command. | 14:15 |
dmsimard | ssbarnea: doesn't mean the other versions aren't broken -- and the worst part is that it would require us to cut a release of ARA *now* | 14:17 |
dmsimard | ssbarnea: since the maintainer appears to be fast and responsive, I'll let him do his thing and consider alternatives if it doesn't work out | 14:17 |
openstackgerrit | Sorin Sbarnea proposed openstack/ara master: Ban broken flask 0.12.3 https://review.openstack.org/564779 | 14:18 |
ssbarnea | we will find out soon, even if he releases a patch is up to us to avoid the broken version. | 14:19 |
ssbarnea | it would not be the first or last time we need to use "!=". hopefully it will not be too often. | 14:20 |
dmsimard | oh 0.12.3 was actually released yesterday | 14:20 |
dmsimard | I thought it was an existing release that they had broken | 14:20 |
*** gvincent has joined #ara | 14:34 | |
*** tbielawa is now known as tbielawa|brbrb | 15:13 | |
*** grumpyowl has quit IRC | 15:22 | |
openstackgerrit | David Moreau Simard proposed openstack/ara master: Pin Flask to avoid installing 0.12.3 https://review.openstack.org/564779 | 15:29 |
openstackgerrit | David Moreau Simard proposed openstack/ara master: Fix virtualenv ARA setup helper to work with system Ansible https://review.openstack.org/563712 | 15:29 |
openstackgerrit | David Moreau Simard proposed openstack/ara master: Allow ARA module to be run https://review.openstack.org/563561 | 15:30 |
dmsimard | ssbarnea: ^ took the liberty of updating the commit message and rebasing your patches on top of it | 15:30 |
ssbarnea | dmsimard: an appreciated action! | 15:30 |
*** myoung is now known as myoung|email-unl | 15:32 | |
*** myoung|email-unl is now known as myoung|emailplz | 15:32 | |
*** tbielawa|brbrb is now known as tbielawa | 15:35 | |
-dmsimard- FYI, Flask shipped a broken 0.12.3 release yesterday which breaks new ARA installations. They'll ship a 0.12.4 momentarily. You can manually pin to 0.12.2 if you are experiencing issues. | 15:45 | |
ara-slack | <dmsimard> @channel ^ | 15:46 |
*** karimb has left #ara | 16:05 | |
*** tbielawa is now known as tbielawa|lunch | 16:31 | |
ssbarnea | time to add the workflow flags :) | 17:12 |
*** tbielawa|lunch is now known as tbielawa | 17:34 | |
*** tbielawa is now known as tbielawa|brb | 17:59 | |
*** tbielawa|brb is now known as tbielawa | 18:17 | |
*** hwoarang has joined #ara | 18:27 | |
*** myoung|emailplz is now known as myoung | 19:18 | |
*** evrardjp has quit IRC | 19:18 | |
*** evrardjp has joined #ara | 19:21 | |
*** tbielawa has quit IRC | 20:08 | |
dmsimard | ssbarnea: done, thanks for your (already!) three contributions :D | 20:32 |
dmsimard | That already ties you for third most contributions heh | 20:32 |
*** Zarko has joined #ara | 21:01 | |
Zarko | hey anybody there? I'm trying to get ARA to work on RHEL 7 and Ansible 2.5. Callback plugin does not seem to function at all. ARA variables (db, ports, etc) defined in ansible.conf under [ara] seem to work | 21:04 |
dmsimard | Zarko: hey there | 21:04 |
Zarko | I've added these lines, and checked their paths. they are correct | 21:04 |
Zarko | [defaults] callback_plugins = /usr/lib/python2.7/site-packages/ara/plugins/callbacks action_plugins = /usr/lib/python2.7/site-packages/ara/plugins/actions library = /usr/lib/python2.7/site-packages/ara/plugins/modules | 21:04 |
dmsimard | Zarko: there was a specific issue today which breaks new ara installations, I would have to guess you might be running into that | 21:05 |
Zarko | possibly. I just did pip install ara | 21:06 |
dmsimard | Zarko: if you do a pip freeze, what version of flask are you seeing ? There was a broken release of Flask 0.12.3 | 21:06 |
Zarko | Flask==0.12.2 | 21:06 |
Zarko | Flask-Migrate==2.1.1 Flask-Script==2.0.6 Flask-SQLAlchemy==2.3.2 Frozen-Flask==0.15 | 21:06 |
dmsimard | oh, that's great then | 21:06 |
*** harlowja has joined #ara | 21:07 | |
Zarko | I had to downgrade package called "six" | 21:07 |
Zarko | to get the ara to "compile" correctly | 21:07 |
dmsimard | ok, so let's backtrack a bit | 21:07 |
dmsimard | when you say the callback isn't working, what do you mean by that ? | 21:07 |
Zarko | sure, thanks for your help. | 21:07 |
Zarko | So I fire up the web server, the built in one. and I get this "The ARA database is empty or the web application is not configured properly to find your playbook data." | 21:08 |
dmsimard | ok, have you run an ansible playbook after enabling the callback ? | 21:08 |
Zarko | I ran a couple of playbooks and nothing was sent (callbacked) to ARA | 21:08 |
Zarko | yes | 21:09 |
dmsimard | alright, what user are you running ansible with ? | 21:09 |
Zarko | non-root user | 21:09 |
Zarko | does that matter? | 21:09 |
dmsimard | yes and no -- the default location of the database is under ~/.ara/ansible.sqlite | 21:09 |
Zarko | I've changed it to a fixed path under my home dir | 21:09 |
Zarko | and gave it 777 permissions | 21:10 |
Zarko | this is a test env | 21:10 |
dmsimard | yeah, 777 isn't necessary (ever, haha) | 21:10 |
Zarko | I did encounter permission issue at the beginning, that's why | 21:10 |
Zarko | Though I think it was the wrong path | 21:11 |
dmsimard | What value did you put for the database in your ansible.cfg file ? | 21:11 |
Zarko | database = sqlite:////home/domain/zarko/.ara/ansible.sqlite | 21:11 |
Zarko | dir = ~/.ara | 21:11 |
Zarko | oh, maybe I need to fix the dir too | 21:12 |
bcoca | 777 <= real number of the devil | 21:12 |
Zarko | let me try that | 21:12 |
dmsimard | A literal ~/.ara in the ansible.cfg probably doesn't work but I'm not sure | 21:12 |
dmsimard | but your database path looks okay | 21:12 |
dmsimard | where is your ansible.cfg file located ? Are you positive it's loaded when you fire the server ? | 21:13 |
Zarko | it's in /etc/ansible/, but I'm sure it's loaded because I can change the port | 21:14 |
dmsimard | ok | 21:15 |
Zarko | confirmed, I've just changed it again to 8080 | 21:15 |
Zarko | and I've fixed all the path | 21:16 |
Zarko | paths | 21:16 |
dmsimard | Zarko: ok and if you do something like: sqlite3 /home/domain/zarko/.ara/ansible.sqlite "select path from playbooks;" | 21:17 |
dmsimard | Do you see anything in there ? | 21:17 |
Zarko | nope, empty | 21:18 |
Zarko | that's why I said it's like callback plugin is not working at all | 21:18 |
dmsimard | If you run this: python -c "import os,ara; print(os.path.dirname(ara.__file__))" | 21:18 |
dmsimard | Do you really get /usr/lib/python2.7/site-packages/ara ? | 21:19 |
Zarko | yes | 21:19 |
Zarko | ll /usr/lib/python2.7/site-packages/ara/plugins/callbacks | 21:20 |
Zarko | -rw-r--r--. 1 root root 0 Apr 27 15:37 __init__.py | 21:20 |
Zarko | -rw-r--r--. 1 root root 148 Apr 27 15:37 __init__.pyc | 21:20 |
Zarko | -rw-r--r--. 1 root root 12163 Apr 27 15:37 log_ara.py | 21:20 |
Zarko | -rw-r--r--. 1 root root 12158 Apr 27 15:37 log_ara.pyc | 21:20 |
Zarko | all those directories exist and I've added them to [defaults] section | 21:21 |
dmsimard | Hmm, weird. You said this was a demo environment ? Can we start from scratch easily ? | 21:21 |
Zarko | yeah | 21:21 |
dmsimard | I've never tested the role we're working on with RHEL but I've tested it with CentOS -- I wonder if you could give it a shot: https://github.com/openstack/ansible-role-ara | 21:21 |
dmsimard | It's basically a role that installs ARA from pip, sets up proper directories (/etc/ara, /var/lib/ara, /var/log/ara) with a proper user and provides support for installing a systemd unit file for the embedded webserver or set up apache+mod_wsgi or nginx as a reverse proxy | 21:22 |
Zarko | I can try later. Getting pulled into work. One more thing before I go | 21:22 |
Zarko | python -m ara.setup.ansible was failing when I originally tried | 21:23 |
dmsimard | Yeah, this one is my bad -- this new command will be part of the new release which is currently on the master branch | 21:23 |
Zarko | but to my understanding adding the paths manully to ansible.cfg does the same, no? | 21:23 |
dmsimard | python -m ara.setup.ansible really just prints an example ansible.cfg file | 21:23 |
dmsimard | It doesn't do anything but print things. | 21:23 |
Zarko | ok, good to know. | 21:24 |
dmsimard | It's the weekend soon but please reach out next week, I'd like to make sure you're able to get it going :) | 21:24 |
Zarko | thank you. I appropriate your help. gotta run know too. keep up the work on Ara, looks very good as far as I've seen on video :) | 21:25 |
Zarko | have a good weekend! | 21:25 |
dmsimard | alright, see ya o/ | 21:25 |
*** Zarko has left #ara | 21:25 | |
openstackgerrit | Merged openstack/ara master: Pin Flask to avoid installing 0.12.3 https://review.openstack.org/564779 | 22:14 |
openstackgerrit | Merged openstack/ara master: Fix virtualenv ARA setup helper to work with system Ansible https://review.openstack.org/563712 | 22:14 |
*** bcoca has quit IRC | 23:50 | |
*** bcoca has joined #ara | 23:55 | |
*** bcoca has joined #ara | 23:55 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!