With the most recent code (master) I am running into other issues. (Pls
Note, I initially tried to update my maven to version 2.0.0 and that still
had the the globalIdentifier problem).
In the master branch, the globalIdentifier problem does not happen.
The first difference is, for the zone, I have to set the data center ID
instead of the friendly name ("138124" Vs "dal05" )
Once I updated to the ID, I am getting the below error and the application
exists. However on the customer portal, I can see the guest being
instantiated successfully.

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)

Pls let me know if you need more info.
Values used in the template builder
        //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");

Additionally, I set

template.getOptions().as(SoftLayerTemplateOptions.class).domainName("me.org
");

template.getOptions().as(SoftLayerTemplateOptions.class).networks("253152","260523");

Rgds
Jai


On Wed, Sep 3, 2014 at 12:48 PM, Ignasi Barrera <[email protected]> wrote:

> Ah, right. The SoftLayer provider was modernized in our last 1.8 release.
> Could you try upgrading and share what you find out?
>
> Thanks!
>
> I.
> El 03/09/2014 19:40, "Jai M" <[email protected]> escribió:
>
> Thanks Ignasi for getting back on this. I was looking at the master branch
>> code to see if I can fix it. However the SoftLayerComputeServiceAdapter
>> class has been revamped now. I don not see the globalIdentifier being used
>> anymore.
>> I will try out with the latest code.
>>
>> Rgds
>> Jai
>>
>>
>> On Sun, Aug 31, 2014 at 7:32 AM, Ignasi Barrera <[email protected]> wrote:
>>
>>> Hi Jai,
>>>
>>> Thanks for sharing and figuring out the cause of your issue.
>>>
>>> Could you please open a JIRA issue [1] so we can track this?
>>>
>>> And could you send your changes as a pull request [2]? This way we'll be
>>> able to review and test it before merging. Patches and pull request are
>>> very welcome!
>>>
>>> Thanks!
>>>
>>> I.
>>>
>>> [1] https://issues.apache.org/jira/browse/JCLOUDS
>>> [2] http://wiki.apache.org/jclouds/How%20to%20Contribute
>>> El 28/08/2014 16:23, "Jai M" <[email protected]> escribió:
>>>
>>> Hi,
>>>>
>>>>    I am trying out the Softlayer adapter in 1.8.x release. While
>>>> creating a virtual guest with method createNodeWithGroupEncodedIntoName, I
>>>> get a validation error that the globalIdentifier is null. The problem was
>>>> that, the private images that I have in softlayer have globalIdentifier as
>>>> null. However they all have an Id.
>>>>
>>>> Why is the adapter code looking for the global identifier if the
>>>> private images can have it as null ?
>>>> Only after I changed the SoftLayerComputeServiceAdapter code to look
>>>> for id instead of globalIdentifier, I was able to proceed.
>>>>
>>>> Changed line 354 from
>>>>
>>>>  final String globalIdentifier = "" + image.getGlobalIdentifier();
>>>>
>>>> to
>>>>
>>>>  final String globalIdentifier = "" + image.getId();
>>>>
>>>> Let me know if this is good and if can be incorporated.
>>>>
>>>> Rgds
>>>> Jai
>>>>
>>>
>>

Reply via email to