*** gvincent has joined #ara | 01:23 | |
*** dbpiv has joined #ara | 01:27 | |
*** gvincent has quit IRC | 02:30 | |
*** dbpiv has quit IRC | 02:35 | |
*** dbpiv has joined #ara | 02:40 | |
*** dbpiv has quit IRC | 02:41 | |
*** troic has joined #ara | 09:00 | |
troic | ara 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 |
apollo13 | troic: possible, we do not have feature parity yet | 09:21 |
troic | OK thanks, | 09:21 |
apollo13 | although I haven't really used ara-web itself yet, so I couldn't even tell you where it hides | 09:22 |
troic | checking facts and showing playbooks was nice to show other members of the dept/team. | 09:22 |
troic | will have a dig | 09:22 |
apollo13 | https://github.com/ansible-community/ara-web/issues/4 | 09:23 |
apollo13 | and https://github.com/ansible-community/ara-web/issues/2 | 09:23 |
troic | many thanks | 09:26 |
*** troic has quit IRC | 10:14 | |
*** gvincent has joined #ara | 11:17 | |
*** gvincent has quit IRC | 11:31 | |
*** gvincent has joined #ara | 11:55 | |
*** gvincent has quit IRC | 12:05 | |
*** gvincent has joined #ara | 12:06 | |
*** dbpiv has joined #ara | 12:43 | |
*** bcoca has joined #ara | 13:07 | |
*** idir__ has joined #ara | 13:59 | |
idir__ | hi, i would like to know if there is a new version of ara web which includes the authentication, thnx | 14:00 |
dmsimard | idir__: it's merged in master | 14:03 |
dmsimard | If authentication is enabled on the API, ara-web will prompt a login page | 14:03 |
idir__ | ok but in the ara-api, is there tasks to configure a default django user ? | 14:05 |
dmsimard | idir__: in the role ? Not yet. | 14:14 |
*** dbpiv has quit IRC | 15:13 | |
Marbug | mmm 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 be | 15:17 |
Marbug | invalid: cannot import name py31compat | 15:17 |
dmsimard | py31compat isn't something we're using in ara | 15:18 |
dmsimard | If you provide a way to reliably reproduce the issue I can look | 15:18 |
Marbug | mmm it's also something that I can't find | 15:20 |
Marbug | I want to test 1 last thing | 15:20 |
Marbug | because it's comming from the ara_log.py | 15:20 |
Marbug | I can give you the requirements file that I use so you can maybe check it in your env | 15:21 |
Marbug | dmsimard, 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/F4GFjg9A | 15:26 |
dmsimard | Marbug: It's probably not relevant to the issue but there's no reason to be using 0.16.1 instead of 0.16.4 | 15:32 |
dmsimard | are those installed in a virtual environment ? | 15:33 |
Marbug | now yes, and inside an lxd container | 15:33 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Expose setting for Django's database CONN_MAX_AGE config https://review.opendev.org/668194 | 15:33 |
Marbug | I'll try 0.16.4 as I went all up to 0.16.3 :) | 15:33 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Expose setting for Django's database CONN_MAX_AGE config https://review.opendev.org/668194 | 15:35 |
*** gvincent has quit IRC | 15:36 | |
Marbug | well 0.16.4 is giving me the same error | 15:36 |
Marbug | when 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 installed | 15:37 |
Marbug | and when I check the modyle there is a try block around the importing of the modules | 15:37 |
Marbug | so potencially I might have a dependency issue | 15:37 |
Marbug | and when I remove the try around the import, I get the error of py31compat 😅 | 15:40 |
dmsimard | Marbug: Can you run a test task/playbook that just prints {{ ansible_python_interpreter }} and make sure it's what you expect ? | 15:41 |
Marbug | yes 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/f00E7t8u | 15:42 |
Marbug | ansible_python_interpreter: /python-virtenv/ansible-2.7-py2-v1/bin/python | 15:43 |
Marbug | and that should be python2 as it's what I used to create the virtualenv | 15:43 |
Marbug | so it's expected | 15:44 |
dmsimard | Marbug: I googled a bit and it seems this can be due missing setuptools | 15:44 |
dmsimard | can you add setuptools to your reqs ? | 15:44 |
dmsimard | i.e, https://stackoverflow.com/questions/46998858/importerror-no-module-named-py31compat | 15:44 |
Marbug | yeah its something I found a few days back too, and what someone in python channel proposed, but it's there | 15:44 |
dmsimard | Marbug: is it ? I don't see it in your paste | 15:44 |
Marbug | it was the same I found :D | 15:44 |
Marbug | mm | 15:45 |
dmsimard | like, if you run /python-virtenv/ansible-2.7-py2-v1/bin/pip freeze -- do you see setuptools ? | 15:45 |
Marbug | ok that is strange, I indeed don't see it, while pip mentiones that the requirement is already met | 15:46 |
dmsimard | are you inheriting system site packages ? | 15:47 |
dmsimard | or maybe a better question is how the virtualenv is created | 15:47 |
Marbug | I created it with ansible | 15:48 |
Marbug | so 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 |
dmsimard | Marbug: more or less | 15:50 |
dmsimard | if the venv is created with --system-site-packages, it will pick up libs that are already installed for the system python interpreter | 15:50 |
dmsimard | This can be useful for some libs that aren't on pypi (e.g, libselinux, python-yum/dnf) but otherwise it can get weird | 15:51 |
Marbug | maybe 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 |
Marbug | maybe 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 container | 15:58 |
dmsimard | It should just work, I'm not sure about the problem you're running into | 16:01 |
dmsimard | ara 0.x is used at scale on a lot of ubuntu 18.04 systems | 16:02 |
dmsimard | there's something weird about your python environment :p | 16:02 |
Marbug | yeah and on all systems it's working all just find, just not on my newly build one :( | 16:02 |
Marbug | yes indeed, and it's jsut a fresh install | 16:02 |
Marbug | only 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 |
Marbug | and that is only supported starting from 2.8 | 16:03 |
dmsimard | There's 2.8 regression fixes in both 0.16.3 and 0.16.4 so that should be ok too | 16:04 |
openstackgerrit | Merged recordsansible/ara master: ara_api role: Update selinux for gunicorn from home directory https://review.opendev.org/667724 | 16:04 |
openstackgerrit | Merged recordsansible/ara master: ara_api role: Stop managing the gunicorn pidfile https://review.opendev.org/667725 | 16:05 |
Marbug | you 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 ago | 16:05 |
Marbug | and this issue is really killing me 😅 | 16:06 |
Marbug | so wwil ltry to use the same version of ubuntu and try to get it working from scratch again | 16:06 |
Marbug | if that doesn't work, then I don't know | 16:06 |
Marbug | but 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 work | 16:07 |
*** idir__ has quit IRC | 16:07 | |
Marbug | I 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 issue | 16:07 |
dmsimard | Marbug: out of curiosity, does it need to be on py27 ? have you tried if you could reproduce the issue on py3 ? | 16:08 |
dmsimard | apollo13: around ? | 16:09 |
Marbug | actually 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 |
Marbug | so thanks for the suggestion, if I failed with the same ubuntu version, I'll try with a full python3 env for ansible-2.7 | 16:10 |
dmsimard | apollo13: 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 settings | 16:10 |
dmsimard | similar feeling for the database engine | 16:12 |
dmsimard | Otherwise what can happen is that settings.yaml has sqlite for the backend but in reality it's overridden by distributed_sqlite | 16:13 |
dmsimard | CONN_MAX_AGE is useful to have for remote database servers in any case so I figured we should just expose it | 16:15 |
dmsimard | For 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 #ara | 16:34 | |
dmsimard | I'll try something without exposing wsgi_application | 16:42 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Expose setting for Django's database CONN_MAX_AGE config https://review.opendev.org/668194 | 16:42 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Expose setting for Django's database CONN_MAX_AGE config https://review.opendev.org/668194 | 17:16 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Add distributed_sqlite db backend and WSGI app https://review.opendev.org/665323 | 17:16 |
openstackgerrit | David Moreau Simard proposed recordsansible/ara master: Add distributed_sqlite db backend and WSGI app https://review.opendev.org/665323 | 17:19 |
*** dbpiv has joined #ara | 18:01 | |
openstackgerrit | Merged recordsansible/ara master: Expose setting for Django's database CONN_MAX_AGE config https://review.opendev.org/668194 | 18:03 |
*** gvincent has quit IRC | 21:20 | |
*** gvincent has joined #ara | 21:28 | |
*** gvincent has quit IRC | 21:44 | |
*** bcoca has quit IRC | 21:56 | |
*** gvincent has joined #ara | 23:03 | |
*** gvincent has quit IRC | 23:34 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!