[openstack-dev] [CI] How to set a proxy for zuul.

Tang Chen tangchen at cn.fujitsu.com
Thu Jul 9 03:42:08 UTC 2015


On 07/08/2015 05:58 PM, Abhishek Shrivastava wrote:
> So as per my understanding this is happening after CI master VM 
> installation.

Yes, Jenkins master has been constructed and works fine.

And as an example, I can clone the sandbox repertory, and commit code to 
Gerrit.
But since zuul cannot connect to review.openstack.org, Jenkins master is 
not notified.

Would you please share some advices ?

Thanks.

>
> On Wed, Jul 8, 2015 at 3:26 PM, Tang Chen <tangchen at cn.fujitsu.com 
> <mailto:tangchen at cn.fujitsu.com>> wrote:
>
>     Hi all,
>
>     I'm now installing constructing CI system following this document:
>
>     https://github.com/rasselin/os-ext-testing
>
>     When running zuul, I got this error:
>
>     2015-07-07 13:44:09,035 ERROR gerrit.GerritWatcher: Exception on
>     ssh event stream:
>     Traceback (most recent call last):
>       File
>     "/usr/local/lib/python2.7/dist-packages/zuul/lib/gerrit.py", line
>     64, in _run
>         key_filename=self.keyfile)
>       File
>     "/usr/local/lib/python2.7/dist-packages/paramiko/client.py", line
>     237, in connect
>         for (family, socktype, proto, canonname, sockaddr) in
>     socket.getaddrinfo(hostname, port, socket.AF_UNSPEC,
>     socket.SOCK_STREAM):
>     gaierror: [Errno -5] No address associated with hostname
>
>     This happens when zuul tries to access review.openstack.org
>     <http://review.openstack.org>.
>
>
>     In my environment, I have to access internet through through a
>     http proxy.
>
>     But referring to the source code, zuul calls functions in
>     paramiko/client.py to  setup a connection using socket.
>
>             if not sock:
>                 for (family, socktype, proto, canonname, sockaddr) in
>     socket.getaddrinfo(hostname, port, socket.AF_UNSPEC,
>     socket.SOCK_STREAM):
>                     if socktype == socket.SOCK_STREAM:
>                         af = family
>                         addr = sockaddr
>                         break
>                 else:
>                     # some OS like AIX don't indicate SOCK_STREAM
>     support, so just guess. :(
>                     af, _, _, _, addr = socket.getaddrinfo(hostname,
>     port, socket.AF_UNSPEC, socket.SOCK_STREAM)
>                 sock = socket.socket(af, socket.SOCK_STREAM)
>
>     I think the problem is that since it uses socket API to create the
>     connection, it does not go through the proxy.
>
>     So, could anyone tell me how to setup a proxy for zuul ?
>
>
>     Or, of course, the CI document is something very in progress. And
>     referring to the openstack site,
>     I cannot find any info up to date. Could anyone share with me
>     something that could construct a CI system ?
>
>
>     Thanks.
>
>     __________________________________________________________________________
>     OpenStack Development Mailing List (not for usage questions)
>     Unsubscribe:
>     OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>     <http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe>
>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
>
> -- 
> *
> *
> *Thanks & Regards,
> *
> *Abhishek*
> /_Cloudbyte Inc. <http://www.cloudbyte.com>_/
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150709/841c4b07/attachment.html>


More information about the OpenStack-dev mailing list