Wednesday, 2019-03-06

*** sshnaidm is now known as sshnaidm|afk00:28
openstackgerritMerged openstack/ara feature/1.0: Implement get_or_create for the File model serializer  https://review.openstack.org/64114001:25
openstackgerritMerged openstack/ara feature/1.0: Rely on the API server for the get_or_create methods  https://review.openstack.org/64114101:25
openstackgerritMerged openstack/ara feature/1.0: Move fields out of serializers and into fields  https://review.openstack.org/64113401:33
openstackgerritMerged openstack/ara feature/1.0: Remove unused code and variables out of serializers  https://review.openstack.org/64113501:33
apollo13dmsimard: to be honest, since in 90% of the cases we actually want to serve static files I'd just add whitenoise and use that08:33
apollo13dmsimard: https://pypi.org/project/whitenoise/ we can configure it that it a) always serves static files and b) does reloading when debug=true afaik08:34
*** sshnaidm|afk has quit IRC09:26
*** sshnaidm|afk has joined #ara10:54
*** sshnaidm|afk has quit IRC10:57
krionhi11:08
kriondmsimard: if you want/can quickfix there's a missing " in the ara_record module example at https://ara.readthedocs.io/en/stable/usage.html#using-the-ara-record-module11:08
krionfirst example, last line, last char (missing ")11:09
larskskrion: you can fix it yourself by changing doc/source/usage.rst in the sources and then submitting a review.11:59
*** sshnaidm|afk has joined #ara12:01
dmsimardapollo13 : yeah I saw whitenoise but I preferred avoiding a dependency if we only needed that route :p12:50
dmsimardI think it's ok to encourage putting a web server in front.12:52
apollo13dmsimard: yeah but putting a webserver in front also means collecting static files etc…13:02
apollo13dmsimard: for simplicity etc whitenoise would be "nice" :D13:02
dmsimardBut using runserver or wsgi still requires collecting static files no ?13:02
dmsimardDoes whitenoise make it so it's no longer required ?13:03
apollo13runserver uses the file finders and serves it automatically without collecting13:03
apollo13whitenoise can be configured to reuse that13:03
apollo13I mean for more adanced stuff like hashed static files we'd probably still want collectstatic, I guess the main question is how much work you want to put on the user13:04
dmsimardI'll give it a try13:08
*** sshnaidm|afk is now known as sshnaidm13:32
dmsimardapollo13: whitenoise worked for runserver out of the box but gunicorn doesn't like it. Troubleshooting now14:30
dmsimardthat was my fault, forgot to set ARA_SETTINGS and it was using the one from my home dir14:31
dmsimardso hey, that works.14:31
dmsimardjust noticed something weird with timestamps, though. log timestamps are jumping timezones or something, see at the end: http://paste.openstack.org/show/747342/14:32
apollo13that is interesting14:41
apollo13I am not sure how to explain the switch14:42
dmsimardI tried playing with the USE_TZ parameter a bit but it was even weirder14:43
apollo13yeah it is probably something around USE_TZ and TIME_ZONE14:43
dmsimardthe time went back instead of ahead14:43
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Use whitenoise for serving static files  https://review.openstack.org/64140314:48
dmsimardapollo13: ^ thanks, I'll abandon the other one14:48
apollo13mhm what would be the clone url?14:49
apollo13apollo13@review.openstack.org:29418/openstack/ara.git14:49
apollo13it is apparently not14:49
apollo13ah nevermind probably gotta reread the admin docs14:50
apollo13ssh://florian@review.openstack.org:29418/openstack/ara.git did not work. Description: florian@review.openstack.org: Permission denied (publickey).14:51
apollo13fatal: Could not read from remote repository.14:51
apollo13ah wait14:51
apollo13works, thanks14:51
apollo13dmsimard: do you have a mac or linux?14:52
dmsimardI need to send a new patchset14:52
dmsimardI run fedora14:52
apollo13mhm, I wonder what happens to the time, we didn't make USE_TZ/TIMEZONE configurable14:53
apollo13although14:53
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Use whitenoise for serving static files  https://review.openstack.org/64140314:54
apollo13it might make sense that the logging changes after django configured settings according to USE_TZ/TIMEZONE14:54
dmsimardapollo13: pretty sure the USE_TZ/TIMEZONE settings were carried over from copypasta14:54
dmsimardso I wouldn't put too much thought into their current values14:54
dmsimardbut yeah, I think it might be a roundabout dynaconf/loading settings thing14:55
apollo13yeah, in the long run we probably should get the writing of our yaml settings file out of settings14:55
apollo13no that cannot be14:55
dmsimardapollo13: +1 on yaml settings14:55
apollo13because our settings.py is no longer affected by dynaconf weirdness14:55
apollo13but django operates like this:14:55
apollo13 * configure minimal logging14:55
apollo13 * load settings14:55
apollo13 * configure timezone/etc (I guess)14:55
apollo13 * reconfigure logging according to LOGGING in settings.py14:55
dmsimardsort of makes sense I suppose14:56
apollo13now between logging during "* load settings" and "* reconfigure logging" the time can switch14:56
apollo13I'd expect it to be correct at the end though14:56
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Use whitenoise for serving static files  https://review.openstack.org/64140316:51
dmsimardapollo13: I think ^ is good to go17:08
*** irclogbot_0 has joined #ara18:09
*** irclogbot_0 has quit IRC18:36
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: Add a dedicated page (and URL) for community/help information  https://review.openstack.org/64147018:58
openstackgerritMerged openstack/ara feature/1.0: Add missing relationship from result to play  https://review.openstack.org/64113319:21
*** irclogbot_0 has joined #ara21:06
*** zbr|ssbarnea has joined #ara21:08
*** zbr has quit IRC21:10
*** irclogbot_0 has quit IRC21:28
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: Add a dedicated page (and URL) for community/help information  https://review.openstack.org/64147021:47
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: WIP: Refactor Serializers for different formats and request types  https://review.openstack.org/64113622:13
*** irclogbot_0 has joined #ara22:19
*** irclogbot_0 has quit IRC22:34
*** irclogbot_0 has joined #ara22:34
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Remove mentions of ara_wsgi_configure_service in the role  https://review.openstack.org/64150522:40
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Include ansible-role-ara's README in the docs  https://review.openstack.org/64150622:40
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Include ansible-role-ara's README in the docs  https://review.openstack.org/64150622:44
*** irclogbot_0 has quit IRC22:44
openstackgerritMerged openstack/ara-infra master: Add a dedicated page (and URL) for community/help information  https://review.openstack.org/64147023:27

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