Feature #1772

VMs can be resized (memory & CPU) if they are not running

Added by Ruben S. Montero over 8 years ago. Updated over 8 years ago.

Status:ClosedStart date:02/20/2013
Priority:NormalDue date:
Assignee:Ruben S. Montero% Done:

0%

Category:-
Target version:Release 4.0
Resolution:fixed Pull request:

Description

This is for offline resizing a VM, i.e. changing the MEMORY and CPU attributes. There are two different situations:
  • VM is not allocated to any host (HOLD, PENDING, STOP, FAILED). This way a resume or resubmit action will use the new values.
  • VM is allocated (POWEROFF). In this case additional checks for host capacity may be needed.

Note that changing the values in PENDING or POWEROFF may lead to the scheduler using the old values (VM capacity or host usage) if the change takes place during the scheduling phase.

Before changing any value quotas need to be checked.


Related issues

Related to Request #1705: Resizable images Closed 12/27/2012
Related to Feature #3395: VM capacity resize for running VMs Closed 12/05/2014

Associated revisions

Revision dcfa0a17
Added by Ruben S. Montero over 8 years ago

feature #1772:Resize VM capacity (cpu, memory and vcpu) offline

Revision 4be2e1e9
Added by Carlos Martín over 8 years ago

Feature #1772: Minor edits

Revision bf60dc73
Added by Carlos Martín over 8 years ago

Feature #1772: Fix bug in RM, update VM owner/group quotas, not the caller's quotas.

Also take into account that we can delete users/groups and have orphan VMs

Revision 6d8b31d5
Added by Carlos Martín over 8 years ago

Feature #1772: Resize capacity enforce is mandatory for everyone, except for oneadmin

Revision 8f5c2b3f
Added by Carlos Martín over 8 years ago

Feature #1772: Save updated quotas to the DB

Revision 9e9f40d7
Added by Carlos Martín over 8 years ago

Feature #1772: Additional sanity checks for new capacity.

Even if it was not updated, VCPU was inserted with value "0",
causing the next deployment to fail

Revision 5b2750d4
Added by Carlos Martín over 8 years ago

Feature #1772: Add vm resize method to Java OCA

Revision e1e4eb34
Added by Carlos Martín over 8 years ago

Feature #1772: Change the one.vm.resize method to accept a template, instead of individual parameters

History

#1 Updated by Miloš Kozák over 8 years ago

I would like to add ability to resize HDD as well. Do you think is that possible? Somewhere here I found an issue for hdd resizing..

#2 Updated by Ruben S. Montero over 8 years ago

Yes there is a separate issue for image re-sizing...

#3 Updated by Ruben S. Montero over 8 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

#4 Updated by Carlos Martín over 6 years ago

  • Related to Feature #3395: VM capacity resize for running VMs added

Also available in: Atom PDF