Friday, 2018-04-27

*** Bakey has quit IRC00:24
*** bcoca has quit IRC00:55
*** harlowja has quit IRC01:23
*** karimb has joined #ara08:06
*** karimb has quit IRC09:18
*** grumpyowl has joined #ara10:15
*** karimb has joined #ara10:17
*** hwoarang has quit IRC12:13
*** gvincent has quit IRC13:11
dmsimardhiroki: did you manage to try it out ?13:12
dmsimardssbarnea: you commented "done" on https://review.openstack.org/#/c/563712/ but I don't see a new patchset ?13:12
dmsimardssbarnea: want to land that today if possible so I can cut a pre-release and try for a release monday or tuesday13:13
ssbarneaupdating now13:13
dmsimardthanks13:13
*** bcoca has joined #ara13:13
*** bcoca has joined #ara13:13
openstackgerritSorin Sbarnea proposed openstack/ara master: Fix virtualenv ARA setup helper to work with system Ansible  https://review.openstack.org/56371213:20
openstackgerritSorin Sbarnea proposed openstack/ara master: Fix virtualenv ARA setup helper to work with system Ansible  https://review.openstack.org/56371213:22
ssbarneastrange, i was sure I already made the changes but somehow they were not present even locally. i had to redo them.13:23
ssbarneaprobably i messed git stashing13:23
dmsimardssbarnea: no worries13:37
openstackgerritSorin Sbarnea proposed openstack/ara master: Fix virtualenv ARA setup helper to work with system Ansible  https://review.openstack.org/56371213:49
ssbarneai seem some unexpected errors on the gate, with "AttributeError: 'Blueprint' object has no attribute 'json_encoder'"13:51
dmsimardssbarnea: hmm, maybe the release of flask 1.013:52
dmsimardlet me see13:52
dmsimardssbarnea: let the jobs run, I'll look at the results13:53
ssbarneais suspect some external changes.13:53
dmsimardhmm, I don't think we should be getting flask 1.0 -- I took care of pinning it to <0.1313:54
dmsimardI'll try and see if I can reproduce it locally13:54
*** tbielawa has joined #ara13:57
dmsimardssbarnea: reproduced the issue locally, doesn't seem to be related to flask. I'll look, thanks for pointing this out to me.,13:58
dmsimardssbarnea: flask shipped a broken wheel package for 0.12.3 when they released 1.014:07
dmsimardhttps://github.com/pallets/flask/issues/272814:07
ssbarneai guess you are banning it14:14
dmsimardI'm not sure yet, looking at options14:14
dmsimardA maintainer just replied and said he would ship a fixed 0.12.414:15
ssbarnea!=0.12.3 sounds sane14:15
openstackssbarnea: Error: "=0.12.3" is not a valid command.14:15
dmsimardssbarnea: 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
dmsimardssbarnea: since the maintainer appears to be fast and responsive, I'll let him do his thing and consider alternatives if it doesn't work out14:17
openstackgerritSorin Sbarnea proposed openstack/ara master: Ban broken flask 0.12.3  https://review.openstack.org/56477914:18
ssbarneawe will find out soon, even if he releases a patch is up to us to avoid the broken version.14:19
ssbarneait would not be the first or last time we need to use "!=". hopefully it will not be too often.14:20
dmsimardoh 0.12.3 was actually released yesterday14:20
dmsimardI thought it was an existing release that they had broken14:20
*** gvincent has joined #ara14:34
*** tbielawa is now known as tbielawa|brbrb15:13
*** grumpyowl has quit IRC15:22
openstackgerritDavid Moreau Simard proposed openstack/ara master: Pin Flask to avoid installing 0.12.3  https://review.openstack.org/56477915:29
openstackgerritDavid Moreau Simard proposed openstack/ara master: Fix virtualenv ARA setup helper to work with system Ansible  https://review.openstack.org/56371215:29
openstackgerritDavid Moreau Simard proposed openstack/ara master: Allow ARA module to be run  https://review.openstack.org/56356115:30
dmsimardssbarnea: ^ took the liberty of updating the commit message and rebasing your patches on top of it15:30
ssbarneadmsimard: an appreciated action!15:30
*** myoung is now known as myoung|email-unl15:32
*** myoung|email-unl is now known as myoung|emailplz15:32
*** tbielawa|brbrb is now known as tbielawa15: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 #ara16:05
*** tbielawa is now known as tbielawa|lunch16:31
ssbarneatime to add the workflow flags :)17:12
*** tbielawa|lunch is now known as tbielawa17:34
*** tbielawa is now known as tbielawa|brb17:59
*** tbielawa|brb is now known as tbielawa18:17
*** hwoarang has joined #ara18:27
*** myoung|emailplz is now known as myoung19:18
*** evrardjp has quit IRC19:18
*** evrardjp has joined #ara19:21
*** tbielawa has quit IRC20:08
dmsimardssbarnea: done, thanks for your (already!) three contributions :D20:32
dmsimardThat already ties you for third most contributions heh20:32
*** Zarko has joined #ara21:01
Zarkohey 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 work21:04
dmsimardZarko: hey there21:04
ZarkoI've added these lines, and checked their paths. they are correct21: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/modules21:04
dmsimardZarko: there was a specific issue today which breaks new ara installations, I would have to guess you might be running into that21:05
Zarkopossibly. I just did pip install ara21:06
dmsimardZarko: if you do a pip freeze, what version of flask are you seeing ? There was a broken release of Flask 0.12.321:06
ZarkoFlask==0.12.221:06
ZarkoFlask-Migrate==2.1.1 Flask-Script==2.0.6 Flask-SQLAlchemy==2.3.2 Frozen-Flask==0.1521:06
dmsimardoh, that's great then21:06
*** harlowja has joined #ara21:07
ZarkoI had to downgrade package called "six"21:07
Zarkoto get the ara to "compile" correctly21:07
dmsimardok, so let's backtrack a bit21:07
dmsimardwhen you say the callback isn't working, what do you mean by that ?21:07
Zarkosure, thanks for your help.21:07
ZarkoSo 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
dmsimardok, have you run an ansible playbook after enabling the callback ?21:08
ZarkoI ran a couple of playbooks and nothing was sent (callbacked) to ARA21:08
Zarkoyes21:09
dmsimardalright, what user are you running ansible with ?21:09
Zarkonon-root user21:09
Zarkodoes that matter?21:09
dmsimardyes and no -- the default location of the database is under ~/.ara/ansible.sqlite21:09
ZarkoI've changed it to a fixed path under my home dir21:09
Zarkoand gave it 777 permissions21:10
Zarkothis is a test env21:10
dmsimardyeah, 777 isn't necessary (ever, haha)21:10
ZarkoI did encounter permission issue at the beginning, that's why21:10
ZarkoThough I think it was the wrong path21:11
dmsimardWhat value did you put for the database in your ansible.cfg file ?21:11
Zarkodatabase = sqlite:////home/domain/zarko/.ara/ansible.sqlite21:11
Zarkodir = ~/.ara21:11
Zarkooh, maybe I need to fix the dir too21:12
bcoca777 <= real number of the devil21:12
Zarkolet me try that21:12
dmsimardA literal ~/.ara in the ansible.cfg probably doesn't work but I'm not sure21:12
dmsimardbut your database path looks okay21:12
dmsimardwhere is your ansible.cfg file located ? Are you positive it's loaded when you fire the server ?21:13
Zarkoit's in /etc/ansible/, but I'm sure it's loaded because I can change the port21:14
dmsimardok21:15
Zarkoconfirmed, I've just changed it again to 808021:15
Zarkoand I've fixed all the path21:16
Zarkopaths21:16
dmsimardZarko: ok and if you do something like: sqlite3 /home/domain/zarko/.ara/ansible.sqlite "select path from playbooks;"21:17
dmsimardDo you see anything in there ?21:17
Zarkonope, empty21:18
Zarkothat's why I said it's like callback plugin is not working at all21:18
dmsimardIf you run this: python -c "import os,ara; print(os.path.dirname(ara.__file__))"21:18
dmsimardDo you really get /usr/lib/python2.7/site-packages/ara ?21:19
Zarkoyes21:19
Zarko ll /usr/lib/python2.7/site-packages/ara/plugins/callbacks21:20
Zarko-rw-r--r--. 1 root root     0 Apr 27 15:37 __init__.py21:20
Zarko-rw-r--r--. 1 root root   148 Apr 27 15:37 __init__.pyc21:20
Zarko-rw-r--r--. 1 root root 12163 Apr 27 15:37 log_ara.py21:20
Zarko-rw-r--r--. 1 root root 12158 Apr 27 15:37 log_ara.pyc21:20
Zarkoall those directories exist and I've added them to [defaults] section21:21
dmsimardHmm, weird. You said this was a demo environment ? Can we start from scratch easily ?21:21
Zarkoyeah21:21
dmsimardI'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-ara21:21
dmsimardIt'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 proxy21:22
ZarkoI can try later. Getting pulled into work. One more thing before I go21:22
Zarko python -m ara.setup.ansible was failing when I originally tried21:23
dmsimardYeah, this one is my bad -- this new command will be part of the new release which is currently on the master branch21:23
Zarkobut to my understanding adding the paths manully to ansible.cfg does the same, no?21:23
dmsimardpython -m ara.setup.ansible really just prints an example ansible.cfg file21:23
dmsimardIt doesn't do anything but print things.21:23
Zarkook, good to know.21:24
dmsimardIt'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
Zarkothank 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
Zarkohave a good weekend!21:25
dmsimardalright, see ya o/21:25
*** Zarko has left #ara21:25
openstackgerritMerged openstack/ara master: Pin Flask to avoid installing 0.12.3  https://review.openstack.org/56477922:14
openstackgerritMerged openstack/ara master: Fix virtualenv ARA setup helper to work with system Ansible  https://review.openstack.org/56371222:14
*** bcoca has quit IRC23:50
*** bcoca has joined #ara23:55
*** bcoca has joined #ara23:55

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