Bug 855960 - [REST-API]: There is no way to define number of pre-started vms creating new VM pool
Summary: [REST-API]: There is no way to define number of pre-started vms creating new ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact: Barak Dagan
URL:
Whiteboard: virt
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-10 18:41 UTC by Oded Ramraz
Modified: 2014-07-13 23:18 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-19 13:46:29 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Oded Ramraz 2012-09-10 18:41:04 UTC
Description of problem:

I didn't find a way to define number of VM's when creating a new VM pool. 
This field is quite essential for VM pools creation. 

\


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:


RHEVM shell (connected)]# help create vmpool  

USAGE
  
  create <type> [base identifiers] [attribute options]
  
DESCRIPTION
  
  Create a new object with type vmpool. See 'help create' for generic
  help on creating objects.
  
ATTRIBUTE OPTIONS
  
  The following options are available for objects with type vmpool:
  
    * --cluster-id|name: string
    * --template-id|name: string
    * --name: string
    * [--expect: 201-created]
    * [--correlation_id: anystring]
  
    Note: collection based arguments syntax is:
    --<type>.<collection-obj>.<collection-member> "<collection-item>.<collection-item-property>=value,..."
  
    e.g:
  
    --power_management-options-option "option.name=n1,option.value=v1"
    --power_management-options-option "option.name=n2,option.value=v2"
  
RETURN VALUES
  
    * 002 (COMMAND_ERROR)
    * 003 (INTERRUPTED)
    * 011 (NOT_FOUND)
    * 000 (OK)
    * 010 (REMOTE_ERROR)
    * 001 (SYNTAX_ERROR)
    * 004 (UNKNOWN_ERROR)
  
## from the detailed documentation : 

https://fire-vdc.qa.lab.tlv.redhat.com/docs/en-US/html/CLI_Guide/vmpool.html

Comment 1 Oded Ramraz 2012-09-10 18:54:19 UTC
What about prestarted VM's in pool ? It is missing as well.

Comment 2 Michael Pasternak 2012-09-11 04:59:05 UTC
size treated by #854272

Comment 3 Itamar Heim 2012-09-11 05:30:27 UTC
you can define number of pre-started in gui as well.
actually (and i hope we have a backend validation rather than just gui preventing this), you can't ever set more pre-started VMs then those that already exist in the pool (for now).

so only question for now is if you can set it for an already created pool

Comment 4 Michael Pasternak 2012-09-11 05:50:56 UTC
yes, but manually using --prestarted_vms option

however, RSDL defined params are:

    * [--cluster-id|name: string]
    * [--template-id|name: string]
    * [--name: string]
    * [--correlation_id: anystring]

i.e this param should be added in RSDL vmpool.update() as well

Comment 5 Itamar Heim 2013-05-19 13:46:29 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.


Note You need to log in before you can comment on or make changes to this bug.