-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finch and Raven not creating their wps_output under /bird_name #11
Comments
Has this been fixed with the cookie-cutter template update ? |
Nope. It's a deployment config. It's probably directly in here, unless pywps do not have that config yet or the config do not support giving a initially non-existing dir. |
@dbyrns Is this required for cowbird ? |
Cowbird will not handle process outputs so the quick answer is no. On the other hand wps_outputs is served by nginx and thredds so the structure could be "visible". We better have something well organized. Permissions management may be harder also if everything is mixed under the same folder. |
Looking at the docker compose, here are the volumes that are mounted:
I'm not seeing where malleefowl and hummingbird actually configure their outputs to their bird name directory. |
@huard, old birds were using a buildout recipe. The output location is defined here : https://github.com/bird-house/birdhousebuilder.recipe.pywps/blob/master/birdhousebuilder/recipe/pywps/pywps.cfg#L28 |
Ah thanks ! So am I right thinking that we could simply do something like this in the compose:
|
wps_outputs is a named volume, I don't think you can append a directory to it.
|
Exact !
The Remember this persistance is using data-volume, not direct bind mount from the host. I was lost with the buildout magic. But I think the cleanest is to somehow reproduce that magic. I'll try to give it another shot, unless you know more about buildout that you already know that recipe can not be reproduced outside of buildout. Let me know. |
Oh wait, isn't this just a wps.cfg change?! That can easily be reproduced. Thanks for pointing to the right place inside that buildout recipe. It would probably cost me some additional time to trace to this. |
I know, the |
I understood that. But doing what you propose means changing the left side of the volume mount from a data-volume ( This means changing all the existing birds that currently use data-volume to direct bind mount. Also I think we previously choose data-volume instead of direct bind mount because there was no backup need for this kind of data. This also means the current way Weaver tries to share it's wpsoutput is wrong since the Nginx proxy also use the data-volume
|
Thank you @tlvu, after some DM with you thursday, I agreeded that the wps_outputs volume is mounted under I remembered talking about that with @fmigneault and we were saying that sharing the same volume with all birds is not a very good practice. Sadly some birds expect to create a directory having their bird name. Without that behavior having a named volume per-bird would have solved the issue and be a better practice by isolating each bird. @fmigneault, after having talk with @tlvu I'm no longer confident that the solution used in Weaver will be correct. The direct bind mount |
Not true. Have a try: https://host-140-154.rdext.crim.ca/wpsoutputs/weaver/2dd1d8ca-651c-4644-9ac6-b6bf32718457.log
I still believe the fix should be on the bird's side. Some flag to create or not the named directory. |
This is not yet working, update here #231 (comment) |
Before this fix, finch, raven, flyingpigeon were dumping their output directly under `https://PAVICS_HOST/wpsoutputs/`. With this fix, it will be under each bird name, ex: `https://PAVICS_HOST/wpsoutputs/finch/` which is cleaner and follows what malleefowl and hummingbird already does. Fixes #11. Fixes https://crim-ca.atlassian.net/browse/DAC-398 Requires PR Ouranosinc/pavics-sdi#280, bird-house/finch#273, Ouranosinc/raven#459 If `optional-components/secure-data-proxy` is enabled, might need some additional permissions for each bird in https://github.com/bird-house/birdhouse-deploy/blob/master/birdhouse/optional-components/secure-data-proxy/config/magpie/config.yml.template.
Migrated from old PAVICS https://github.com/Ouranosinc/PAVICS/issues/151
Does not cause problem now but might cause problem later when we want to restrict access to some wps output from these birds (for privacy reason). Older birds (flyingpigeon, mallefowl, ...) are following this schema.
See discusstion in https://github.com/Ouranosinc/PAVICS/pull/150#discussion_r305084199
The text was updated successfully, but these errors were encountered: