Leons Petrazickis created JCLOUDS-396:
-----------------------------------------

             Summary: Can't provision RHEL6 5+ cores on Softlayer
                 Key: JCLOUDS-396
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-396
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-compute
    Affects Versions: 1.6.3
         Environment: softlayer
imageId 22400
or osFamily RHEL, osVersion 6, minCores 5
            Reporter: Leons Petrazickis


SoftLayer lets you provision instances of RHEL with more than 5 cores. I can 
provision RHEL6 with 5+ cores using the SoftLayer CLI and SoftLayer API, but I 
can't provision it through Jclouds.

I get this error when I try to provision RHEL6 with 5+ cores:
HTTP/1.1 500 Internal Server Error; content: 
[{
"error":"Red Hat Enterprise Linux 6 - Minimal Install (64 bit) (1-4 Core), 
price ID# 13799, has a CORE capacity restriction that does not match the 
capacity of 16 x 2.0 GHz Cores, price ID# 2235. Please submit prices that are 
compatible.",
"code":"SoftLayer_Exception_Public"
}]

Currently, imageId in jclouds corresponds to what Softlayer calls price id. The 
price id for RHEL6 with 5+ cores is 22400. This is the error I get when I try 
to provision imageId 22400 in jclouds:
Java::JavaUtil::NoSuchElementException (imageId(22400) not found):


For 16 cores, SoftLayer CLI uses image id 22400:
sl cci create --cpu=16 --memory=32768 --os=REDHAT_6_64  --test --hostname=leons 
--domain=softlayer.com --hourly --debug=3

...
         <member>
          <name>id</name>
          <value>
           <int>22400</int>
          </value>
         </member>
...
         <member>
          <name>item</name>
          <value>
           <struct>
            <member>
             <name>description</name>
             <value>
              <string>Red Hat Enterprise Linux 6 - Minimal Install (64 bit) (5 
- 100 Core)</string>
             </value>
            </member>
           </struct>
          </value>
         </member>
...

For 4 cores, SoftLayer CLI uses image id 13799:
sl cci create --cpu=4 --memory=32768 --os=REDHAT_6_64  --test --hostname=leons 
--domain=softlayer.com --hourly --debug=3

...
         <member>
          <name>id</name>
          <value>
           <int>13799</int>
          </value>
         </member>
...
         <member>
          <name>item</name>
          <value>
           <struct>
            <member>
             <name>description</name>
             <value>
              <string>Red Hat Enterprise Linux 6 - Minimal Install (64 bit) (1 
- 4 Core)</string>
             </value>
            </member>
           </struct>
          </value>
         </member>
...

Provisioning imageId 13799 (RHEL6 1-4 cores) in jclouds works great. 
Unfortunately, imageId 22400 throws errors.

I'm wondering if maybe jclouds gets confused by REDHAT_6_64 being used to refer 
to more than one image. Softlayer CLI lists REDHAT_6_64 more than once:

sl cci create-options

:     os (REDHAT) : REDHAT_5_32                                                 
                                       :
:                 : REDHAT_5_32                                                 
                                       :
:                 : REDHAT_5_64                                                 
                                       :
:                 : REDHAT_5_64                                                 
                                       :
:                 : REDHAT_6_32                                                 
                                       :
:                 : REDHAT_6_32                                                 
                                       :
:                 : REDHAT_6_64                                                 
                                       :
:                 : REDHAT_6_64                                                 
                                       :

CLI doc:
http://softlayer.github.io/softlayer-api-python-client/cli.html#configuration-setup
http://softlayer.github.io/softlayer-api-python-client/install.html#using-pip



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to