<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Luis, <br>
</p>
<p>Thanks for this answer.</p>
It is indeed not easy to keep trace of the ports/IP in our
architecture since the cluster and the up and down of the WPS
Servers is quite dynamic (managed by Mesos) and undeterministic.<br>
<br>
I wonder if PyWPS 4 would provide a better support for that kind of
questions...<br>
<br>
Another way was to 'hook' at the WSGI level, in order to catch the
calling messages, and update the wpsserver.conf with a 'sed'
accordingly...<br>
But I didn't succeed to get this information in the messages coming
into the WSGI application...<br>
<br>
Regards,<br>
<br>
Matthieu<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 10/17/2016 12:04 PM, Luís de Sousa
wrote:<br>
</div>
<blockquote
cite="mid:V33FAXvmHS0p_iPEFWc_Rxq2bmgetNpkhk-Wahj1f2NiyHzLU7nA3-vUQwV36LAs1Oec3kfCjHT8q1DdMKcj0g==@protonmail.ch"
type="cite">
<div>Hi Matthieu,<br>
</div>
<div><br>
</div>
<div>Unfortunately, this is not possible with the configuration
files. It is possible to tweak the PyWPS code to behave in that
way, but this might not be the simplest way.<br>
</div>
<div><br>
</div>
<div>My advice is to give a name to that server and keep the entry
up to date in your DNS. That is likely the simplest way of
running a PyWPS server with a dynamic IP.<br>
</div>
<div><br>
</div>
<div>Regards,<br>
</div>
<div><br>
</div>
<div>Luís<br>
</div>
<div class="protonmail_signature_block ">
<div class="protonmail_signature_block-user "><br>
</div>
<div class="protonmail_signature_block-proton
protonmail_signature_block-empty"><br>
</div>
</div>
<div><br>
</div>
<blockquote type="cite" class="protonmail_quote">
<div>-------- Original Message --------<br>
</div>
<div>Subject: [Pywps-dev] Dynamic IPs for polling and results
requests.<br>
</div>
<div>Local Time: 17 October 2016 11:22 AM<br>
</div>
<div>UTC Time: 17 October 2016 09:22<br>
</div>
<div>From: <a class="moz-txt-link-abbreviated" href="mailto:matthieu.melcot@spaceapplications.com">matthieu.melcot@spaceapplications.com</a><br>
</div>
<div>To: <a class="moz-txt-link-abbreviated" href="mailto:pywps-dev@lists.osgeo.org">pywps-dev@lists.osgeo.org</a><br>
</div>
<div><br>
</div>
<div>Hello,<br>
</div>
<div>
<br>
</div>
<div>
I'm using PyWPS 3.2.4 that I containerized into Docker
Containers to run <br>
</div>
<div>
into Mesos Marathon.<br>
</div>
<div>
<br>
</div>
<div>
The external IP's and ports of my WPS Servers are therefore
dynamic for <br>
</div>
<div>
being assigned by the Marathon framework.<br>
</div>
<div>
<br>
</div>
<div>
I am able to send a GetCapabilities or Execute requests to
these <br>
</div>
<div>
distributed WPS Servers in the Cluster since I know the
'public' IPs and <br>
</div>
<div>
ports. However the XML documents sent back to the client by
the PyWPS <br>
</div>
<div>
servers contain 'polling' and 'results' IPs refering to the
values set <br>
</div>
<div>
in 'pywps.cfg' (and not the IP and port used by the client to
<br>
</div>
<div>
communicate with the server).<br>
</div>
<div>
<br>
</div>
<div>
For example:<br>
</div>
<div>
[wps]<br>
</div>
<div>
<br>
</div>
<div>
...<br>
</div>
<div>
serveraddress=<a class="moz-txt-link-freetext" href="http://172.16.10.40">http://172.16.10.40</a><br>
</div>
<div>
...<br>
</div>
<div>
<br>
</div>
<div>
[wps]<br>
</div>
<div>
...<br>
</div>
<div>
serveraddress=<a class="moz-txt-link-freetext" href="http://172.16.10.40/wps/wpsoutputs/">http://172.16.10.40/wps/wpsoutputs/</a><br>
</div>
<div>
...<br>
</div>
<div>
<br>
</div>
<div>
Thus, the problem arise once it gets to poll for the end of
the execution.<br>
</div>
<div>
<br>
</div>
<div>
How can I configure PyWPS to force it to provides polling and
results <br>
</div>
<div>
URLs on the same public URLs that the client request?<br>
</div>
<div>
<br>
</div>
<div>
Matthieu<br>
</div>
<div>
_______________________________________________<br>
</div>
<div>
pywps-dev mailing list<br>
</div>
<div>
<a class="moz-txt-link-abbreviated" href="mailto:pywps-dev@lists.osgeo.org">pywps-dev@lists.osgeo.org</a><br>
</div>
<div>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/pywps-dev">http://lists.osgeo.org/mailman/listinfo/pywps-dev</a><br>
</div>
</blockquote>
<div><br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Matthieu Melcot
Software Engineer
Space Applications Services NV/SA
Leuvensesteenweg 325, 1932 Zaventem, Belgium
Direct: +32-(0)2-416.05.35
Main: +32-(0)2-721.54.84 Fax: +32-(0)2-721.54.44
<a class="moz-txt-link-abbreviated" href="http://www.spaceapplications.com">www.spaceapplications.com</a></pre>
</body>
</html>