Hi,

Sorry for missing the previous mail regarding OCCI behind proxy.

The problem could be in the Java client or in the OCCI server.

From the Java side, maybe along the specified options, also use
-Dhttp.proxySet=true. Or try setting the proxy options from the Java
client  by placing the following lines just above the OCA invocation:

System.getProperties().put("http.proxyHost", "someProxyURL");
System.getProperties().put("http.proxyPort", "someProxyPort");
System.getProperties().put("http.proxyUser", "someUserName");
System.getProperties().put("http.proxyPassword", "somePassword");
System.getProperties().put("http.proxySet", "true");


From the OCCI server side, from what I see in the OpenNebula source files,
there is a file called opennebula-3.2.0\src\cloud\occi\lib\OCCIClient.rb,
written in ruby which uses "Net::HTTP::Get" and "Net::HTTP::Post"  to
communicate with the OCCI server. Although I am no RUby programmer, from
what I know, in Ruby you need to call Net::HTTP::Proxy if wanting to
access something behind a proxy, using
Net::HTTP::Proxy(proxy.host,proxy.port,proxy.user,proxy.password) instead
of Net::HTTP. Maybe a couple of modifications to the OCCIClient.rb file
could enable OpenNebula OCA to be used behind a proxy.



În Mar, Ianuarie 17, 2012 1:50 pm, Gian Uberto Lauri a scris:
>>>>>> "CC" == Gian Uberto Lauri <<[email protected]> > writes:
>>>>>>
>
> CC> Hello gentlemen, What should I do when, using java binding for
> CC> OCA, there is a proxy between the client and the server? It seems
> CC> that starting the tomcatwith the
>
>
> CC> -Dhttp.proxyHost=$HOST\ -Dhttp.proxyPort=$PORT\
> CC> -Dhttp.proxyUser=$USER\ -Dhttp.proxyPassword=$PASS
>
>
> Am I the only one that needs to use the OCA bindings for Java throught
> a proxy?
>
> As I said, the use of these symbol definitions:
>
>
> -Dhttp.proxyHost=$HOST -Dhttp.proxyPort=$PORT\
> -Dhttp.proxyUser=$USER -Dhttp.proxyPassword=$PASS
>
>
> does not work (the OCA client fails to contact the remote ONED).
>
> --
> ing. Gian Uberto Lauri Ricercatore / Reasearcher
> Laboratorio Ricerca e Sviluppo / Research & Development Lab.
> Area Calcolo Distribuito / Distributed Computation Area
>
>
> [email protected]
>
>
> Engineering Ingegneria Informatica spa
> Corso Stati Uniti 23/C, 35127 Padova (PD)
>
>
> Tel. +39-049.8283.571         | main(){printf(&unix["\021%six\012\0"],
> Fax  +39-049.8283.569           |    (unix)["have"]+"fun"-0x60);}
> Skype: gian.uberto.lauri        |          David Korn, AT&T Bell Labs
> http://www.eng.it                       |          ioccc best One Liner, 1987
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>


_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to