[
https://issues.apache.org/jira/browse/JCLOUDS-704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jaiganesh Mathaiyan updated JCLOUDS-704:
----------------------------------------
Description:
Error while creating a virtual guest in softlayer
2014-09-04 15:29:45,812 [main] DEBUG SLF4JLogger Sending request -1350657235:
POST https://api.softlayer.com/rest/v3/SoftLayer_Product_Order/placeOrder.json
HTTP/1.1
2014-09-04 15:29:48,963 [main] DEBUG SLF4JLogger Receiving response
-1350657235: HTTP/1.1 200 OK
java.lang.IndexOutOfBoundsException: position (0) must be less than the number
of elements that remained (0)
at com.google.common.collect.Iterators.get(Iterators.java:813)
at com.google.common.collect.Iterables.get(Iterables.java:728)
at
org.jclouds.softlayer.compute.strategy.SoftLayerComputeServiceAdapter.createNodeWithGroupEncodedIntoName(SoftLayerComputeServiceAdapter.java:129)
Code snippet
//inst is a local object to contain the template information
inst.setArchitecture(ArchitectureEnum.BIT64.getNumber());
inst.setVcpus(1);
inst.setMemory(512);
inst.setZone("138124");
inst.setName("abcd");
inst.setOsFamily("RHEL");
.
.
.
templateBuilder = templateBuilder.from("minRam="
+ (int) inst.getMemory()
+ ",os64Bit="
+ inst.getArchitecture().equals(
ArchitectureEnum.BIT64.getNumber()) + ",minCores="
+ inst.getVcpus() + ",osFamily=" +
inst.getOsFamily()
+ ",locationId=" + location);
templateBuilder = templateBuilder.smallest();
.
.
.
template.getOptions().as(SoftLayerTemplateOptions.class).domainName("me.org");
template.getOptions().as(SoftLayerTemplateOptions.class).networks("253152","260523");
NodeAndInitialCredentials<VirtualGuest> guest =
adapter.createNodeWithGroupEncodedIntoName(group, name, template);
was:
Error while creating a virtual guest in softlayer
2014-09-04 15:29:45,812 [main] DEBUG SLF4JLogger Sending request -1350657235:
POST https://api.softlayer.com/rest/v3/SoftLayer_Product_Order/placeOrder.json
HTTP/1.1
2014-09-04 15:29:48,963 [main] DEBUG SLF4JLogger Receiving response
-1350657235: HTTP/1.1 200 OK
java.lang.IndexOutOfBoundsException: position (0) must be less than the number
of elements that remained (0)
at com.google.common.collect.Iterators.get(Iterators.java:813)
at com.google.common.collect.Iterables.get(Iterables.java:728)
at
org.jclouds.softlayer.compute.strategy.SoftLayerComputeServiceAdapter.createNodeWithGroupEncodedIntoName(SoftLayerComputeServiceAdapter.java:129)
at
com.cisco.vnmc.hcloud.cpm.service.providers.softlayer.SLProviderOps.getLocation(SLProviderOps.java:118)
at
com.cisco.vnmc.hcloud.cpm.service.providers.softlayer.SLProviderOps.getRegions(SLProviderOps.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Code snippet
//inst is a local object to contain the template information
inst.setArchitecture(ArchitectureEnum.BIT64.getNumber());
inst.setVcpus(1);
inst.setMemory(512);
inst.setZone("138124");
inst.setName("abcd");
inst.setOsFamily("RHEL");
.
.
.
templateBuilder = templateBuilder.from("minRam="
+ (int) inst.getMemory()
+ ",os64Bit="
+ inst.getArchitecture().equals(
ArchitectureEnum.BIT64.getNumber()) + ",minCores="
+ inst.getVcpus() + ",osFamily=" +
inst.getOsFamily()
+ ",locationId=" + location);
templateBuilder = templateBuilder.smallest();
.
.
.
template.getOptions().as(SoftLayerTemplateOptions.class).domainName("me.org");
template.getOptions().as(SoftLayerTemplateOptions.class).networks("253152","260523");
NodeAndInitialCredentials<VirtualGuest> guest =
adapter.createNodeWithGroupEncodedIntoName(group, name, template);
> Unable to create Virtual guest in SoftLayer
> -------------------------------------------
>
> Key: JCLOUDS-704
> URL: https://issues.apache.org/jira/browse/JCLOUDS-704
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-compute
> Affects Versions: 1.8.1
> Environment: provider: Softlayer
> JDK: 1.7
> provider/softlayer code deployed from github branch master.
> Reporter: Jaiganesh Mathaiyan
> Priority: Blocker
>
> Error while creating a virtual guest in softlayer
> 2014-09-04 15:29:45,812 [main] DEBUG SLF4JLogger Sending request -1350657235:
> POST
> https://api.softlayer.com/rest/v3/SoftLayer_Product_Order/placeOrder.json
> HTTP/1.1
> 2014-09-04 15:29:48,963 [main] DEBUG SLF4JLogger Receiving response
> -1350657235: HTTP/1.1 200 OK
> java.lang.IndexOutOfBoundsException: position (0) must be less than the
> number of elements that remained (0)
> at com.google.common.collect.Iterators.get(Iterators.java:813)
> at com.google.common.collect.Iterables.get(Iterables.java:728)
> at
> org.jclouds.softlayer.compute.strategy.SoftLayerComputeServiceAdapter.createNodeWithGroupEncodedIntoName(SoftLayerComputeServiceAdapter.java:129)
>
> Code snippet
> //inst is a local object to contain the template information
> inst.setArchitecture(ArchitectureEnum.BIT64.getNumber());
> inst.setVcpus(1);
> inst.setMemory(512);
> inst.setZone("138124");
> inst.setName("abcd");
> inst.setOsFamily("RHEL");
> .
> .
> .
> templateBuilder = templateBuilder.from("minRam="
> + (int) inst.getMemory()
> + ",os64Bit="
> + inst.getArchitecture().equals(
>
> ArchitectureEnum.BIT64.getNumber()) + ",minCores="
> + inst.getVcpus() + ",osFamily=" +
> inst.getOsFamily()
> + ",locationId=" + location);
> templateBuilder = templateBuilder.smallest();
> .
> .
> .
> template.getOptions().as(SoftLayerTemplateOptions.class).domainName("me.org");
>
> template.getOptions().as(SoftLayerTemplateOptions.class).networks("253152","260523");
> NodeAndInitialCredentials<VirtualGuest> guest =
> adapter.createNodeWithGroupEncodedIntoName(group, name, template);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)