Friday, 2018-12-14

*** e-tienne has quit IRC00:41
*** weshay_pto is now known as weshay13:07
*** herald85 has joined #ara13:20
*** weshay is now known as weshay1-113:34
*** weshay1-1 is now known as weshay14:05
*** etienne has joined #ara15:23
openstackgerritDavid Moreau Simard proposed openstack/ara-plugins master: Remove leftover .gitkeep file  https://review.openstack.org/62530216:36
openstackgerritDavid Moreau Simard proposed openstack/ara-plugins master: Add helper commands to determine plugin location  https://review.openstack.org/62530316:36
openstackgerritDavid Moreau Simard proposed openstack/ara-plugins master: Improve README to include docs for enabling ara-plugins  https://review.openstack.org/62530416:37
*** herald85 has quit IRC16:37
*** sshnaidm|off has quit IRC17:10
*** sshnaidm|off has joined #ara17:25
openstackgerritDavid Moreau Simard proposed openstack/ara-clients master: Use 'ara-clients' instead of __name__ when determining client version  https://review.openstack.org/62531617:29
openstackgerritDavid Moreau Simard proposed openstack/ara-clients master: Use 'ara-clients' instead of __name__ when determining client version  https://review.openstack.org/62531617:30
*** etienne has quit IRC18:34
apollo13dmsimard: gerrit no longer shows +1/+2 for me when I try to reply to a merge request, just a comment box19:08
apollo13dmsimard: oh, you already merged it :D19:08
dmsimardapollo13: tried to wait but needed to make progress :(19:09
apollo13or rather I can't read my emails19:09
apollo13dmsimard: no problem19:09
dmsimardapollo13: btw I'm going to send a patch to add a lot of docs on top of https://review.openstack.org/#/c/624443/ soon19:09
apollo13I think I looked at them anyways and gave my feedback; will look through the open ones today19:09
dmsimardit looks like dynaconf actually works pretty well despite a little workaround19:10
dmsimardWould very much appreciate your input once I have the docs patch up19:11
apollo13I'll look at it right now, I should understand it without the docs too19:11
*** gvincent has quit IRC19:12
apollo13dmsimard: the only thing I dislike about dynaconf is how it integrates into django19:13
dmsimardapollo13: sure -- I do have to fix the linters failure and address some things I realized when writing docs19:13
dmsimardapollo13: agreed that the django implementation could be better but it's not /that/ bad, if anything we're empowered to improve it19:15
dmsimardyou might even have an opinion on https://github.com/rochacbruno/dynaconf/issues/8919:15
apollo13not yet no (just read the ticket)19:16
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: WIP: Basic documentation  https://review.openstack.org/62335019:20
dmsimard^ it's still WIP but is better than nothing to give a bit of context into how the config might work19:20
apollo13does dynaconf patch os.environ?19:21
dmsimardI don't think ? Why ?19:22
apollo13https://review.openstack.org/#/c/624443/4/ara/server/settings.py19:22
apollo13because you use os.environ there19:22
apollo13shouldn't that be dynaconf.somethingsomething so it could also read from a conf file?19:22
dmsimardapollo13: the os.environ usage to get the database credentials is the compromise I settled with to work around the bug I linked19:24
dmsimarddynaconf would normally grab ARA_* variables19:25
dmsimardso those lines are /mostly/ no-op, dynaconf will still correctly "overwrite" them if they are defined and the config file will have precedence if the env vars aren't set19:25
apollo13dmsimard: I am under the impression that that would still work if you import dynaconf in, manage.py / wsgi.py19:26
apollo13from https://github.com/rochacbruno/dynaconf/issues/89#issuecomment-42569101719:26
dmsimardThat's how it is set up right now19:26
apollo13so why do you need that os.environ stuff?19:26
dmsimardIn my testing, there seemed to be a sort of circular run around. I forget the specifics.19:27
dmsimardSomething like the database being set to the defaults until dynaconf took over and that was sufficient to be off19:28
dmsimardSo those lines ensures that it is consistent with or without env vars19:28
apollo13and you also need it for ARA_BASE_DIR so the default for DATABASE_NAME also works?19:29
dmsimardYeah, and at the end of settings.py we write out a configuration template file. I'm not convinced that this specific part needs to live in settings.py outright, though, I've considered writing a django-admin command for it19:31
apollo13+1 on the admin-command19:31
dmsimardI'd probably have the admin-command be able to write a configuration template in different formats (yaml, ini, toml, etc.)19:32
apollo13would that really be such a big deal? it is just a config file, don't overcomplicate it :D19:32
dmsimard¯\_(ツ)_/¯19:33
dmsimardfor the database thing, I looked at what pulp did and they sort of cheat in the sense that they don't ship a working config: https://github.com/pulp/pulp/blob/a3aaa5e80ee8640c25d3850c7d4a5c12fc6e8faa/pulpcore/app/settings.py#L171-L18219:34
dmsimardI want to ship a working config :)19:34
apollo13https://github.com/rochacbruno/dynaconf/blob/master/dynaconf/contrib/django_dynaconf/dynaconf_django_conf.py#L3 is most likely triggering django to go through databases and whatnot19:40
apollo13imo they should directly import DJANGO_SETTINGS_MODULE there19:41
apollo13although that will probably miss the global settings19:42
apollo13but then this will always trigger django evaluation which tends to break things as can be seen :D19:42
dmsimardyeah... it's never going to be able to 100% prevent settings from loading before setting it's own settings :p19:49
apollo13actually it wouldn't need to, it just overcomplicates it19:52
apollo13anyways, gotta fight soap for a bit19:53
dmsimardXaroth: btw there's no license or anything for https://github.com/Xaroth/ansible-uwsgi -- did you want to contribute it to the ara role as-is ? I don't want to unnecessarily copy paste things without attribution or credit of some kind :p20:29
*** PaddyF has joined #ara21:10
ara-slackyooynas: @yooynas has joined the channel21:16
*** weshay is now known as weshay_pto21:44

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