Thursday, 2018-12-06

*** etienne has quit IRC00:03
*** harlowja has quit IRC01:27
*** bcoca has quit IRC04:44
*** gvincent has joined #ara07:35
*** themroc has joined #ara08:48
*** themurph_ has joined #ara08:59
*** themurph has quit IRC09:02
*** sshnaidm|afk has quit IRC09:45
*** sshnaidm|afk has joined #ara09:46
*** sshnaidm|afk is now known as sshnaidm10:12
*** herald85 has joined #ara10:31
*** sshnaidm has quit IRC10:33
*** sshnaidm has joined #ara10:34
*** gvincent has quit IRC10:41
*** gvincent has joined #ara10:42
*** jungleslow has quit IRC11:10
*** sshnaidm is now known as sshnaidm|bbl12:08
*** jungleslow has joined #ara12:18
ara-slackcedric.delgehier: @cedric.delgehier has joined the channel13:40
ara-slackcedric.delgehier: Hi :slightly_smiling_face:13:41
ara-slackcedric.delgehier: I’m trying ara but I get a weird error13:43
ara-slackcedric.delgehier: Version: 0.16.113:45
*** jacknemrod has joined #ara13:47
jacknemrodHi, I'm trying ARA but I have an error https://pastebin.com/gTdmrYQi13:48
*** tbielawa has joined #ara13:51
*** themurph_ has quit IRC13:55
dmsimardjacknemrod: that looks like an outdated jinja module14:01
jacknemrodah14:02
*** tbielawa has quit IRC14:02
jacknemrodJe vais voir ça merci14:02
*** tbielawa has joined #ara14:02
dmsimardjacknemrod: what version are you using ? needs to be >2.9 https://github.com/openstack/ara/blob/master/requirements.txt#L314:02
jacknemrod2.1014:02
dmsimardhmmm14:04
dmsimardjacknemrod: did you install in a virtual environment or globally ?14:05
jacknemrodglobally xD14:05
dmsimardThere can be conflicts between distribution and pip packages :(14:07
jacknemrodIn vena, it works14:07
jacknemrodvenv*14:07
jacknemrodthx14:08
dmsimard\o/14:08
ara-slackdmsimard: @cedric.delgehier by the way slack and IRC are bridged, no need to post in both :stuck_out_tongue:14:09
ara-slackcedric.delgehier: yes :slightly_smiling_face:14:09
ara-slackcedric.delgehier: your meetup with Paris was great  @dmsimard14:10
dmsimardMerci ! It was great, let's do it again sometime :p14:10
*** jacknemrod has quit IRC14:38
*** jacknemrod has joined #ara14:40
*** jacknemrod has quit IRC14:41
*** jacknemrod has joined #ara14:49
*** sshnaidm|bbl is now known as sshnaidm14:51
*** jacknemrod has quit IRC14:51
*** themurph has joined #ara15:15
*** themurph has quit IRC15:16
*** themurph has joined #ara15:19
*** themroc has quit IRC16:26
*** herald85 has quit IRC16:28
dmsimardapollo13: I guess we need some sort of command binding for manage.py for when we install ara-server from pip vs from source16:45
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: Add an ara-manage entry point for Django's manage.py  https://review.openstack.org/62325916:55
dmsimardwhat do you think ^16:55
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: Add an ara-manage entry point for Django's manage.py  https://review.openstack.org/62325916:57
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: Add an ara-manage entry point for Django's manage.py  https://review.openstack.org/62325916:59
openstackgerritBenoît Bayszczak proposed openstack/ara master: use ARA_IGNORE_FACTS even if called module is not 'setup'  https://review.openstack.org/62326717:31
*** etienne has joined #ara17:57
*** tbielawa is now known as tbielawa|lunch18:04
*** themurph has quit IRC18:06
*** themurph has joined #ara18:32
*** themurph has left #ara18:36
*** tbielawa|lunch is now known as tbielawa19:02
apollo13dmsimard: why not move it into ara/__main__.py instead? this way one could use python -m ara directly19:29
apollo13that is at least what pip et all are doing, also we could go with just ara too19:30
dmsimardapollo13: porque no los dos ?19:30
apollo13both what? ara/__main__.py and ara/manage.py?19:31
dmsimardapollo13: yeah, I personally find "ara-manage" more intuitive than python -m ara19:31
apollo13oh that is all fine19:32
dmsimardhow do you pass arguments when using python ?19:32
apollo13python -m ara runserver --help ;)19:32
apollo13the same19:32
apollo13either way, I am fine with the entrypoint19:32
apollo13I just would name the module __main__ instead of manage19:32
dmsimardhmmm19:33
apollo13this is what a python user would expect ;)19:33
apollo13type pip and then type python -m pip19:33
dmsimardI guess we are already doing this in 0.x https://github.com/openstack/ara/blob/master/ara/__main__.py19:33
apollo13there you go19:33
dmsimardso move manage.py to __main__ and adjust the entry point ?19:34
apollo13jupp19:34
dmsimardsure19:34
apollo13unless you want to import from manage in __main__ ;)19:35
apollo13that said, ara is currently a namespace module, so that is kinda dangerous19:35
dmsimardthat'd be a bit redundant19:35
apollo13ie if the client where to require a shell19:35
apollo13you can only have one package write a ara/__main__.py19:35
dmsimardI thought we had gotten rid of the namespacing ?19:35
apollo13no19:36
dmsimardor rather we just removed the namespace declaration and made it implicit19:36
apollo13by removing the __init__.py we made it a namespaced package in python3 yes19:36
apollo13in the worst case we will have to switch the entrypoint over to ara.server19:36
dmsimardwhich isn't incorrect19:37
apollo13yeah19:37
apollo13but I doubt the plugins need an entry point19:37
apollo13clients maybe, but we can put those in ara/clients if needed19:38
dmsimardso __main__ in ara/server which then becomes python -m ara.server ?19:38
dmsimardapollo13: yeah the CLI will probably ship in clients19:38
apollo13yeah then it would be ara.server19:38
apollo13fwiw I plan to package a ara server up as one excutable anyways19:39
dmsimardwhat do you mean ?19:39
dmsimardin a container ?19:39
apollo13no an executable19:39
apollo13so you can just run /home/dmsimard/downloads/ara ;)19:39
dmsimardhow ?19:39
apollo13pex19:39
apollo13https://github.com/pantsbuild/pex/19:39
dmsimardok, I've never tried it19:39
apollo13all you then need aside from the exe is a systemd unit file to start it ;)19:40
*** sshnaidm is now known as sshnaidm|afk19:43
apollo13dmsimard: look what I just found https://dynaconf.readthedocs.io/en/latest/19:47
apollo13pulp uses it, so no matter what comes it will probably be in a better shape then everett :D19:47
dmsimardoh19:48
dmsimardsweet!19:48
apollo13I literally just found it though, no idea if it does what we want19:49
dmsimardthe fact that it has built in support for django is a nice touch19:49
apollo13https://dynaconf.readthedocs.io/en/latest/guides/django.html that sounds a little bit hacky though :D19:49
dmsimardwait, TOML ? :/19:49
apollo13I see "toml, .json, .yaml, .ini and .py"19:50
dmsimardwhew19: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
apollo13hrmpf19:54
apollo13I'll see how the pulp integration looks like, because I very much like to have /etc/… as settings file too19:55
apollo13oh lovely they list alternatives too https://dynaconf.readthedocs.io/en/latest/guides/alternatives.html19:59
dmsimard"configman"20:00
dmsimardnow that's my kind of super hero20:00
apollo13last change 2011 ;)20:07
*** tbielawa has quit IRC21:08
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: Move manage.py to ara.server.__main__ and add an entry point  https://review.openstack.org/62325921:10
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: Move manage.py to ara.server.__main__ and add an entry point  https://review.openstack.org/62325921:13
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: Move manage.py to ara.server.__main__ and add an entry point  https://review.openstack.org/62325921:14
dmsimardsorry for the spam, typos etc :p21:14
dmsimardshould be good now21:14
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: Add playbook filtering by status  https://review.openstack.org/62334423:04
dmsimardthought ^ was done and caught it when I was writing docs on using the API :D23:05
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: WIP: Basic documentation  https://review.openstack.org/62335023:42

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