Thursday, 2019-03-07

ara-slackcody_deniro: @dmsimard I found this regarding custom_playbacks with AWX00:06
ara-slackcody_deniro: https://groups.google.com/forum/#!topic/awx-project/xia7VaNw_p000:07
dmsimard@cody_deniro that thread is a bit confusing, ARA is not a stdout callback. I'll take some time to document it, it's a question that keeps coming back.00:47
openstackgerritMerged openstack/ara feature/1.0: Remove mentions of ara_wsgi_configure_service in the role  https://review.openstack.org/64150501:38
openstackgerritMerged openstack/ara feature/1.0: Include ansible-role-ara's README in the docs  https://review.openstack.org/64150601:38
*** njt has quit IRC01:43
*** njt has joined #ara01:44
*** gnupyx has quit IRC04:26
*** Jmainguy has quit IRC04:29
*** Jmainguy has joined #ara04:31
*** gnupyx has joined #ara04:53
*** zbr has joined #ara06:14
*** zbr|ssbarnea has quit IRC06:15
apollo13dmsimard: did you test your code after deleting ara_www_dir? (not that old static files where collected there and whitenoise used those etc)07:28
apollo13dmsimard: asking because of http://whitenoise.evans.io/en/stable/django.html#WHITENOISE_USE_FINDERS07:30
apollo13dmsimard: so unless we set that we still need collectstatic I think and STATICFILES_STORAGE is also only used then afaik07:31
*** gvincent has joined #ara08:49
*** sshnaidm has quit IRC08:51
*** sshnaidm has joined #ara08:52
krionhaha, looks like I upgraded myself to version 1.x without really noticing09:45
*** zbr|ssbarnea has joined #ara10:17
*** zbr has quit IRC10:18
*** odyssey4me has quit IRC10:53
*** zbr has joined #ara10:57
*** zbr|ssbarnea has quit IRC10:59
*** odyssey4me has joined #ara11:07
*** zbr|ssbarnea has joined #ara11:18
*** zbr has quit IRC11:19
*** zbr has joined #ara11:46
*** zbr has quit IRC11:46
*** zbr has joined #ara11:47
*** zbr|ssbarnea has quit IRC11:48
apollo13krion: wait, that only exists in a feature branch12:24
dmsimardapollo13 : I have tested it, yes12:51
apollo13that is weird12:51
dmsimardDoes it not work for you ?12:51
apollo13cause I'd expect it to fail with DEBUG=False :)12:51
apollo13just looked at the code, didn't test it yet12:51
apollo13gimme a sec12:51
dmsimardIsn't the entire point of whitenoise to make it work with debug=false ?12:52
apollo13well yes and no12:52
apollo13whitenoise (compare to runserver at least) is an okayish way to serve static files12:52
apollo13ie it can use sendfile if the server supports it etc…12:52
apollo13but the thing is whitenoise still needs to find the static files12:52
dmsimardThey're there12:53
dmsimardI mean12:53
apollo13which generally means you need to set WHITENOISE_USE_FINDERS=True if you do not want collectstatic12:53
dmsimardDoes it default to false ?12:53
dmsimardOh, it defaults to settings.debug12:53
apollo13Default:settings.DEBUG12:54
apollo13yeah12:54
apollo13yeah immediatelly fails  with DEBUG=False here12:55
dmsimardOdd. Let me double check that once I'm on my laptop.12:56
apollo13also I get the warning: /home/florian/sources/ara/.venv/lib/python3.7/site-packages/whitenoise/base.py:104: UserWarning: No directory at: /home/florian/.ara/server/www/static/12:57
apollo13  warnings.warn(u'No directory at: {}'.format(root))12:57
apollo13and yes my starting point was "rm -rf ~/.ara"12:57
dmsimardSo I guess tox -e runserver works because it sets debug=true12:59
dmsimardGood catch12:59
dmsimardSo the approval13:00
dmsimardErrr, mobile typo13:00
dmsimardSo the appropriate fix is to set WHITENOISE_USE_FINDERS to True instead then13:00
apollo13that alone doesn't see to do it here, the middleware seems to get ignored13:01
apollo13gotta see what whitenoise is up to13:01
apollo13    raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)13:01
apollo13obviously, cause there is no manifest13:01
apollo13that only exists if you use collectstatic :D13:01
dmsimardSanity check: does tox -e runserver work for you ?13:02
apollo13yeah, but if you use that you do not even use whitenoise13:02
apollo13ls13:02
apollo13because if DEBUG=true runserver will already serve the file13:02
apollo13unless you do as described here: http://whitenoise.evans.io/en/stable/django.html#using-whitenoise-in-development13:03
dmsimardOhhh --nostatic.13:03
krionapollo13: oh really ?13:12
krionapollo13: https://gpldr.in/v/1szUsKoZzO/Ey1xCjc0gOxf23s013:12
apollo13krion: mhm, how did you install ara-clients etc?13:13
apollo13pip install ara should just install ara 0.16.313:13
krionpip install iirc13:13
apollo13ara or ara-server explicitly?13:13
krionyes, ara-server explicitly13:13
apollo13you shouldn't do that13:13
krionbut I was acting like a monkey13:14
apollo13apparently13:14
krionoh really, absolutely shouldn't ?13:14
apollo13no13:14
krionI don't mind giving a shot to ara 1.x13:14
apollo13either install ara-* or just ara13:14
apollo13ara-* is 1.0 ara is still 0.1613:14
dmsimardkrion: current state of 1.0 is not a great user experience but I'm working to fix that. Lot of progress this week that hasn't been released.13:18
krionoh you know, i'm using zabbix, so i'm used to poor ux experience13:19
krionI'm not complaining at all, don't worry13:19
dmsimardThe last tag for 1.0 was alpha2, I'll tag alpha3 after landing a few outstanding patches and then I will be less embarrassed to let you try it out13:20
krionhaha13:20
dmsimardThere's even going to be ansible roles out of the box to get started13:21
apollo13krion: haha I replaced zabbix with icinga13:21
krionI was just suprise that ara-manage runserver wasn't working anymore, and remember afterwards that I did install ara-clients ara-server yesterday13:21
krionapollo13: oh ? why didn't you give it a try at the next de-facto standard in the name of promotheus ?13:22
krions/mo/me/13:22
apollo13krion: prometheus and icinga are solutions to different problems, that said we will probably be deploying prometheus too soonish13:22
krionisn't icinga just a frontend to nagios ? like thruk or shinken ?13:24
dmsimardI like a lot of what netdata is doing13:24
apollo13krion: icingaweb is a frontend to icinga13:25
dmsimardkrion: no, icinga has it's own engine and everything, especially since icinga v213:25
apollo13icinga basically is nagios13:25
apollo13but "better" :D13:25
krioni see13:25
*** weshay|rover is now known as weshay14:31
*** sshnaidm is now known as sshnaidm|off17:47
*** irclogbot_0 has joined #ara18:01
*** zbr|ssbarnea has joined #ara18:11
*** zbr has quit IRC18:13
*** bcoca has joined #ara18:33
bcocahe .. people keep posting question to the 'openstack-unregistered' channel ...18:33
bcoca^ that is how i know i need to join THIS one18:34
dmsimardbcoca: :(18:41
dmsimardI mean, it's either that or we get silly spam18:41
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: Stop sending hugo logs to a specific file  https://review.openstack.org/64175418:44
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: Website playbook should target ara.recordsansible.org  https://review.openstack.org/64175518:46
openstackgerritMerged openstack/ara-infra master: Stop sending hugo logs to a specific file  https://review.openstack.org/64175419:17
dmsimardapollo13: from the whitenoise docs19:30
dmsimard"As part of deploying your application you’ll need to run ./manage.py collectstatic to put all your static files into STATIC_ROOT."19:30
dmsimardWas I lied to ? :(19:30
bcocathat implies willfull deception19:30
dmsimardbcoca: more like sad realization that I assumed something wrong :p19:31
dmsimardI should RTFM properly next time19:33
apollo13dmsimard: that is not true if you a) set WHITENOISE_USE_FINDERS = True and b) remove STATICFILES_STORAGE, then it should work ™19:38
dmsimardapollo13: yeah, it just works here ™ but the doc is slightly misleading19:41
apollo13dmsimard: so all in all there are two things involved19:42
apollo13for whitenoise to find files they have to be in STATIC_ROOT or it has to use the finders19:42
apollo13using the finders is kinda limiting, ie no manifest support etc, since it literally loads the files from it's origin19:43
dmsimardapollo13: I get the error that you mentioned earlier about the static_root not found19:43
dmsimardbut it's just because the directory doesn't exist19:43
apollo13yeah, that is probably a oversight in whitenoise19:44
apollo13especially if USE_FINDERS is set imo19:44
apollo13STATICFILES_STORAGE is also used to generate urls for the files, which if you set it to a manifest storage and never run collectstatic cannot work because the manifest is never generated19:44
dmsimardapollo13: It's this part: https://github.com/evansd/whitenoise/blob/0e94fc16a6c47b78ec1fe818d087ce79914ff8f4/whitenoise/base.py#L101-L10519:44
dmsimardI can send a PR for that19:44
dmsimardor at least file an issue19:45
apollo13looks like it yeah19:45
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Use whitenoise for serving static files  https://review.openstack.org/64140320:05
dmsimardapollo13: ^ fixed I think, delta is https://review.openstack.org/#/c/641403/3..4 (readme.rst comes from rebase)20:06
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Use whitenoise for serving static files  https://review.openstack.org/64140320:39
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: Add playbook for deploying api.demo.recordsansible.org  https://review.openstack.org/64179820:55
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: Add playbook for deploying api.demo.recordsansible.org  https://review.openstack.org/64179820:56
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: Add playbook for deploying api.demo.recordsansible.org  https://review.openstack.org/64179820:57
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: Website playbook should target ara.recordsansible.org  https://review.openstack.org/64175521:00
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: Update fedora image used for website tests to fedora-29  https://review.openstack.org/64180121:00
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: Website playbook should target ara.recordsansible.org  https://review.openstack.org/64175521:21
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: Update fedora image used for website tests to fedora-29  https://review.openstack.org/64180121:21
openstackgerritDavid Moreau Simard proposed openstack/ara master: WIP: Default task filtering to (changed|failed|unreachable)  https://review.openstack.org/56841821:22
openstackgerritMerged openstack/ara feature/1.0: Use whitenoise for serving static files  https://review.openstack.org/64140321:37
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Rename the ara role to ara_api and move nginx out to it's own role  https://review.openstack.org/64181622:07
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Rename the ara role to ara_api and move nginx out to it's own role  https://review.openstack.org/64181622:10
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: Add playbook for deploying api.demo.recordsansible.org  https://review.openstack.org/64179822:18
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: WIP: Import role for deploying ara-web  https://review.openstack.org/64185923:12
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: Rename the ara role to ara_api and move nginx out to it's own role  https://review.openstack.org/64181623:16
openstackgerritDavid Moreau Simard proposed openstack/ara feature/1.0: WIP: Import role for deploying ara-web  https://review.openstack.org/64185923:16
*** irclogbot_0 has quit IRC23:26
openstackgerritDavid Moreau Simard proposed openstack/ara-infra master: Add playbook for deploying live demos on demo.recordsansible.org  https://review.openstack.org/64179823:27
openstackgerritMerged openstack/ara-infra master: Website playbook should target ara.recordsansible.org  https://review.openstack.org/64175523:42
openstackgerritMerged openstack/ara-infra master: Update fedora image used for website tests to fedora-29  https://review.openstack.org/64180123:42

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