Friday, 2019-06-28

*** gvincent has joined #ara01:23
*** dbpiv has joined #ara01:27
*** gvincent has quit IRC02:30
*** dbpiv has quit IRC02:35
*** dbpiv has joined #ara02:40
*** dbpiv has quit IRC02:41
*** troic has joined #ara09:00
troicara 1.0 ditched all the juicy details ? Can 1.0 be configured to show the playbooks and facts like 0.10 could (e.g. https://youtu.be/zT1l-rFne-Q?t=153)09:17
troic*ara-web even.09:21
apollo13troic: possible, we do not have feature parity yet09:21
troicOK thanks,09:21
apollo13although I haven't really used ara-web itself yet, so I couldn't even tell you where it hides09:22
troicchecking facts and showing playbooks was nice to show other members of the dept/team.09:22
troicwill have a dig09:22
apollo13https://github.com/ansible-community/ara-web/issues/409:23
apollo13and https://github.com/ansible-community/ara-web/issues/209:23
troicmany thanks09:26
*** troic has quit IRC10:14
*** gvincent has joined #ara11:17
*** gvincent has quit IRC11:31
*** gvincent has joined #ara11:55
*** gvincent has quit IRC12:05
*** gvincent has joined #ara12:06
*** dbpiv has joined #ara12:43
*** bcoca has joined #ara13:07
*** idir__ has joined #ara13:59
idir__hi, i would like to know if there is a new version of ara web which includes the authentication, thnx14:00
dmsimardidir__: it's merged in master14:03
dmsimardIf authentication is enabled on the API, ara-web will prompt a login page14:03
idir__ok but in the ara-api, is there tasks to configure a default django user ?14:05
dmsimardidir__: in the role ? Not yet.14:14
*** dbpiv has quit IRC15:13
Marbugmmm I'm still struggeling in getting ara 0.16 to work on my new system, the module always throws me the error that ara needs to be installed when I execute it, but ara is installed. Can it be that it's a python 2/3 issue? as I have it installed as python2. ara_log.py is also throwing me an error with:15:17
Marbug [WARNING]: Skipping plugin (...ara/plugins/callbacks/log_ara.py) as it seems to be15:17
Marbuginvalid: cannot import name py31compat15:17
dmsimardpy31compat isn't something we're using in ara15:18
dmsimardIf you provide a way to reliably reproduce the issue I can look15:18
Marbugmmm it's also something that I can't find15:20
MarbugI want to test 1 last thing15:20
Marbugbecause it's comming from the ara_log.py15:20
MarbugI can give you the requirements file that I use so you can maybe check it in your env15:21
Marbugdmsimard, I'm using ubuntu18, it installed python-2.7.15+ (this is what I get when I do python --version) and this is the requiremnt file: https://pastebin.com/F4GFjg9A15:26
dmsimardMarbug: It's probably not relevant to the issue but there's no reason to be using 0.16.1 instead of 0.16.415:32
dmsimardare those installed in a virtual environment ?15:33
Marbugnow yes, and inside an lxd container15:33
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Expose setting for Django's database CONN_MAX_AGE config  https://review.opendev.org/66819415:33
MarbugI'll try 0.16.4 as I went all up to 0.16.3 :)15:33
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Expose setting for Django's database CONN_MAX_AGE config  https://review.opendev.org/66819415:35
*** gvincent has quit IRC15:36
Marbugwell 0.16.4 is giving me the same error15:36
Marbugwhen I removed the log_ara.py file, just to keep a copy of ara_record.py module, I'l getting the error that ARA isn't installed15:37
Marbugand when I check the modyle there is a try block around the importing of the modules15:37
Marbugso potencially I might have a dependency issue15:37
Marbugand when I remove the try around the import, I get the error of py31compat 😅15:40
dmsimardMarbug: Can you run a test task/playbook that just prints {{ ansible_python_interpreter }} and make sure it's what you expect ?15:41
Marbugyes sure, 1 sec. Btw, if it might help, I removed the try block and used -vvvv on ansible, and then I got the following: https://pastebin.com/f00E7t8u15:42
Marbugansible_python_interpreter: /python-virtenv/ansible-2.7-py2-v1/bin/python15:43
Marbugand that should be python2 as it's what I used to create the virtualenv15:43
Marbugso it's expected15:44
dmsimardMarbug: I googled a bit and it seems this can be due missing setuptools15:44
dmsimardcan you add setuptools to your reqs ?15:44
dmsimardi.e, https://stackoverflow.com/questions/46998858/importerror-no-module-named-py31compat15:44
Marbugyeah its something I found a few days back too, and what someone in python channel proposed, but it's there15:44
dmsimardMarbug: is it ? I don't see it in your paste15:44
Marbugit was the same I found :D15:44
Marbugmm15:45
dmsimardlike, if you run /python-virtenv/ansible-2.7-py2-v1/bin/pip freeze -- do you see setuptools ?15:45
Marbugok that is strange, I indeed don't see it, while pip mentiones that the requirement is already met15:46
dmsimardare you inheriting system site packages ?15:47
dmsimardor maybe a better question is how the virtualenv is created15:47
MarbugI created it with ansible15:48
Marbugso potencially setuptools might be in the host system, so it will not install it in the virtualenv if it's already present for the same version on the host system?15:48
dmsimardMarbug: more or less15:50
dmsimardif the venv is created with --system-site-packages, it will pick up libs that are already installed for the system python interpreter15:50
dmsimardThis can be useful for some libs that aren't on pypi (e.g, libselinux, python-yum/dnf) but otherwise it can get weird15:51
Marbugmaybe that is the issue, and since I had like the same issue without the virtualenv it migth be persisting due to that fact 🤔15:55
Marbugmaybe it's bound to the version of ubuntu, on my previous workstation I see I'm using ubuntu 18.04.1 and on the new it's 18.04.2 for the container15:58
dmsimardIt should just work, I'm not sure about the problem you're running into16:01
dmsimardara 0.x is used at scale on a lot of ubuntu 18.04 systems16:02
dmsimardthere's something weird about your python environment :p16:02
Marbugyeah and on all systems it's working all just find, just not on my newly build one :(16:02
Marbugyes indeed, and it's jsut a fresh install16:02
Marbugonly thing is that my host has ansible 2.8 as I didn't had a choise since I needed to isntall lxd through snap :(16:03
Marbugand that is only supported starting from 2.816:03
dmsimardThere's 2.8 regression fixes in both 0.16.3 and 0.16.4 so that should be ok too16:04
openstackgerritMerged recordsansible/ara master: ara_api role: Update selinux for gunicorn from home directory  https://review.opendev.org/66772416:04
openstackgerritMerged recordsansible/ara master: ara_api role: Stop managing the gunicorn pidfile  https://review.opendev.org/66772516:05
Marbugyou know, I'm going to check how I can get the same version of ubuntu working, jsut as a last resord solution, but it's late now, did want to stop working half an hour ago16:05
Marbugand this issue is really killing me 😅16:06
Marbugso wwil ltry to use the same version of ubuntu and try to get it working from scratch again16:06
Marbugif that doesn't work, then I don't know16:06
Marbugbut ansible 2.8 isn't something we want to use yet, I'm jsut working upo to do all the fixes here for 1 repo, but I'll need to do another, plus all the molecule tests needs to be aligned and adapted to work with ansible-2.8 too, so it's still some work16:07
*** idir__ has quit IRC16:07
MarbugI think in the beginning of the week, I magically got ARA working in the container, but winrm was not anymore, so I had a bigger issue16:07
dmsimardMarbug: out of curiosity, does it need to be on py27 ? have you tried if you could reproduce the issue on py3 ?16:08
dmsimardapollo13: around ?16:09
Marbugactually it doesn't but since we are using ansible2.7 on python2, it's not hardcoded though, I want to have the same setup, but yeah, maybe it's something that I can try anyway, my purpose is that we would have gone full python3 for ansible-2.8 :)16:09
Marbugso thanks for the suggestion, if I failed with the same ubuntu version, I'll try with a full python3 env for ansible-2.716:10
dmsimardapollo13: I've been iterating a bit on the distributed sqlite patch and I think I'd just expose both CONN_MAX_AGE and WSGI_APPLICATION settings16:10
dmsimardsimilar feeling for the database engine16:12
dmsimardOtherwise what can happen is that settings.yaml has sqlite for the backend but in reality it's overridden by distributed_sqlite16:13
dmsimardCONN_MAX_AGE is useful to have for remote database servers in any case so I figured we should just expose it16:15
dmsimardFor WSGI_APPLICATION, I'd leverage the exposed setting in the role for gunicorn because setting it to "ara.server.wsgi" defaults to "ara.server.wsgi:application" ( https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/gunicorn/ )16:21
*** gvincent has joined #ara16:34
dmsimardI'll try something without exposing wsgi_application16:42
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Expose setting for Django's database CONN_MAX_AGE config  https://review.opendev.org/66819416:42
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Expose setting for Django's database CONN_MAX_AGE config  https://review.opendev.org/66819417:16
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Add distributed_sqlite db backend and WSGI app  https://review.opendev.org/66532317:16
openstackgerritDavid Moreau Simard proposed recordsansible/ara master: Add distributed_sqlite db backend and WSGI app  https://review.opendev.org/66532317:19
*** dbpiv has joined #ara18:01
openstackgerritMerged recordsansible/ara master: Expose setting for Django's database CONN_MAX_AGE config  https://review.opendev.org/66819418:03
*** gvincent has quit IRC21:20
*** gvincent has joined #ara21:28
*** gvincent has quit IRC21:44
*** bcoca has quit IRC21:56
*** gvincent has joined #ara23:03
*** gvincent has quit IRC23:34

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