[one-users] ec2 access problem after upgrading to ONE 3.0

Schwickerath Ulrich ulrich.schwickerath at cern.ch
Wed Oct 12 09:34:29 PDT 2011


Hi, Daniel,

yes, that is indeed the problem. With these changes it works if I use signature version 2.
Will add a hot fix patch to my local installations, and ask my customer to verify.

Thanks a lot !
Ulrich 

On Wednesday, October 12, 2011 05:44:42 PM Daniel Molina wrote:
> Hi Ulrich,
> 
> The snippet of code I sent you just represent the client
> configuration. This is the full code I used to do a request to the
> OpenNebula Cloud using the Perl Client:
> 
> https://gist.github.com/3239f16e320fd9f2df61
> 
> I will send you an account to test this code in your machine, doing a
> request to the OpenNebula Cloud.
> 
> I think maybe the problem is related to the port in which the
> econe-server is listening (8443) different from the default one. Try
> changing this line in the server code:
> 
> system-wide installation: /usr/lib/one/ruby/cloud/econe/EC2QueryServer.rb
> self-contained installation:
> $ONE_LOCATION/lib/ruby/cloud/econe/EC2QueryServer.rb
> 
> @@ -71,7 +71,7 @@ class EC2QueryServer < CloudServer
> 
>          econe_port = @config[:port]
> 
> -        params.merge!({:econe_host => econe_host, :econe_port =>
> econe_port}) +        params.merge!({:econe_host => econe_host,
> :econe_port => 8443}) super(env, params)
>      end
> 
> And the following econe-server configuration (econe.conf). Remember to
> restart the service after these changes:
> 
> # Host and port where econe server will run
> 
> :server: localhost
> :port: your_local_port
> 
> # SSL proxy that serves the API (set if is being used)
> 
> :ssl_server:  mycloudentrypoint.cern.ch
> 
> Hope this helps.
> 
> On 11 October 2011 09:10, Schwickerath Ulrich
> 
> <ulrich.schwickerath at cern.ch> wrote:
> > Some more information:
> > 
> > I've captured additional information from my customers client tools.
> > I see the problem for example if I call the describeImages method of the
> > client object, with the following arguments:
> > 
> > $response = $self->{service}->describeImages($request);
> > where $self looks like
> > 
> > $VAR1 = bless( {
> >                 'service' => bless( {
> >                                       '_config' => {
> >                                                      'ProxyPort' => -1,
> >                                                      'ProxyHost' =>
> > undef, 'ServiceURL' => 'https://mycloudentrypoint.cern.ch:8443/',
> > 'UserAgent' => 'Amazon EC2 Perl Library', 'SignatureVersion' => 2,
> > 'SignatureMethod' => 'HmacSHA256', 'MaxErrorRetry' => 3 },
> >                                       '_xml_parser' => bless( {
> >                                                                 '_State_'
> > => 0, 'XML_LIBXML_PARSER_OPTIONS' => 528390 }, 'XML::LibXML' ),
> > '_xslt_parser' => bless( {}, 'XML::LibXSLT' ), '_awsSecretAccessKey' =>
> > 'my ONE SHA1 access key', '_awsAccessKeyId' => 'my ONE user name' },
> > 'Amazon::EC2::Client' )
> >               }, 'Cloud' );
> > 
> > and $request as mentioned earlier
> > $VAR1 = {
> >          'Filter' => {
> >                        'FieldValue' => [],
> >                        'FieldType' => [
> >                                         'Amazon::EC2::Model::Filter'
> >                                       ]
> >                      },
> >          'Owner' => '392941794136',
> >          'ImageId' => undef,
> >          'ExecutableBy' => undef
> >        };
> > 
> > (The owner looks odd to me. I tried to undefine it without success, and
> > if I put my ONE user name there it does not change anything either)
> > 
> > Any idea ?
> > Thanks a lot!

-- 
--------------------------------------
Dr. Ulrich Schwickerath
CERN IT/PES-PS
1211 Geneva 23
e-mail: ulrich.schwickerath at cern.ch
phone:   +41 22 767 9576
mobile:  +41 76 487 5602 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111012/5107086d/attachment-0003.pgp>


More information about the Users mailing list