cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohit Yadav <>
Subject RE: aws testing using 4.0 test procedure
Date Mon, 08 Oct 2012 17:16:22 GMT
I not sure if awsapi runs in developer mode and with the script you're using (cloudstack-aws-api-register).
The script is assumed to be part of a release where the awsapi package is installed in /usr/share/cloud/bridge.
Try to change the hardcoded path to the path where bridge is getting deployed. The ant/maven
confusion; assuming you're using ant; you'll have to change the deploy-rpm target in build/build-aws-api.xml
and run that target with ant <target> to deploy bridge in case it does not get deployed
to tomcat etc.

From: sebgoa []
Sent: Monday, October 08, 2012 10:06 PM
To: cloudstack
Subject: aws testing using 4.0 test procedure


I am trying to test the aws api using the test procedure that uses devcloud:

Everything builds fine and the smoke test (starting an instance ) is successfull

But the user registration for aws fails.

It could be a devcloud issue or is not
yet fixed.

when registering with:
python ./cloudstack-aws-api-register -a VXxPLPRzP7ET1cNw4sZx8YIVxwAEKsl9VS-cq9lxzN7C2lO0MhbOlQSUJCvCCMjmyxSZaFOK2CpdVuTipP4P6A
-s mD-WGTYYEjwp1rrYWfc665wwdkDqjnUal-d6dXAysQSvTcIb13Bn1cJiyfLrBiPCqHWNgETxv3YPUfgKv1uklA
-c cert.pem -u http://localhost:7080/awsapi

I get a 401 error:

Traceback (most recent call last):
  File "./", line 61, in <module>
    register(opts.url, opts.apikey, opts.secretkey, opts.cert)
  File "./", line 32, in register
    get_url(url, api_key, secret_key, 'SetUserKeys', query)
  File "./", line 27, in get_url
    return urllib.urlretrieve(url)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/",
line 93, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/",
line 239, in retrieve
    fp =, data)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/",
line 207, in open
    return getattr(self, name)(url)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/",
line 362, in open_http
    return self.http_error(url, fp, errcode, errmsg, headers)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/",
line 375, in http_error
    result = method(url, fp, errcode, errmsg, headers)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/",
line 689, in http_error_401
    errcode, errmsg, headers)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/",
line 385, in http_error_default
    raise IOError, ('http error', errcode, errmsg, headers)
IOError: ('http error', 401, 'Unauthorized', <httplib.HTTPMessage instance at 0x1011db950>)

the ant rdebug gives:

 [sshexec]      [java] EC2RestServlet.doGetOrPost: javax.servlet.forward.request_uri: /awsapi
  [sshexec]      [java] EC2RestServlet.doGetOrPost: javax.servlet.forward.context_path: /awsapi
  [sshexec]      [java] EC2RestServlet.doGetOrPost: javax.servlet.forward.servlet_path:
  [sshexec]      [java] EC2RestServlet.doGetOrPost: javax.servlet.forward.path_info: /
  [sshexec]      [java] EC2RestServlet.doGetOrPost: javax.servlet.forward.query_string: AWSAccessKeyId=VXxPLPRzP7ET1cNw4sZx8YIVxwAEKsl9VS-cq9lxzN7C2lO0MhbOlQSUJCvCCMjmyxSZaFOK2CpdVuTipP4P6A&Action=SetUserKeys&SignatureMethod=HmacSHA1&SignatureVersion=2&Timestamp=2012-10-08T18:26:40Z&Version=2010-11-15&accesskey=VXxPLPRzP7ET1cNw4sZx8YIVxwAEKsl9VS-cq9lxzN7C2lO0MhbOlQSUJCvCCMjmyxSZaFOK2CpdVuTipP4P6A&secretkey=mD-WGTYYEjwp1rrYWfc665wwdkDqjnUal-d6dXAysQSvTcIb13Bn1cJiyfLrBiPCqHWNgETxv3YPUfgKv1uklA&Signature=d7oem9cNwKSyoie8l5%2BrYOH%2FAGw%3D

There is no /usr/share/cloud/bridge directory inside the devcloud, which makes me believe
it's a devcloud issue and not a code issue ?



View raw message