Single Node: EC2_ACCESS_KEY environment variable must be set?

asked 2011-04-14 08:48:16 -0500

Hello,

I was able to install the nova on single node (Ubuntu 10.04 LTS i686 ). When I tried to make it run following the instructions "http://docs.openstack.org/openstack-compute/admin/content/ch05s07.html". Tried to execute the command euca-create-volume. It threw an error "EC2_ACCESS_KEY environment variable must be set". When I looked for the help on search, it said a novarc file shall be created which does not exist.

How do I get this key?

Thank You Longshanks

edit retag flag offensive close merge delete

9 answers

Sort by » oldest newest most voted
0

answered 2011-04-15 07:47:44 -0500

Thanks Masanori Itoh, that solved my question.

edit flag offensive delete link more
0

answered 2011-09-23 10:21:54 -0500

Cool :-)

edit flag offensive delete link more
0

answered 2011-09-23 10:15:58 -0500

ashokcse gravatar image

Hi

Thank for all help.. Problem solved... No need to get EC2_ACCESS_KEY and EC2_SECRET_KEY from anywhere...I just redone the previous steps with little care...

edit flag offensive delete link more
0

answered 2011-09-23 07:42:20 -0500

ashokcse gravatar image

Hi

I am getting similar error when I run this during server1(CC) setup

euca-describe-availability-zones verbose EC2_ACCESS_KEY environment variable must be set. Connection failed

Should I have to set EC2_ACCESS_KEY and EC2_SECRET_KEY? If yes, plz tell me how to do it.

I followed http://docs.openstack.org/cactus/openstack-compute/starter/content/Nova_Components-d1e718.html (http://docs.openstack.org/cactus/open...) and I got stuck up in this command . My nova.conf

--dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --logdir=/var/log/nova --lock_path=/var/lock/nova --state_path=/var/lib/nova --verbose --s3_host=192.168.21.171 --rabbit_host=192.168.21.171 --cc_host=192.168.21.171 --ec2_url=http://192.168.21.171:8773/services/Cloud --fixed_range=192.168.0.0/16 --network_size=8 --FAKE_subdomain=ec2 --routing_source_ip=192.168.21.171 --sql_connection=mysql://root:mygreatsecret@192.168.21.171/nova --glance_host=192.168.21.171 --image_service=nova.image.glance.GlanceImageService --iscsi_ip_prefix=192.168.

edit flag offensive delete link more
0

answered 2011-04-14 16:26:58 -0500

Hi,

Yes, You have to set EC2_ACCESS_KEY and EC2_SECRET_KEY to your environment variables.

As for generation of 'novarc', please see:

http://docs.openstack.org/openstack-compute/admin/content/ch03s03.html#d5e314 (http://docs.openstack.org/openstack-c...)

Regards, Masanori

edit flag offensive delete link more
0

answered 2011-08-25 21:18:49 -0500

I was hoping for a quick start...

http://nova.openstack.org/2011.2/quickstart.html (http://nova.openstack.org/2011.2/quic...)

says nothing about needed variables beginning with EC2....
is there anything authoritative which covers things that are missing that doc?

E.g., i never heard of a command beginning with "euca" although trying to get up to speed with it.

edit flag offensive delete link more
0

answered 2011-09-12 23:53:11 -0500

annegentle gravatar image

Hi Chuck, that quick start is specifically intended for developers to start quickly, not for actual proof of concepts for administrators. I'd suggest you start with the Starter Guide instead - see http://docs.openstack.org/cactus/open... .

edit flag offensive delete link more
0

answered 2011-09-23 08:17:32 -0500

Hi Ahok,

You need to generate the credentials and source the file novarc to environment variable EC2_ACCESS_KEY and EC2_SECRET_KEY, whether it's single node or multi node installation.

You can find the instructions here, http://docs.openstack.org/openstack-compute/admin/content/ch03s03.html#d5e314 (http://docs.openstack.org/openstack-c...)

edit flag offensive delete link more
0

answered 2011-09-23 09:03:11 -0500

ashokcse gravatar image

Hi Sateesh

Thanks for ur help.

I executed these comments without error

mkdir –p /root/creds /usr/bin/python /usr/bin/nova-manage project zipfile $NOVA_PROJECT $NOVA_PROJECT_USER /root/creds/novacreds.zip

unzip /root/creds/novacreds.zip -d /root/creds/ cat /root/creds/novarc >> ~/.bashrc source ~/.bashrc

But when i execute the below it gives

euca-describe-availability-zones verbose

EC2_ACCESS_KEY environment variable must be set. Connection failed

I logged in http://open.eucalyptus.com but i am not sure how to get EC2_ACCESS_KEY and EC2_SECRET_KEY .... and how to add it...

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-04-14 08:48:16 -0500

Seen: 167 times

Last updated: Sep 23 '11