SoftLayer donates vSphere hosts! -- RE: VMware ESXi

159 views
Skip to first unread message

Adrian Cole

unread,
Aug 7, 2012, 1:08:58 PM8/7/12
to jclou...@googlegroups.com
Hi, Andrea.

SoftLayer have kindly offered jclouds 2 host boxes (metal), ips,
storage, and licenses. We can now run a public lab of vSphere to
facilitate this development!

Cooler still, they have an api to provision it, which should be easy
enough to extend our current "softlayer" api to support. There are
details below.

Do you mind having a swing at updating the API sometime this week and
trying it out? I can give you the credentials.

Cheers,
-A

technical details:
----------------------
Q:

How do I use the API to provision a host running ESXi, and what are
the vSphere credentials once I have it?

A:

You can order the servers with the json below and a call to
SoftLayer_Product_Order::placeOrder. From what I understand the VMware
API should be available as soon as the server is provisioned and the
credentials should match the ones in the portal for the main vmware
user. Your normal testing account can be used.

This will order Dual Xeon 5310 – 24GB RAM

{
"parameters": [{
"complexType": "SoftLayer_Container_Product_Order_Hardware_Server",
"packageId": 13,
"location": "FIRST_AVAILABLE",
"quantity": 1,
"virtualGuests": [{"hostname": "vmware", "domain": "example.com"}],
"prices": [
{"id": 723},
{"id": 14048},
{"id": 883},
{"id": 1267},
{"id": 126},
{"id": 272},
{"id": 55},
{"id": 57},
{"id": 58},
{"id": 876},
{"id": 21},
{"id": 31},
{"id": 51},
{"id": 50},
{"id": 420},
{"id": 418},
{"id": 906}
]
}]
}


Q:

What's the impact of deleting and recreating this order (if any)?

A:

None, however when you cancel, be sure to choose the option to cancel
it immediately as otherwise it will remain online until the accounts
next billing cycle is up.

You can also use verifyOrder in tests that don’t actually require a
server to provision.

On Mon, Jul 30, 2012 at 9:48 AM, Andrea Turli <andrea...@gmail.com> wrote:
>
> Hi all,
>
> I've submitted the first Pull Request[1] to jclouds/jclouds about the
> development of jclouds-vsphere.
>
> jclouds-vsphere assumes that you have a running vsphere 5 installation
> with 1 vCenter Server and 1 or more ESXi 5.
> Moreover your installation should provide at least 1 ubuntu 12.04
> server vmware template, which is the default jclouds template.
>
> If you are interested, please feel free to contribute with ideas/comments.
>
> Thanks,
> Andrea
>
> [1]: https://github.com/jclouds/jclouds/pull/761
>
> On Mon, Jul 30, 2012 at 9:45 AM, Andrea Turli <andrea...@gmail.com> wrote:
> > This sounds like a great project!
> >
> > Particularly Boxgrinder Rest [1] seems to be really useful for our purposes.
> >
> > Initially we can use this external component to create images offline,
> > but it would be great to plug boxgrinder in vsphere pipeline.
> >
> > wdyt?
> >
> > Andrea
> >
> > [1]: https://github.com/boxgrinder/boxgrinder-rest
>
> --
> You received this message because you are subscribed to the Google Groups "jclouds-dev" group.
> To post to this group, send email to jclou...@googlegroups.com.
> To unsubscribe from this group, send email to jclouds-dev...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jclouds-dev?hl=en.
>

Andrea Turli

unread,
Aug 7, 2012, 2:36:46 PM8/7/12
to jclou...@googlegroups.com

cool I will give it a try tomorrow.

Thanks Softlayer!

Thanks Adrian!

SLphil

unread,
Aug 7, 2012, 6:26:17 PM8/7/12
to jclou...@googlegroups.com
Happy to help!

I have altered the order json to ensure the server will be provisioned on the same VLAN as the VM's IPs...and to remove some bloat:


{
    "parameters": [{
        "complexType": "SoftLayer_Container_Product_Order_Hardware_Server",
        "packageId": 13,
        "location": 18171,

        "quantity": 1,
        "virtualGuests": [
            {
                "hostname": "vmware",
                "domain": "example.com",
                "primaryNetworkComponent": {
                    "networkVlan": {"id": 1384}

                }
            }
        ],
        "prices": [
            {"id": 723},
            {"id": 14048},
            {"id": 883},
            {"id": 1267},
            {"id": 126},
            {"id": 272},
            {"id": 55},
            {"id": 57},
            {"id": 58},
            {"id": 876},
            {"id": 21},
            {"id": 51},

            {"id": 420},
            {"id": 418},
            {"id": 906}
        ]
    }]
}

-Phil

Andrew Phillips

unread,
Aug 7, 2012, 8:08:31 PM8/7/12
to jclou...@googlegroups.com
Thanks, SoftLayer!

ap

Andrea Turli

unread,
Aug 9, 2012, 1:47:55 PM8/9/12
to pjac...@softlayer.com, jclou...@googlegroups.com
Hi Phil,

I tried to place the order with the json you provided with curl (just
to practice initially)

curl -v -X POST
https://user:pass...@api.softlayer.com/rest/v3/SoftLayer_Product_Order/PlaceOrder.json
-d @order

where order is a file that contains the json ball you described before.

Unfortunately I get this error back

{"error":"Function (\"createObject\") is not a valid method for this service."}

Firstly, what am I doing worng?

Is it possible to place this order from the UI at https://manage.softlayer.com ?

Thanks for your help,
Andrea
> To view this discussion on the web visit
> https://groups.google.com/d/msg/jclouds-dev/-/ya83iVsoEJoJ.

SLphil

