wsgi-args in config#4352
Conversation
|
@sbesson I will push appropriate changes to https://github.com/openmicroscopy/management_tools/pull/77 and remove it from #4341 (comment) |
|
|
|
@will-moore what exactly you are testing? You only should test if wsgi-args passed through omero config are passed correctly to subproces. Grep will show you what was passed, sorry what is not clear here? |
|
What I was seeing before was nothing (because I hadn't configured to use gunicorn Now things are looking a bit better: Then I unset and used the --wsgi argument to pass a different IP address... which also worked Using "--foo" didn't work, perhaps not surprising. |
|
@will-moore because commands above proof that OMERO config takes priority. You need to copy and paste these two commands one after another. Staring web with random args won;t work. |
|
Used in https://github.com/openmicroscopy/management_tools/pull/77 tested daily on https://ci.openmicroscopy.org/view/DEV/job/OMERO-DEV-Python27-merge-deploy/ and https://ci.openmicroscopy.org/view/DEV/job/OMERO-DEV-merge-integration-Python27/ Note: Cowfish no longer redirects from http to https by default. It always redirect to index page |
|
@aleksandra-tarkowska : one last question re: Why does one have "gunicorn" and one doesn't? Is the goal to support WSGI servers as a specification (in which case should we drop "gunicorn")? or do we want separate implementations (in which case, perhaps just "gunicorn_args")? |
|
ok I see what you mean, sure we can drop gunicorn from the first one |
|
@joshmoore updated and redeployed https://ci.openmicroscopy.org/view/DEV/job/OMERO-DEV-Python27-merge-deploy/64/console on cowfish/merge |
|
Thanks, @aleksandra-tarkowska. Updated description to match. |
|
New argument names make sense and working fine. Good to merge. |
|
Do we need a docs update for this? Maybe a note under https://www.openmicroscopy.org/site/support/omero5.2/sysadmins/unix/install-web/install-nginx.html#cmdoption-omero-web-start--wsgi-args ? |
|
@hflynn done |
|
@aleksandra-tarkowska : comparing https://www.openmicroscopy.org/site/support/omero5.2/sysadmins/unix/install-web/install-nginx.html#cmdoption-omero-web-start--wsgi-args to your comment https://github.com/openmicroscopy/openmicroscopy/pull/4352/files#diff-7e3491c8f527592430b6decfcdc7c4d3R448 -- what is the intended behavior? Assume:
At the moment, the latter will be silently ignored. Is that what you intend? Other options would be:
Seems like some of these could be user-friendlier. |
|
Or deprecate |
|
@manics from developer perspective I think both should remain |
|
@joshmoore does it make more sense to do them other way around?
|
|
@aleksandra-tarkowska That option certainly makes more sense to me (sorry, should have thought of that when I was testing the PR). That way, you can set your defaults via config, but if you want to override them when you start web then you can. |
|
I can definitely live with overriding the other way ( |
OK, could you add a note to |
|
@will-moore @joshmoore the problem with doing this other way around appear if:
in this case |
|
I would expect the previous args in |
|
@aleksandra-tarkowska : would it be possible to also add |
|
We don't have any way to store them, do we? That is the reason of that PR to store them in omero properties. Alternatively you need to |
|
@will-moore: did you have a chance to review this PR? FYI, we realized today with @pwalczysko that this PR being still open has side effects on the usability of the latest eel Webclient. |
|
@pwalczysko because @manics restarted nginx few days ago and all the new changes expected by that pr are in. Anyway let's get that asap please |
|
Sorry I didn't get around to this earlier.... Just testing now... |
|
Testing deprecation of don't mention If I use Setting the config first DOES give the deprecation warning: The documentation change looks fine. instead of simply Will users know to use the extra This staging page https://www.openmicroscopy.org/site/support/omero5.2-staging/sysadmins/unix/install-web/install-nginx.html still has: |
|
@will-moore deprecation warning is fixed now. Doc PR will come separately |
|
@joshmoore could you remind us where |
|
There's the warning about whitespace on https://www.openmicroscopy.org/site/support/omero5.2-staging/sysadmins/config.html, but I don't see the mention of |
|
Autogen build needed to update the docs for this page, I'll check the jenkins configuration. |
|
Once Travis is green I'll re-run the docs merge build to include the snoopy autogen branch, the changes should then be on staging. Once this is merged, we'll need to open an autogen PR to migrate the changes into the docs. |
|
@will-moore: the short explanation is that if a configuration has to be set to a value starting with a double dash, i.e. set With this option being exposed, we certainly need to explain this in the doc and likely the top-level of the configuration properties page is the best place to put it? |
|
Please see https://github.com/openmicroscopy/management_tools/pull/77#issuecomment-175845177 - could we "unbreak" eel latest please ? |
Not that we should include it somewhere, but like the whitespace handling, this is a pretty standard feature of CLI's and could almost be called "by design". |
|
http://www.openmicroscopy.org/site/support/omero5.2-staging/sysadmins/config.html is now up to date with whatever changes were already on this PR prior to the merge build this morning. |
|
Thanks @hflynn. Doc updated as well |
|
Warning is displayed now, even if no config set I'm not seeing Good to merge. |
|
@will-moore warning is displayed when you put it in cmd Your test should be: No warning: Warning: |
|
unless that is what you meant, sorry |
|
Yep ;) |
|
sorry lets get that PR in I am tired ;-) |
|
When this PR is merged, https://ci.openmicroscopy.org/view/Docs/job/OMERO-DEV-latest-docs-autogen/build?delay=0sec needs running with the 'OPEN_PR' box checked. |
|
Merging and leaving the docs OPEN_PR step in @sbesson's hands. |
|
See ome/omero-documentation#1392 for the corresponding autogen documentation PR. |
This PR allows pre-setting wsgi-args for gunicorn via bin/omero config as requested in https://github.com/openmicroscopy/management_tools/pull/77#issuecomment-158105212
to test:
bin/omero config set omero.web.wsgi_args -- '--forwarded-allow-ips=127.0.0.1'bin/omero web start --wsgi-args="--foo"--forwarded-allow-ipsshould overwrite--wsgi-args, check processes for additional argsps aux | grep gunicorncc: @manics
Note: change of property name from "omero.web.gunicorn.wsgi_args" to "omero.web.wsgi_args"