cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajani Karuturi <>
Subject Re: [VOTE] Release Apache CloudStack EC2stack 0.8.0
Date Mon, 07 Sep 2015 08:33:02 GMT
Its successful now. Thanks for the help.

$ ec2stack-register http://localhost:5000 CLOUDSTACK-API-KEY CLOUDSTACK-SECRET-KEY - - [07/Sep/2015 13:52:24] "POST / HTTP/1.1" 200 -
Successfully Registered!
$ ec2stack-configure
EC2Stack bind address [localhost]:
EC2Stack bind port [5000]:
Cloudstack host [localhost]:
Cloudstack port [8080]:
Cloudstack protocol [http]:
Cloudstack path [/client/api]:
Cloudstack custom disk offering name [Custom]:
Cloudstack default zone name [xen-zone0]:
Do you wish to input instance type mappings? (Yes/No): No
Do you wish to input resource type to resource id mappings for tag support? (Yes/No): No
$ aws configure
AWS Access Key ID [****************CH5Q]: CLOUDSTACK-API-KEY
AWS Secret Access Key [****************dvY9]: CLOUDSTACK-SECRET-KEY
Default region name [us-west-2]:
Default output format [None]:
$ aws configure set default.ec2.signature_version v2
$ aws ec2 describe-images --endpoint=http://localhost:5000 - - [07/Sep/2015 13:53:39] "POST / HTTP/1.1" 200 -
    "Images": [
            "Description": "CentOS 5.6(64-bit) no GUI (XenServer)",
            "State": "available",
            "Name": "CentOS 5.6(64-bit) no GUI (XenServer)",
            "Hypervisor": "XenServer",
            "ImageId": "\n                bd35c5d2-35c0-11e5-b094-d4ae52cb9af0\n         
            "Description": "coreos64",
            "State": "available",
            "Name": "coreos64",
            "Hypervisor": "XenServer",
            "ImageId": "\n                066a3e35-f393-4b18-8a8a-a26166ba75c4\n         

+1 (binding)


On 03-Sep-2015, at 1:39 pm, Sebastien Goasguen <<>>


Apologies I think the instructions may not have been clear enough.
I just tested it again against exoscale and modified the docker instructions on the README.

Please check:

You will need to configure your cloudstack Api endpoint properly in the ec2stack-configure
don’t forget to commit the changes to a new container and then run this new container in
daemon mode.
Register the user with curl (we need to change that).
Install awscli and configure it, giving it the CloudStack keys and set the signature version
to 2.

This should work. If it does not, it’s probably an issue with how you configure the cloudstack
endpoint in the ec2stack-configure step.


On Sep 1, 2015, at 10:53 AM, Rajani Karuturi <> wrote:

ok. I have done that.

This is what I see in cloudstack logs
2015-09-01 12:13:10,537 DEBUG [c.c.a.ApiServlet] (255545312@qtp-2099531272-5:ctx-475b47b7)
===START=== -- GET  apikey=AWS_API_KEY&command=listTemplates&listAll=true&response=json&templatefilter=executable&signature=wydwgfo%2BbwkLcU8DwONqu6CVFm4%3D
2015-09-01 12:13:10,544 DEBUG [c.c.a.ApiServer] (255545312@qtp-2099531272-5:ctx-475b47b7 ctx-c157c9f3)
apiKey does not map to a valid user -- ignoring request, apiKey: AWS_API_KEY
2015-09-01 12:13:10,548 DEBUG [c.c.a.ApiServlet] (255545312@qtp-2099531272-5:ctx-475b47b7
ctx-c157c9f3) ===END=== -- GET  apikey=AWS_API_KEY&command=listTemplates&listAll=true&response=json&templatefilter=executable&signature=wydwgfo%2BbwkLcU8DwONqu6CVFm4%3D

how does ec2stack talk to cloudstack? I mean how does it authenticate?
I was assuming through cloudstack apikey and secret. how do i give cloudstack users api/secret
to ec2stack?


On 01-Sep-2015, at 12:50 pm, sebgoa <> wrote:

On Sep 1, 2015, at 9:17 AM, Rajani Karuturi <> wrote:

Where did you give cloudstack apikey and secret?
Did you give AWS keys both at AWS configure and ec2-register?

yes you need to do both…

$ aws configure ….> give your keys
$ ec2stack-register ….> give your keys

That step is a bit clumsy right now


On 01-Sep-2015, at 10:16 am, Rohit Yadav <<>>

On 28-Aug-2015, at 4:34 pm, Rajani Karuturi <<>>

$ ec2stack-register http://localhost:5000<http://localhost:5000/> cs_api_key cs_secret_key
$ aws ec2 describe-images --endpoint=http://localhost:5000
# it gave the below error message
# Unable to locate credentials. You can configure credentials by running "aws configure”.
$ aws configure # gave AWS api and secret key
$ aws ec2 describe-images --endpoint=http://localhost:5000
# this is the output I see
# localhost - - [28/Aug/2015 16:25:24] "POST / HTTP/1.1" 401 -
# ‘RequestID’

Something went wrong with registering the user, use this to register the apikey/secretkey:

curl -d AWSSecretKey=yoursecretkey -d AWSAccessKeyId=yourapikey -d Action=RegisterSecretKey

Rohit Yadav
Software Architect, ShapeBlue

M. +91 88 262 30892 |<>
Blog:<> | Twitter: @_bhaisaab

Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<>
CSForge – rapid IaaS deployment framework<>
CloudStack Consulting<>
CloudStack Software Engineering<>
CloudStack Infrastructure Support<>
CloudStack Bootcamp Training Courses<>

This email and any attachments to it may be confidential and are intended solely for the use
of the individual to whom it is addressed. Any views or opinions expressed are solely those
of the author and do not necessarily represent those of Shape Blue Ltd or related companies.
If you are not the intended recipient of this email, you must neither take any action based
upon its contents, nor copy or show it to anyone. Please contact the sender if you believe
you have received this email in error. Shape Blue Ltd is a company incorporated in England
& Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated
under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated
in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company
registered by The Republic of South Africa and is traded under license from Shape Blue Ltd.
ShapeBlue is a registered trademark.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message