*** etienne has quit IRC | 00:03 | |
*** harlowja has quit IRC | 01:27 | |
*** bcoca has quit IRC | 04:44 | |
*** gvincent has joined #ara | 07:35 | |
*** themroc has joined #ara | 08:48 | |
*** themurph_ has joined #ara | 08:59 | |
*** themurph has quit IRC | 09:02 | |
*** sshnaidm|afk has quit IRC | 09:45 | |
*** sshnaidm|afk has joined #ara | 09:46 | |
*** sshnaidm|afk is now known as sshnaidm | 10:12 | |
*** herald85 has joined #ara | 10:31 | |
*** sshnaidm has quit IRC | 10:33 | |
*** sshnaidm has joined #ara | 10:34 | |
*** gvincent has quit IRC | 10:41 | |
*** gvincent has joined #ara | 10:42 | |
*** jungleslow has quit IRC | 11:10 | |
*** sshnaidm is now known as sshnaidm|bbl | 12:08 | |
*** jungleslow has joined #ara | 12:18 | |
ara-slack | cedric.delgehier: @cedric.delgehier has joined the channel | 13:40 |
---|---|---|
ara-slack | cedric.delgehier: Hi :slightly_smiling_face: | 13:41 |
ara-slack | cedric.delgehier: I’m trying ara but I get a weird error | 13:43 |
ara-slack | cedric.delgehier: Version: 0.16.1 | 13:45 |
*** jacknemrod has joined #ara | 13:47 | |
jacknemrod | Hi, I'm trying ARA but I have an error https://pastebin.com/gTdmrYQi | 13:48 |
*** tbielawa has joined #ara | 13:51 | |
*** themurph_ has quit IRC | 13:55 | |
dmsimard | jacknemrod: that looks like an outdated jinja module | 14:01 |
jacknemrod | ah | 14:02 |
*** tbielawa has quit IRC | 14:02 | |
jacknemrod | Je vais voir ça merci | 14:02 |
*** tbielawa has joined #ara | 14:02 | |
dmsimard | jacknemrod: what version are you using ? needs to be >2.9 https://github.com/openstack/ara/blob/master/requirements.txt#L3 | 14:02 |
jacknemrod | 2.10 | 14:02 |
dmsimard | hmmm | 14:04 |
dmsimard | jacknemrod: did you install in a virtual environment or globally ? | 14:05 |
jacknemrod | globally xD | 14:05 |
dmsimard | There can be conflicts between distribution and pip packages :( | 14:07 |
jacknemrod | In vena, it works | 14:07 |
jacknemrod | venv* | 14:07 |
jacknemrod | thx | 14:08 |
dmsimard | \o/ | 14:08 |
ara-slack | dmsimard: @cedric.delgehier by the way slack and IRC are bridged, no need to post in both :stuck_out_tongue: | 14:09 |
ara-slack | cedric.delgehier: yes :slightly_smiling_face: | 14:09 |
ara-slack | cedric.delgehier: your meetup with Paris was great @dmsimard | 14:10 |
dmsimard | Merci ! It was great, let's do it again sometime :p | 14:10 |
*** jacknemrod has quit IRC | 14:38 | |
*** jacknemrod has joined #ara | 14:40 | |
*** jacknemrod has quit IRC | 14:41 | |
*** jacknemrod has joined #ara | 14:49 | |
*** sshnaidm|bbl is now known as sshnaidm | 14:51 | |
*** jacknemrod has quit IRC | 14:51 | |
*** themurph has joined #ara | 15:15 | |
*** themurph has quit IRC | 15:16 | |
*** themurph has joined #ara | 15:19 | |
*** themroc has quit IRC | 16:26 | |
*** herald85 has quit IRC | 16:28 | |
dmsimard | apollo13: I guess we need some sort of command binding for manage.py for when we install ara-server from pip vs from source | 16:45 |
openstackgerrit | David Moreau Simard proposed openstack/ara-server master: Add an ara-manage entry point for Django's manage.py https://review.openstack.org/623259 | 16:55 |
dmsimard | what do you think ^ | 16:55 |
openstackgerrit | David Moreau Simard proposed openstack/ara-server master: Add an ara-manage entry point for Django's manage.py https://review.openstack.org/623259 | 16:57 |
openstackgerrit | David Moreau Simard proposed openstack/ara-server master: Add an ara-manage entry point for Django's manage.py https://review.openstack.org/623259 | 16:59 |
openstackgerrit | Benoît Bayszczak proposed openstack/ara master: use ARA_IGNORE_FACTS even if called module is not 'setup' https://review.openstack.org/623267 | 17:31 |
*** etienne has joined #ara | 17:57 | |
*** tbielawa is now known as tbielawa|lunch | 18:04 | |
*** themurph has quit IRC | 18:06 | |
*** themurph has joined #ara | 18:32 | |
*** themurph has left #ara | 18:36 | |
*** tbielawa|lunch is now known as tbielawa | 19:02 | |
apollo13 | dmsimard: why not move it into ara/__main__.py instead? this way one could use python -m ara directly | 19:29 |
apollo13 | that is at least what pip et all are doing, also we could go with just ara too | 19:30 |
dmsimard | apollo13: porque no los dos ? | 19:30 |
apollo13 | both what? ara/__main__.py and ara/manage.py? | 19:31 |
dmsimard | apollo13: yeah, I personally find "ara-manage" more intuitive than python -m ara | 19:31 |
apollo13 | oh that is all fine | 19:32 |
dmsimard | how do you pass arguments when using python ? | 19:32 |
apollo13 | python -m ara runserver --help ;) | 19:32 |
apollo13 | the same | 19:32 |
apollo13 | either way, I am fine with the entrypoint | 19:32 |
apollo13 | I just would name the module __main__ instead of manage | 19:32 |
dmsimard | hmmm | 19:33 |
apollo13 | this is what a python user would expect ;) | 19:33 |
apollo13 | type pip and then type python -m pip | 19:33 |
dmsimard | I guess we are already doing this in 0.x https://github.com/openstack/ara/blob/master/ara/__main__.py | 19:33 |
apollo13 | there you go | 19:33 |
dmsimard | so move manage.py to __main__ and adjust the entry point ? | 19:34 |
apollo13 | jupp | 19:34 |
dmsimard | sure | 19:34 |
apollo13 | unless you want to import from manage in __main__ ;) | 19:35 |
apollo13 | that said, ara is currently a namespace module, so that is kinda dangerous | 19:35 |
dmsimard | that'd be a bit redundant | 19:35 |
apollo13 | ie if the client where to require a shell | 19:35 |
apollo13 | you can only have one package write a ara/__main__.py | 19:35 |
dmsimard | I thought we had gotten rid of the namespacing ? | 19:35 |
apollo13 | no | 19:36 |
dmsimard | or rather we just removed the namespace declaration and made it implicit | 19:36 |
apollo13 | by removing the __init__.py we made it a namespaced package in python3 yes | 19:36 |
apollo13 | in the worst case we will have to switch the entrypoint over to ara.server | 19:36 |
dmsimard | which isn't incorrect | 19:37 |
apollo13 | yeah | 19:37 |
apollo13 | but I doubt the plugins need an entry point | 19:37 |
apollo13 | clients maybe, but we can put those in ara/clients if needed | 19:38 |
dmsimard | so __main__ in ara/server which then becomes python -m ara.server ? | 19:38 |
dmsimard | apollo13: yeah the CLI will probably ship in clients | 19:38 |
apollo13 | yeah then it would be ara.server | 19:38 |
apollo13 | fwiw I plan to package a ara server up as one excutable anyways | 19:39 |
dmsimard | what do you mean ? | 19:39 |
dmsimard | in a container ? | 19:39 |
apollo13 | no an executable | 19:39 |
apollo13 | so you can just run /home/dmsimard/downloads/ara ;) | 19:39 |
dmsimard | how ? | 19:39 |
apollo13 | pex | 19:39 |
apollo13 | https://github.com/pantsbuild/pex/ | 19:39 |
dmsimard | ok, I've never tried it | 19:39 |
apollo13 | all you then need aside from the exe is a systemd unit file to start it ;) | 19:40 |
*** sshnaidm is now known as sshnaidm|afk | 19:43 | |
apollo13 | dmsimard: look what I just found https://dynaconf.readthedocs.io/en/latest/ | 19:47 |
apollo13 | pulp uses it, so no matter what comes it will probably be in a better shape then everett :D | 19:47 |
dmsimard | oh | 19:48 |
dmsimard | sweet! | 19:48 |
apollo13 | I literally just found it though, no idea if it does what we want | 19:49 |
dmsimard | the fact that it has built in support for django is a nice touch | 19:49 |
apollo13 | https://dynaconf.readthedocs.io/en/latest/guides/django.html that sounds a little bit hacky though :D | 19:49 |
dmsimard | wait, TOML ? :/ | 19:49 |
apollo13 | I see "toml, .json, .yaml, .ini and .py" | 19:50 |
dmsimard | whew | 19:51 |
apollo13 | "Dynaconf searches for the file starting at the current working directory. If it is not found there, Dynaconf checks the parent directory. Dynaconf continues checking parent directories until the root is reached." | 19:54 |
apollo13 | hrmpf | 19:54 |
apollo13 | I'll see how the pulp integration looks like, because I very much like to have /etc/… as settings file too | 19:55 |
apollo13 | oh lovely they list alternatives too https://dynaconf.readthedocs.io/en/latest/guides/alternatives.html | 19:59 |
dmsimard | "configman" | 20:00 |
dmsimard | now that's my kind of super hero | 20:00 |
apollo13 | last change 2011 ;) | 20:07 |
*** tbielawa has quit IRC | 21:08 | |
openstackgerrit | David Moreau Simard proposed openstack/ara-server master: Move manage.py to ara.server.__main__ and add an entry point https://review.openstack.org/623259 | 21:10 |
openstackgerrit | David Moreau Simard proposed openstack/ara-server master: Move manage.py to ara.server.__main__ and add an entry point https://review.openstack.org/623259 | 21:13 |
openstackgerrit | David Moreau Simard proposed openstack/ara-server master: Move manage.py to ara.server.__main__ and add an entry point https://review.openstack.org/623259 | 21:14 |
dmsimard | sorry for the spam, typos etc :p | 21:14 |
dmsimard | should be good now | 21:14 |
openstackgerrit | David Moreau Simard proposed openstack/ara-server master: Add playbook filtering by status https://review.openstack.org/623344 | 23:04 |
dmsimard | thought ^ was done and caught it when I was writing docs on using the API :D | 23:05 |
openstackgerrit | David Moreau Simard proposed openstack/ara-server master: WIP: Basic documentation https://review.openstack.org/623350 | 23:42 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!