You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by Florin Ardelian <f....@gmail.com> on 2012/11/19 18:33:16 UTC

What is the feature for selecting CPU and RAM in a range

Hi guys,

I have defined a single hardware profile with cpu (1..48) and memory
(256..192*1024). What feature should I enable in my class so the user can
select the number of CPUs and the amount of RAM he wants?

Thanks,
Florin

-- 
+40-740-903838

Re: What is the feature for selecting CPU and RAM in a range

Posted by Florin Ardelian <f....@gmail.com>.
Strange, I didn't see the sliders yesterday, but now they appear. Case
closed, thanks for the help.



On Tue, Nov 20, 2012 at 2:23 AM, David Lutterkort <lu...@redhat.com> wrote:

> On Mon, 2012-11-19 at 19:33 +0200, Florin Ardelian wrote:
> > I have defined a single hardware profile with cpu (1..48) and memory
> > (256..192*1024). What feature should I enable in my class so the user can
> > select the number of CPUs and the amount of RAM he wants?
>
> There's no special feature that needs to be set - if your HWP's
> advertise ranges or enums for certain parameters, clients know they can
> override these when they create an instance. You will have to have code
> in the create_instance method of your driver to make sure you process
> those overrides.
>
> Have a look at create_instance in the mock driver to see the details;
> the most interesting bit for this is the InstanceProfile that gets
> created. An InstanceProfile is a HWP + any changes the user made for
> that specific instance.
>
> David
>
>
>


-- 
+40-740-903838

Re: What is the feature for selecting CPU and RAM in a range

Posted by David Lutterkort <lu...@redhat.com>.
On Mon, 2012-11-19 at 19:33 +0200, Florin Ardelian wrote:
> I have defined a single hardware profile with cpu (1..48) and memory
> (256..192*1024). What feature should I enable in my class so the user can
> select the number of CPUs and the amount of RAM he wants?

There's no special feature that needs to be set - if your HWP's
advertise ranges or enums for certain parameters, clients know they can
override these when they create an instance. You will have to have code
in the create_instance method of your driver to make sure you process
those overrides.

Have a look at create_instance in the mock driver to see the details;
the most interesting bit for this is the InstanceProfile that gets
created. An InstanceProfile is a HWP + any changes the user made for
that specific instance.

David