Hi All
I am writing SoftLayer driver to support creating block storage in Libcloud. I
am half way writing it and having issue in figuring out the price id for
storage space.
The pseudocode is as below:
for item in self.connection.request('SoftLayer_Product_Package', 'getItems',
id=240).object:
if item['description'] == '20 GB Storage Space':
for each in item['prices']:
print each
There are numerous price ids as seen from the output of the above code.
Which price id to select?
I tried using the price id "46649" obtained from below code.
{'id' : item['prices'][0]['id'] for item in items if item['description'] == '20
GB Storage Space'}
The price_id obtained is invalid as evident from the below error.
libcloud.common.softlayer.SoftLayerException: <LibcloudError in None
'SoftLayer_Exception_Order_MissingCategory: Order is missing the following
category: Storage Space.'>
Any pointer in this regard will be appreciated.
Thanks
Janki
________________________________________
From: Janki Chhatbar
Sent: Thursday, May 5, 2016 11:58 AM
To: [email protected]; [email protected]
Subject: RE: [dev] support for SoftLayer Block storage
Hi Tomaz
Thanks for replying.
Currently it is just an idea in my mind. I don't have any base code. Will look
into it and then submit a PR.
I am very new to libcloud and any help will be very much appreciated.
Thanks
Janki
-----Original Message-----
From: Tomaz Muraus [mailto:[email protected]]
Sent: Thursday, May 05, 2016 11:54 AM
To: dev
Subject: Re: [dev] support for SoftLayer Block storage
Hello,
That would be great!
Feel free to submit a pull request with what you have right now and we will
work from there :)
On Thu, May 5, 2016 at 2:09 PM, Janki Chhatbar < [email protected]>
wrote:
> Hi All
>
> Greetings for the day!
>
> I am Janki working on Softlayer. I noticed that currently there is no
> support for SoftLayer Block storage in Libcloud [1].
>
> I would like to add this or contribute to it if the work is under progress.
>
> Waiting for opinions on adding this feature as well.
>
> Thanking you
> Janki
>
> [1].
> http://libcloud.readthedocs.io/en/latest/supported_providers.html#supp
> orted-methods-block-storage
>
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential information which
> is the property of Persistent Systems Ltd. It is intended only for the
> use of the individual or entity to which it is addressed. If you are
> not the intended recipient, you are not authorized to read, retain,
> copy, print, distribute or use this message. If you have received this
> communication in error, please notify the sender and delete all copies of
> this message.
> Persistent Systems Ltd. does not accept any liability for virus
> infected mails.
>
>
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Persistent Systems Ltd. It is intended only for the use of the
individual or entity to which it is addressed. If you are not the intended
recipient, you are not authorized to read, retain, copy, print, distribute or
use this message. If you have received this communication in error, please
notify the sender and delete all copies of this message. Persistent Systems
Ltd. does not accept any liability for virus infected mails.