[StarCluster] authentication error
Justin Riley
jtriley at MIT.EDU
Tue Jul 26 18:39:06 EDT 2011
-----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-----
More information about the StarCluster
mailing list