<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-mailStijl17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=NL-BE link=blue vlink=purple>
<div class=WordSection1>
<p class=MsoNormal><span lang=EN-US>Hi Justin,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I tried to create a volume with the
following command:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>joachim@tm1:~$ starcluster createvolume 100
eu-west-1b --image-id ami-6be5cf1f<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>>>> Using keypair sge<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>>>> Requesting host instance in
zone eu-west-1b to attach volume to...<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>>>> Creating security group
@sc-volumecreator...<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>>>> No instance in group
@sc-volumecreator for zone eu-west-1b, launching one now.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>volume.py:186 - ERROR - exception thrown:
EC2ResponseError: 400 Bad Request<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><?xml version="1.0"?><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><Response><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <Errors><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <Error><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <Code>InvalidParameterValue</Code><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <Message>The
requested instance type's architecture (i386) does not match the architecture
in the manifest for ami-6be5cf1f (x86_64)</Message><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </Error><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </Errors><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> <RequestID>4ff61a79-6a82-480e-b1dd-e26d8965eb70</RequestID><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US></Response><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I was looking for an architecture parameter,
but I couldn’t find one<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>(volume.py line 32 – 56)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>def _request_instance(self, zone):<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
for i in self.security_group.instances():<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
if i.state in ['pending','running'] and i.placement == zone:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
log.info("Using existing instance %s in group %s" % \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
(i.id,self.security_group.name))<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
self._instance = Node(i, self._key_location, 'vol_host')<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> break<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
if not self._instance:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
log.info("No instance in group %s for zone %s, launching one now." %
\<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
(self.security_group.name, zone))<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
self._resv = self._ec2.run_instances(image_id=self._image_id,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
instance_type='m1.small',<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
min_count=1, max_count=1,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
security_groups=[self.security_group.name],<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
key_name=self._keypair,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
placement=zone)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
instance = self._resv.instances[0]<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
self._instance = Node(instance, self._key_location, 'vol_host')<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
s = Spinner()<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
log.info("Waiting for instance %s to come up..." % self._instance.id)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
s.start()<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
while not self._instance.is_up():<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
time.sleep(15)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
s.stop()<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
return self._instance<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Apparently the code in line 43 <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>instance_type='m1.small'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>throws an error if you try to create a
volume with a 64-bit StarCluster AMI, since you can’t launch an m1.small
with 64 bit images.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I am in the eu zone, so I can’t use
the AMI defined in image_id=static.BASE_AMI_32.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>With the 64-bit image I use instead, an
extra parameter could prevent this error<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>After I changed the line into <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>instance_type='m1.large'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>the volume was created successfully.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Kind regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Joachim<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
</div>
</body>
</html>