StarCluster - Mailing List Archive

Re: authentication error

From: Justin Riley <no email>
Date: Tue, 26 Jul 2011 18:39:06 -0400

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jonathan,

Looks like it's working fine in boto. Next up, try launching the
development shell and see if the config parser is receiving the values
correctly:

$ starcluster shell
In [1]: cfg.aws
(press enter)

This will print out a dictionary showing the config values for [aws
info]. Make sure the "aws_access_key_id" and "aws_secret_access_key"
looks correct. They should look identical to your boto test in the
previous email.

Also, while still in the development shell, try this:

$ starcluster shell
In [2]: ec2.list_all_instances()

Let me know if the list_all_instances() command completes without error.

~Justin

On 07/26/2011 04:58 PM, Jonathan Taylor wrote:
> Hi Justin,
>
> Here is the output I get:
>
> ----------------
>
> $ python --version Python 2.6.6 $ python -c "import boto; print
> boto.Version" 2.0b4 $
>
> --------------
>
>
> $ ipython Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) Type
> "copyright", "credits" or "license" for more information.
>
> IPython 0.10 -- An enhanced Interactive Python. ? ->
> Introduction and overview of IPython's features. %quickref -> Quick
> reference. help -> Python's own help system. object? ->
> Details about 'object'. ?object also works, ?? prints more.
>
> In [1]: from boto.ec2.connection import EC2Connection
>
> In [2]: conn = EC2Connection("***********","******************")
>
> In [3]: print conn.get_all_instances() []
>
> In [4]:
>
> --------------
>
> On Tue, Jul 26, 2011 at 7:49 AM, Justin Riley <jtriley_at_mit.edu
> <mailto:jtriley_at_mit.edu>> wrote:
>
> Hi Jonathan,
>
> Could you please send me the output of:
>
> $ python --version $ python -c 'import boto; print boto.Version'
>
> Also, as a sanity test you can try the following with boto directly:
>
> [~]> from boto.ec2.connection import EC2Connection [~]> conn =
> EC2Connection('<aws access key>', '<aws secret key>') [~]>
> conn.get_all_instances()
>
> Obviously you'll need to replace the <aws access key> and <aws
> secret key> with your keys. If this works for you without error then
> there's definitely a bug in StarCluster. If not, then I would suspect
> an issue between boto and your currently installed python version.
>
> ~Justin
>
> On 07/20/2011 06:21 PM, Jonathan Taylor wrote:
>> Hi Justin,
>
>> I did not manage to get it working. I wonder if there's a way to
>> "debug" this, or to ensure that the values I have copied off AWS
>> are indeed correct. It has been a while since I started any
>> machines on EC2, maybe I should just double check that that works
>> first.
>
>> Jonathan
>
>> On Wed, Jul 20, 2011 at 9:54 AM, Justin Riley <jtriley_at_mit.edu
> <mailto:jtriley_at_mit.edu>
>> <mailto:jtriley_at_mit.edu <mailto:jtriley_at_mit.edu>>> wrote:
>
>> Hi Jonathan,
>
>> Were you able to get things working? If not make sure you don't
>> have quotes around the values for aws_access_key_id and
>> aws_secret_access_key. Also, aws_secret_access_key is the longer
>> of the two keys so make sure you don't have them flipped.
>
>> ~Justin
>
>
>> On Jul 15, 2011, at 5:39 PM, Rayson Ho wrote:
>
>>> Are you able to run any ec2 command line tools (like
>> ec2-describe-images)??
>>>
>>> A lot of times it's the private key file readable by group or
>>> others.
>>>
>>> Rayson
>>>
>>>
>>> --- On Fri, 7/15/11, Jonathan Taylor
> <jonathan.taylor_at_stanford.edu <mailto:jonathan.taylor_at_stanford.edu>
>> <mailto:jonathan.taylor_at_stanford.edu
> <mailto:jonathan.taylor_at_stanford.edu>>> wrote:
>>> From: Jonathan Taylor <jonathan.taylor_at_stanford.edu
> <mailto:jonathan.taylor_at_stanford.edu>
>> <mailto:jonathan.taylor_at_stanford.edu
> <mailto:jonathan.taylor_at_stanford.edu>>>
>>> Subject: [StarCluster] authentication error To: "starcluster"
>>> <starcluster_at_MIT.EDU <mailto:starcluster_at_MIT.EDU>
> <mailto:starcluster_at_MIT.EDU <mailto:starcluster_at_MIT.EDU>>> Date:
> Friday,
>>> July 15, 2011, 3:04 PM
>>>
>>> I've copied the AWS info into the config file from my amazon AWS
>>> credential page but it seems I am still unable to
>> authenticate my AWS account with starcluster.
>>>
>>> jtaylo_at_gkf-ubuntu:~$ starcluster start mycluster
>>>
>>>
>>> StarCluster - (http://web.mit.edu/starcluster) (v. 0.92rc2)
>>> Software Tools for Academics and Researchers (STAR) Please
>>> submit bug reports to starcluster_at_mit.edu
>>> <mailto:starcluster_at_mit.edu>
>> <mailto:starcluster_at_mit.edu <mailto:starcluster_at_mit.edu>>
>>>
>>>
>>>
>>> !!! ERROR - AuthFailure: AWS was not able to validate the
>>> provided
>> access credentials
>>>
>>> Any suggestions to find out which part of my AWS info is causing
>> problems?
>>>
>>> Thanks,
>>>
>>> Jonathan
>>>
>>>
>>>
>>> --
>>>
>>>
>>>
>>>
>>> -- Jonathan Taylor Dept. of Statistics Sequoia Hall, 137 390
>>> Serra Mall Stanford, CA 94305
>>>
>>> Tel: 650.723.9230 <tel:650.723.9230> <tel:650.723.9230
> <tel:650.723.9230>> Fax: 650.725.8977 <tel:650.725.8977>
>>> <tel:650.725.8977 <tel:650.725.8977>> Web:
> http://www-stat.stanford.edu/~jtaylo
> <http://www-stat.stanford.edu/%7Ejtaylo>
>> <http://www-stat.stanford.edu/%7Ejtaylo>
>>>
>>>
>>> -----Inline Attachment Follows-----
>>>
>>> _______________________________________________ StarCluster
>>> mailing list StarCluster_at_mit.edu <mailto:StarCluster_at_mit.edu>
> <mailto:StarCluster_at_mit.edu <mailto:StarCluster_at_mit.edu>>
>>> http://mailman.mit.edu/mailman/listinfo/starcluster
>>>
>>>
>>> _______________________________________________ StarCluster
>>> mailing list StarCluster_at_mit.edu <mailto:StarCluster_at_mit.edu>
> <mailto:StarCluster_at_mit.edu <mailto:StarCluster_at_mit.edu>>
>>> http://mailman.mit.edu/mailman/listinfo/starcluster
>
>
>
>
>> -- Jonathan Taylor Dept. of Statistics Sequoia Hall, 137 390 Serra
>> Mall Stanford, CA 94305 Tel: 650.723.9230
> <tel:650.723.9230> Fax:
>> 650.725.8977 <tel:650.725.8977> Web:
> http://www-stat.stanford.edu/~jtaylo
> <http://www-stat.stanford.edu/%7Ejtaylo>
>
>
>
>
>
> -- Jonathan Taylor Dept. of Statistics Sequoia Hall, 137
> 390 Serra Mall Stanford, CA 94305 Tel: 650.723.9230 Fax:
> 650.725.8977 Web: http://www-stat.stanford.edu/~jtaylo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4vQgoACgkQ4llAkMfDcrkgBwCZATOko5Nu2hTN+ljXnedrUuc9
o4IAoJV6MxGOCwb4wcS6muzB++aIfdYk
=1sOE
-----END PGP SIGNATURE-----
Received on Tue Jul 26 2011 - 18:39:08 EDT
This archive was generated by hypermail 2.3.0.

Search:

Sort all by:

Date

Month

Thread

Author

Subject