ara-slack | cody_deniro: @dmsimard I found this regarding custom_playbacks with AWX | 00:06 |
---|---|---|
ara-slack | cody_deniro: https://groups.google.com/forum/#!topic/awx-project/xia7VaNw_p0 | 00: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 |
openstackgerrit | Merged openstack/ara feature/1.0: Remove mentions of ara_wsgi_configure_service in the role https://review.openstack.org/641505 | 01:38 |
openstackgerrit | Merged openstack/ara feature/1.0: Include ansible-role-ara's README in the docs https://review.openstack.org/641506 | 01:38 |
*** njt has quit IRC | 01:43 | |
*** njt has joined #ara | 01:44 | |
*** gnupyx has quit IRC | 04:26 | |
*** Jmainguy has quit IRC | 04:29 | |
*** Jmainguy has joined #ara | 04:31 | |
*** gnupyx has joined #ara | 04:53 | |
*** zbr has joined #ara | 06:14 | |
*** zbr|ssbarnea has quit IRC | 06:15 | |
apollo13 | dmsimard: 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 |
apollo13 | dmsimard: asking because of http://whitenoise.evans.io/en/stable/django.html#WHITENOISE_USE_FINDERS | 07:30 |
apollo13 | dmsimard: so unless we set that we still need collectstatic I think and STATICFILES_STORAGE is also only used then afaik | 07:31 |
*** gvincent has joined #ara | 08:49 | |
*** sshnaidm has quit IRC | 08:51 | |
*** sshnaidm has joined #ara | 08:52 | |
krion | haha, looks like I upgraded myself to version 1.x without really noticing | 09:45 |
*** zbr|ssbarnea has joined #ara | 10:17 | |
*** zbr has quit IRC | 10:18 | |
*** odyssey4me has quit IRC | 10:53 | |
*** zbr has joined #ara | 10:57 | |
*** zbr|ssbarnea has quit IRC | 10:59 | |
*** odyssey4me has joined #ara | 11:07 | |
*** zbr|ssbarnea has joined #ara | 11:18 | |
*** zbr has quit IRC | 11:19 | |
*** zbr has joined #ara | 11:46 | |
*** zbr has quit IRC | 11:46 | |
*** zbr has joined #ara | 11:47 | |
*** zbr|ssbarnea has quit IRC | 11:48 | |
apollo13 | krion: wait, that only exists in a feature branch | 12:24 |
dmsimard | apollo13 : I have tested it, yes | 12:51 |
apollo13 | that is weird | 12:51 |
dmsimard | Does it not work for you ? | 12:51 |
apollo13 | cause I'd expect it to fail with DEBUG=False :) | 12:51 |
apollo13 | just looked at the code, didn't test it yet | 12:51 |
apollo13 | gimme a sec | 12:51 |
dmsimard | Isn't the entire point of whitenoise to make it work with debug=false ? | 12:52 |
apollo13 | well yes and no | 12:52 |
apollo13 | whitenoise (compare to runserver at least) is an okayish way to serve static files | 12:52 |
apollo13 | ie it can use sendfile if the server supports it etc… | 12:52 |
apollo13 | but the thing is whitenoise still needs to find the static files | 12:52 |
dmsimard | They're there | 12:53 |
dmsimard | I mean | 12:53 |
apollo13 | which generally means you need to set WHITENOISE_USE_FINDERS=True if you do not want collectstatic | 12:53 |
dmsimard | Does it default to false ? | 12:53 |
dmsimard | Oh, it defaults to settings.debug | 12:53 |
apollo13 | Default:settings.DEBUG | 12:54 |
apollo13 | yeah | 12:54 |
apollo13 | yeah immediatelly fails with DEBUG=False here | 12:55 |
dmsimard | Odd. Let me double check that once I'm on my laptop. | 12:56 |
apollo13 | also 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 |
apollo13 | and yes my starting point was "rm -rf ~/.ara" | 12:57 |
dmsimard | So I guess tox -e runserver works because it sets debug=true | 12:59 |
dmsimard | Good catch | 12:59 |
dmsimard | So the approval | 13:00 |
dmsimard | Errr, mobile typo | 13:00 |
dmsimard | So the appropriate fix is to set WHITENOISE_USE_FINDERS to True instead then | 13:00 |
apollo13 | that alone doesn't see to do it here, the middleware seems to get ignored | 13:01 |
apollo13 | gotta see what whitenoise is up to | 13:01 |
apollo13 | raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name) | 13:01 |
apollo13 | obviously, cause there is no manifest | 13:01 |
apollo13 | that only exists if you use collectstatic :D | 13:01 |
dmsimard | Sanity check: does tox -e runserver work for you ? | 13:02 |
apollo13 | yeah, but if you use that you do not even use whitenoise | 13:02 |
apollo13 | ls | 13:02 |
apollo13 | because if DEBUG=true runserver will already serve the file | 13:02 |
apollo13 | unless you do as described here: http://whitenoise.evans.io/en/stable/django.html#using-whitenoise-in-development | 13:03 |
dmsimard | Ohhh --nostatic. | 13:03 |
krion | apollo13: oh really ? | 13:12 |
krion | apollo13: https://gpldr.in/v/1szUsKoZzO/Ey1xCjc0gOxf23s0 | 13:12 |
apollo13 | krion: mhm, how did you install ara-clients etc? | 13:13 |
apollo13 | pip install ara should just install ara 0.16.3 | 13:13 |
krion | pip install iirc | 13:13 |
apollo13 | ara or ara-server explicitly? | 13:13 |
krion | yes, ara-server explicitly | 13:13 |
apollo13 | you shouldn't do that | 13:13 |
krion | but I was acting like a monkey | 13:14 |
apollo13 | apparently | 13:14 |
krion | oh really, absolutely shouldn't ? | 13:14 |
apollo13 | no | 13:14 |
krion | I don't mind giving a shot to ara 1.x | 13:14 |
apollo13 | either install ara-* or just ara | 13:14 |
apollo13 | ara-* is 1.0 ara is still 0.16 | 13:14 |
dmsimard | krion: 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 |
krion | oh you know, i'm using zabbix, so i'm used to poor ux experience | 13:19 |
krion | I'm not complaining at all, don't worry | 13:19 |
dmsimard | The 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 out | 13:20 |
krion | haha | 13:20 |
dmsimard | There's even going to be ansible roles out of the box to get started | 13:21 |
apollo13 | krion: haha I replaced zabbix with icinga | 13:21 |
krion | I was just suprise that ara-manage runserver wasn't working anymore, and remember afterwards that I did install ara-clients ara-server yesterday | 13:21 |
krion | apollo13: oh ? why didn't you give it a try at the next de-facto standard in the name of promotheus ? | 13:22 |
krion | s/mo/me/ | 13:22 |
apollo13 | krion: prometheus and icinga are solutions to different problems, that said we will probably be deploying prometheus too soonish | 13:22 |
krion | isn't icinga just a frontend to nagios ? like thruk or shinken ? | 13:24 |
dmsimard | I like a lot of what netdata is doing | 13:24 |
apollo13 | krion: icingaweb is a frontend to icinga | 13:25 |
dmsimard | krion: no, icinga has it's own engine and everything, especially since icinga v2 | 13:25 |
apollo13 | icinga basically is nagios | 13:25 |
apollo13 | but "better" :D | 13:25 |
krion | i see | 13:25 |
*** weshay|rover is now known as weshay | 14:31 | |
*** sshnaidm is now known as sshnaidm|off | 17:47 | |
*** irclogbot_0 has joined #ara | 18:01 | |
*** zbr|ssbarnea has joined #ara | 18:11 | |
*** zbr has quit IRC | 18:13 | |
*** bcoca has joined #ara | 18:33 | |
bcoca | he .. people keep posting question to the 'openstack-unregistered' channel ... | 18:33 |
bcoca | ^ that is how i know i need to join THIS one | 18:34 |
dmsimard | bcoca: :( | 18:41 |
dmsimard | I mean, it's either that or we get silly spam | 18:41 |
openstackgerrit | David Moreau Simard proposed openstack/ara-infra master: Stop sending hugo logs to a specific file https://review.openstack.org/641754 | 18:44 |
openstackgerrit | David Moreau Simard proposed openstack/ara-infra master: Website playbook should target ara.recordsansible.org https://review.openstack.org/641755 | 18:46 |
openstackgerrit | Merged openstack/ara-infra master: Stop sending hugo logs to a specific file https://review.openstack.org/641754 | 19:17 |
dmsimard | apollo13: from the whitenoise docs | 19: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 |
dmsimard | Was I lied to ? :( | 19:30 |
bcoca | that implies willfull deception | 19:30 |
dmsimard | bcoca: more like sad realization that I assumed something wrong :p | 19:31 |
dmsimard | I should RTFM properly next time | 19:33 |
apollo13 | dmsimard: that is not true if you a) set WHITENOISE_USE_FINDERS = True and b) remove STATICFILES_STORAGE, then it should work ™ | 19:38 |
dmsimard | apollo13: yeah, it just works here ™ but the doc is slightly misleading | 19:41 |
apollo13 | dmsimard: so all in all there are two things involved | 19:42 |
apollo13 | for whitenoise to find files they have to be in STATIC_ROOT or it has to use the finders | 19:42 |
apollo13 | using the finders is kinda limiting, ie no manifest support etc, since it literally loads the files from it's origin | 19:43 |
dmsimard | apollo13: I get the error that you mentioned earlier about the static_root not found | 19:43 |
dmsimard | but it's just because the directory doesn't exist | 19:43 |
apollo13 | yeah, that is probably a oversight in whitenoise | 19:44 |
apollo13 | especially if USE_FINDERS is set imo | 19:44 |
apollo13 | STATICFILES_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 generated | 19:44 |
dmsimard | apollo13: It's this part: https://github.com/evansd/whitenoise/blob/0e94fc16a6c47b78ec1fe818d087ce79914ff8f4/whitenoise/base.py#L101-L105 | 19:44 |
dmsimard | I can send a PR for that | 19:44 |
dmsimard | or at least file an issue | 19:45 |
apollo13 | looks like it yeah | 19:45 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Use whitenoise for serving static files https://review.openstack.org/641403 | 20:05 |
dmsimard | apollo13: ^ fixed I think, delta is https://review.openstack.org/#/c/641403/3..4 (readme.rst comes from rebase) | 20:06 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Use whitenoise for serving static files https://review.openstack.org/641403 | 20:39 |
openstackgerrit | David Moreau Simard proposed openstack/ara-infra master: Add playbook for deploying api.demo.recordsansible.org https://review.openstack.org/641798 | 20:55 |
openstackgerrit | David Moreau Simard proposed openstack/ara-infra master: Add playbook for deploying api.demo.recordsansible.org https://review.openstack.org/641798 | 20:56 |
openstackgerrit | David Moreau Simard proposed openstack/ara-infra master: Add playbook for deploying api.demo.recordsansible.org https://review.openstack.org/641798 | 20:57 |
openstackgerrit | David Moreau Simard proposed openstack/ara-infra master: Website playbook should target ara.recordsansible.org https://review.openstack.org/641755 | 21:00 |
openstackgerrit | David Moreau Simard proposed openstack/ara-infra master: Update fedora image used for website tests to fedora-29 https://review.openstack.org/641801 | 21:00 |
openstackgerrit | David Moreau Simard proposed openstack/ara-infra master: Website playbook should target ara.recordsansible.org https://review.openstack.org/641755 | 21:21 |
openstackgerrit | David Moreau Simard proposed openstack/ara-infra master: Update fedora image used for website tests to fedora-29 https://review.openstack.org/641801 | 21:21 |
openstackgerrit | David Moreau Simard proposed openstack/ara master: WIP: Default task filtering to (changed|failed|unreachable) https://review.openstack.org/568418 | 21:22 |
openstackgerrit | Merged openstack/ara feature/1.0: Use whitenoise for serving static files https://review.openstack.org/641403 | 21:37 |
openstackgerrit | David 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/641816 | 22:07 |
openstackgerrit | David 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/641816 | 22:10 |
openstackgerrit | David Moreau Simard proposed openstack/ara-infra master: Add playbook for deploying api.demo.recordsansible.org https://review.openstack.org/641798 | 22:18 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: WIP: Import role for deploying ara-web https://review.openstack.org/641859 | 23:12 |
openstackgerrit | David 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/641816 | 23:16 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: WIP: Import role for deploying ara-web https://review.openstack.org/641859 | 23:16 |
*** irclogbot_0 has quit IRC | 23:26 | |
openstackgerrit | David Moreau Simard proposed openstack/ara-infra master: Add playbook for deploying live demos on demo.recordsansible.org https://review.openstack.org/641798 | 23:27 |
openstackgerrit | Merged openstack/ara-infra master: Website playbook should target ara.recordsansible.org https://review.openstack.org/641755 | 23:42 |
openstackgerrit | Merged openstack/ara-infra master: Update fedora image used for website tests to fedora-29 https://review.openstack.org/641801 | 23:42 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!