unread,
Aug 9, 2012, 3:16:35 PM8/9/12
to jclou...@googlegroups.com, pjac...@softlayer.com
Andrea,

The API is a bit nitpicky on case :) ...try "placeOrder.json". Normally a POST is synonymous to the method createObject, except in the case where a function expecting a POST is called. The API is not recgonizing PlaceOrder as a valid method, which is why it is throwing that specific error.

Placing an order through the portal is possible. I believe Adrian has the login information.

-Phil


On Thursday, August 9, 2012 12:47:55 PM UTC-5, Andrea wrote:
Hi Phil,

I tried to place the order with the json you provided with curl (just
to practice initially)

curl -v -X POST
https://user:password@api.softlayer.com/rest/v3/SoftLayer_Product_Order/PlaceOrder.json
-d
@order

Andrea Turli

unread,
Aug 9, 2012, 5:54:39 PM8/9/12
to jclou...@googlegroups.com

thanks Phil,

unfortunately I have the same error with placeOrder.json

Andrea

SLphil

unread,
Aug 9, 2012, 6:03:12 PM8/9/12
to jclou...@googlegroups.com
Andrea,

Try without explicitly declaring POST:
curl -v -d @order.json "https://user:k...@api.softlayer.com/rest/v3/SoftLayer_Product_Order/placeOrder.json"

-Phil

Andrea Turli

unread,
Aug 10, 2012, 4:00:38 AM8/10/12
to jclou...@googlegroups.com
Phil,

> Try without explicitly declaring POST:
> curl -v -d @order.json
> "https://user:k...@api.softlayer.com/rest/v3/SoftLayer_Product_Order/placeOrder.json"

now I get a different errro:
{"error":"Access Denied"}

maybe before this request I've to prepare the environment with another
call. if yes, which one?

Thanks you for your support,
Andrea

Andrea Turli

unread,
Aug 10, 2012, 4:20:57 AM8/10/12
to jclou...@googlegroups.com
I'm currently trying to use the UI and I noticed that only ESXi 4.1 is
available.
Do you think it is possible to upgrade to 5.0 ?

Thanks,
Andrea

Adrian Cole

unread,
Aug 10, 2012, 10:17:11 AM8/10/12
to jclou...@googlegroups.com

Hi, Andrea.

I recommend sending the verbose output and the data file directly to Phil's private email address, just to help him move things along.  Maybe there's an account related thing.

-A

SLphil

unread,
Aug 10, 2012, 11:06:28 AM8/10/12
to jclou...@googlegroups.com

This would be best...


We don't have an ETA on provisioning version 5 yet.

-Phil


On Friday, August 10, 2012 9:17:11 AM UTC-5, Adrian Cole wrote:

Hi, Andrea.

I recommend sending the verbose output and the data file directly to Phil's private email address, just to help him move things along.  Maybe there's an account related thing.

-A

On Aug 10, 2012 1:01 AM, "Andrea Turli" <andrea...@gmail.com> wrote:
Phil,

> Try without explicitly declaring POST:
> curl -v -d @order.json

Andrea

unread,
Aug 17, 2012, 1:43:32 PM8/17/12
to jclou...@googlegroups.com
A new version of the jclouds-vsphere (tested against SoftLayer) is available

https://github.com/jclouds/jclouds/pull/767

Please feel free to review/comment this code and let us know if you are interested in running the same LiveTests against SoftLayer.

Andrea

Adrian Cole

unread,
Aug 18, 2012, 3:16:13 PM8/18/12
to jclou...@googlegroups.com
Hi, Andrea.

Good start.

One thing we need to discuss is usage of the VMware SDK. Granted,
this is higher quality than vijava. However, it is not licensed the
same. We need to either make a licensing-oriented decision or discuss
an alternate approach to invoke the SOAP calls needed to perform the
commands in the adapter.

-A

On Fri, Aug 17, 2012 at 10:43 AM, Andrea <andrea...@gmail.com> wrote:
> A new version of the jclouds-vsphere (tested against SoftLayer) is available
>
> https://github.com/jclouds/jclouds/pull/767
>
> Please feel free to review/comment this code and let us know if you are
> interested in running the same LiveTests against SoftLayer.
>
> Andrea
>
> On Friday, August 10, 2012 5:06:28 PM UTC+2, SLphil wrote:
>>
>>
>> This would be best...
>>
>>
>> We don't have an ETA on provisioning version 5 yet.
>>
>> -Phil
>>
>> On Friday, August 10, 2012 9:17:11 AM UTC-5, Adrian Cole wrote:
>>>
>>> Hi, Andrea.
>>>
>>> I recommend sending the verbose output and the data file directly to
>>> Phil's private email address, just to help him move things along. Maybe
>>> there's an account related thing.
>>>
>>> -A
>>>
>>> On Aug 10, 2012 1:01 AM, "Andrea Turli" <andrea...@gmail.com> wrote:
>>>>
>>>> Phil,
>>>>
>>>> > Try without explicitly declaring POST:
>>>> > curl -v -d @order.json
>>>> >
>>>> > "https://user:k...@api.softlayer.com/rest/v3/SoftLayer_Product_Order/placeOrder.json"
>>>>
>>>> now I get a different errro:
>>>> {"error":"Access Denied"}
>>>>
>>>> maybe before this request I've to prepare the environment with another
>>>> call. if yes, which one?
>>>>
>>>> Thanks you for your support,
>>>> Andrea
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "jclouds-dev" group.
>>>> To post to this group, send email to jclou...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> jclouds-dev...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/jclouds-dev?hl=en.
>>>>
> --
> You received this message because you are subscribed to the Google Groups
> "jclouds-dev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/jclouds-dev/-/E9TRQdXbKG4J.
Reply all
Reply to author
Forward
0 new messages