On 07-Sep-2015, at 2:03 pm, Rajani Karuturi <rajani.karut...@citrix.com<mailto:rajani.karut...@citrix.com>> wrote:
Its successful now. Thanks for the help. Great, I guess we’ve enough votes for doing the release now :) $ ec2stack-register http://localhost:5000 CLOUDSTACK-API-KEY CLOUDSTACK-SECRET-KEY 127.0.0.1 - - [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]: 10.147.28.40 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 127.0.0.1 - - [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) ~Rajani On 03-Sep-2015, at 1:39 pm, Sebastien Goasguen <run...@gmail.com<mailto:run...@gmail.com><mailto:run...@gmail.com>> wrote: Rajani, 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: https://github.com/apache/cloudstack-ec2stack You will need to configure your cloudstack Api endpoint properly in the ec2stack-configure step. 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. -sebastien On Sep 1, 2015, at 10:53 AM, Rajani Karuturi <rajani.karut...@citrix.com> 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=== 10.147.28.40 -- 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=== 10.147.28.40 -- 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? ~Rajani On 01-Sep-2015, at 12:50 pm, sebgoa <run...@gmail.com> wrote: On Sep 1, 2015, at 9:17 AM, Rajani Karuturi <rajani.karut...@citrix.com> 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 ~Rajani On 01-Sep-2015, at 10:16 am, Rohit Yadav <rohit.ya...@shapeblue.com<mailto:rohit.ya...@shapeblue.com>> wrote: On 28-Aug-2015, at 4:34 pm, Rajani Karuturi <rajani.karut...@citrix.com<mailto:rajani.karut...@citrix.com>> wrote: $ 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 http://localhost:5000<http://localhost:5000/> Regards, Rohit Yadav Software Architect, ShapeBlue M. +91 88 262 30892 | rohit.ya...@shapeblue.com<mailto:rohit.ya...@shapeblue.com> Blog: bhaisaab.org<http://bhaisaab.org/> | Twitter: @_bhaisaab Find out more about ShapeBlue and our range of CloudStack related services IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/> CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/> CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/> CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/> 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. Regards, Rohit Yadav Software Architect, ShapeBlue [cid:9DD97B41-04C5-45F0-92A7-951F3E962F7A] M. +91 88 262 30892 | rohit.ya...@shapeblue.com<mailto:rohit.ya...@shapeblue.com> Blog: bhaisaab.org<http://bhaisaab.org> | Twitter: @_bhaisaab Find out more about ShapeBlue and our range of CloudStack related services IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/> CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/> CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/> CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/> 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.