You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Jaiganesh Mathaiyan (JIRA)" <ji...@apache.org> on 2014/10/24 19:44:33 UTC

[jira] [Commented] (JCLOUDS-704) Unable to create Virtual guest in SoftLayer

    [ https://issues.apache.org/jira/browse/JCLOUDS-704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14183102#comment-14183102 ] 

Jaiganesh Mathaiyan commented on JCLOUDS-704:
---------------------------------------------

Hi Andrea,

   Is this working now ? Can I create a server in a specified vlan using
the below option ?
 template.getOptions().as(SoftLayerTemplateOptions.class).networks("253152","260523");

Thanks
Jai

On Fri, Oct 24, 2014 at 12:37 PM, Andrea Turli (JIRA) <ji...@apache.org>



> 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
>            Assignee: Andrea Turli
>            Priority: Blocker
>         Attachments: [TestNG] Running_SLComputeServiceLiveTest.log
>
>
> 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)