cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prachi Damle <Prachi.Da...@citrix.com>
Subject RE: Cloudbridge SetOfferMapping
Date Wed, 18 Jul 2012 17:52:59 GMT
Hi Sebastien.

Seems docs need to be corrected. Looking at the authentication code, I see that the REST query
also needs:
1. AWSAccessKeyId (CS API key of the user)
2. Signature
3. SignatureMethod ("HmacSHA256" or "HmacSHA1")
4. Version (wsdlVersion mentioned I the ec2-service.properties of your installation)
5. SignatureVersion (=2)
6. Timestamp (date and time at which the request is SIGNED)



But from the output of the cloud-setup-bridge cmd that you have pasted, your service offering
looks already mapped:

>>>Service offering ID for m1.small [ef2537ad-c70f-11e1-821b-0800277e749c]:
>>>Service offering ID for m1.large [2]:

The value enclosed within [] is the offering ID mapping existing in the DB. 
If you run cloud-setup-bridge again and enter a new ID, the existing mapping will be overwritten.

You can check following table in your DB to see if the mapping is set:
SELECT * FROM offering_bundle;


Also, If you happen to use CS 3.0.3 later, EC2 is installed along with CS and you can create
EC2 offerings through CS UI.

Thanks,
Prachi

-----Original Message-----
From: sebastien goasguen [mailto:runseb@gmail.com] 
Sent: Wednesday, July 18, 2012 10:18 AM
To: cloudstack-users@incubator.apache.org
Subject: Cloudbridge SetOfferMapping

HI,

I am trying to register a service offering in cloudbridge (CS 3.0.2, cloudbridge 1.1.2), to
map m1.small instance type to a service offering id.
According to http://docs.cloud.com/CloudBridge_Documentation/Utility_Commands_for_CloudBridge

I did:

curl http://192.168.56.103:8090/bridge/rest/AmazonEC2?Action=SetOfferMapping&amazonoffer=m1.small&cloudoffer=ef2537ad-c70f-11e1-821b-0800277e749c
[1] 10596
[2] 10597
yoyo:citrix runseb$ <html><head><title>Apache Tomcat/6.0.35 - Error
report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color :
#525D76;}--></style> </head><body><h1>HTTP Status 530 - Missing
AWSAccessKeyId parameter</h1><HR size="1"
noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
<u>Missing AWSAccessKeyId parameter</u></p><p><b>description</b>
<u>Cannot find message associated with key http.530</u></p><HR size="1"
noshade="noshade"><h3>Apache Tomcat/6.0.35</h3></body></html>
[1]-  Done                    curl
http://192.168.56.103:8090/bridge/rest/AmazonEC2?Action=SetOfferMapping
[2]+  Done                    amazonoffer=m1.small

Do I need to add the key ? the docs don't mention it.

I also set the mapping with cloud-setup-bridge cmd:

[root@manager sebgoa]# cloud-setup-bridge Welcome to the CloudBridge setup.
Enter suitable values or press enter for default.

Management server hostname or IP [192.168.56.102]:
Management server port [8080]:
Service offering ID for m1.small [ef2537ad-c70f-11e1-821b-0800277e749c]:
Service offering ID for m1.large [2]:

But that does not seem to work either.

--
---
Sebastien Goasguen
Open Source Cloud Evangelist, Cloudstack http://sites.google.com/site/runseb/

Mime
View raw message