Feature #3870

Implement resizing of VMs

Added by Christos Stavrakakis over 7 years ago. Updated almost 7 years ago.

Status:Closed Start date:05/29/2013
Priority:Medium Due date:
Assignee:Christos Stavrakakis % Done:

0%

Category:Cyclades API Spent time: -
Target version:0.15

Description

Implement 'resize' action of servers API, in order to be able to resize a server.
A server can only be resized to a flavor that has the same disk size and disk template.
Also a server can only be resized if it is not running (operstate="STOPPED").

Associated revisions

Revision d4947b08
Added by Christos Stavrakakis over 7 years ago

gtools: Make eventd send beparams and result

Update 'snf-ganeti-eventd' daemon to send the requested beparams in
case of 'OP_INSTANCE_SET_PARAMS' opcodes. Also, if the opcode is
in success state, send the 'result' attribute of Ganeti jobs.

Refs #3870

Revision 83320b4f
Added by Christos Stavrakakis over 7 years ago

cyclades: Implement resize action API call

Implement resize API call, which is a POST at
/servers/<server_id>/action' with body: {"resize": {"flavorRef": <flavor_id>}}

The resize can only be performed if the disk size and disk template of
the new flavor are the same with the old one, and if the VM is in
STOPPED status.

Also add 'RESIZE' operstate to VirtualMachine

Refs #3870

Revision aa1da928
Added by Christos Stavrakakis over 7 years ago

cyclades: Add backend function for resizing vm

Add 'resize_instance' backend function for resizing a vm. This command
issues an OP_INSTANCE_MODIFY job with the specified beparams, which
currently are vcpus, minmem and maxmem.

Refs #3870

Revision 94a678d3
Added by Christos Stavrakakis over 7 years ago

cyclades: Handle Ganeti msgs for resized VMs

Handle 'OP_INSTANCE_SET_PARAMS' notifications from Ganeti that have
'beparams' attribute, which corresponds to resized VMs. In such
case, the corresponding flavor is found an the VM in DB is updated to
have this flavor.

Refs #3870

Revision ca4d59e3
Added by Christos Stavrakakis over 7 years ago

cyclades: Handle Ganeti msgs for resized VMs

Handle 'OP_INSTANCE_SET_PARAMS' notifications from Ganeti that have
'beparams' attribute, which corresponds to resized VMs. In such
case, the corresponding flavor is found an the VM in DB is updated to
have this flavor.

Refs #3870

Revision 12ee1ad8
Added by Christos Stavrakakis over 7 years ago

gtools: Make eventd send beparams and result

Update 'snf-ganeti-eventd' daemon to send the requested beparams in
case of 'OP_INSTANCE_SET_PARAMS' opcodes. Also, if the opcode is
in success state, send the 'result' attribute of Ganeti jobs.

Refs #3870

Revision 1af851fd
Added by Christos Stavrakakis over 7 years ago

cyclades: Implement resize action API call

Implement resize API call, which is a POST at
/servers/<server_id>/action' with body: {"resize": {"flavorRef": <flavor_id>}}

The resize can only be performed if the disk size and disk template of
the new flavor are the same with the old one, and if the VM is in
STOPPED status.

Also add 'RESIZE' operstate to VirtualMachine

Refs #3870

Revision 2cd3f389
Added by Christos Stavrakakis over 7 years ago

cyclades: Add backend function for resizing vm

Add 'resize_instance' backend function for resizing a vm. This command
issues an OP_INSTANCE_MODIFY job with the specified beparams, which
currently are vcpus, minmem and maxmem.

Refs #3870

History

#1 Updated by Christos Stavrakakis over 7 years ago

  • Status changed from Assigned to Feedback

#2 Updated by Christos Stavrakakis almost 7 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF