cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nvazquez <>
Subject [GitHub] cloudstack pull request #1727: CLOUDSTACK-9539: Support changing Service off...
Date Mon, 24 Oct 2016 16:06:29 GMT
GitHub user nvazquez opened a pull request:

    CLOUDSTACK-9539: Support changing Service offering for instance with VM Snapshots

    ## Actual behaviour
    CloudStack doesn't support changing service offering for vm instances which have vm snapshots,
they should be removed before changing service offering.
    ## Goal
    Extend actual behaviour by supporting changing service offering for vms which have vm
snapshots. In that case, previously taken snapshots (if reverted) should use previous service
offering, future snapshots should use the newest.
    ## Proposed solution:
    1. Adding `service_offering_id` column on `vm_snapshots` table: This way snapshot can
be reverted to original state even though service offering can be changed for vm instance.
    NOTE: Existing vm snapshots are populated on update script by:
    `UPDATE vm_snapshots s JOIN vm_instance v ON = s.vm_id SET s.service_offering_id
= v.service_offering_id;`
    2. New vm snapshots will use instance vm service offering id as `service_offering_id`
    3. Revert to vm snapshots should use vm snapshot's `service_offering_id` value.
    ## Example use case:
    - Deploy vm using service offering A
    - Take vm snapshot -> snap1 (service offering A)
    - Stop vm
    - Change vm service offering to B
    - Revert to VM snapshot snap 1
    - Start vm
    It is expected that vm has service offering A after last step

You can merge this pull request into a Git repository by running:

    $ git pull change-serv-offering

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1727
commit c7d51461250d5585a61cf8d12bf28a8380125d0a
Author: nvazquez <>
Date:   2016-10-14T15:23:38Z

    CLOUDSTACK-9539: Support changing Service offering for instance with VM Snapshots


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message