Feature #3870
Implement resizing of VMs
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
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
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
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
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
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
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
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
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 almost 10 years ago
- Status changed from Assigned to Feedback
#2 Updated by Christos Stavrakakis over 9 years ago
- Status changed from Feedback to Closed