Skip to content

restore vm does not attach back data disks  #4462

Closed

Description

@borisstoyanov
ISSUE TYPE
  • Bug Report
COMPONENT NAME
API
CLOUDSTACK VERSION
4.15
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

data disks are left detached

STEPS TO REPRODUCE
Steps: 1. Create a VM with at least 1 volume
2. Destroy the VM without expunging anything
3. Restore the VM

Observe the VM is being restored with it's root disk only, the data disk(s) are being left aside
EXPECTED RESULTS
One should expect if a vm is restored, then it should end up in the same state as when it was deleted 
ACTUAL RESULTS
VM has only root disk no data disks attached

Activity

  1. DaanHoogland commented on Nov 11, 2020

    @DaanHoogland
    Contributor

    @borisstoyanov any idea if this is a regression or a 'missing feature'?

  2. weizhouapache commented on Nov 11, 2020

    @weizhouapache
    Member

    @borisstoyanov
    I tested with 4.14 and cannot reproduce the issue.
    what env do you use ?

  3. DaanHoogland commented on Nov 11, 2020

    @DaanHoogland
    Contributor

    @weizhouapache that would answer my question, @borisstoyanov reported 4.15 (master)

  4. borisstoyanov commented on Nov 13, 2020

    @borisstoyanov
    ContributorAuthor

    Sounds to me as a bug to the restore functionality. Further if @weizhouapache cannot reproduce in 4.14 maybe it's a regerssion, since I've tested with latest Master.

  5. yadvr commented on Nov 18, 2020

    @yadvr
    Member
  6. added this to the 4.15.0.0 milestone on Nov 18, 2020
  7. weizhouapache commented on Nov 19, 2020

    @weizhouapache
    Member

    Sounds to me as a bug to the restore functionality. Further if @weizhouapache cannot reproduce in 4.14 maybe it's a regerssion, since I've tested with latest Master.

    @borisstoyanov might it be caused by #4307 ?
    it has huge changes

  8. harikrishna-patnala commented on Nov 19, 2020

    @harikrishna-patnala
    Member

    Seems like a regression to me based on the changes made in destroy VM workflow in VMware. I'll verify and come back with a fix.

  9. 2 remaining items

  10. andrijapanicsb commented on Nov 26, 2020

    @andrijapanicsb
    Contributor

    Was this tested to NOT be happening on VMware + 4.14? - so that we can see something is / is not different now in 4.15.

    I also do recall that when VM is destroyed that disks are detached - this is an old behaviour for ages.

  11. andrijapanicsb commented on Nov 26, 2020

    @andrijapanicsb
    Contributor

    I guess I can answer my own questions - in 4.14/vmware disk are NOT detached on VM destroy, but they are on expunge.

    From the functional point of view, that is LGTM - you are reverting back to the old behaviour, as in 4.14
    From the PR4307 (and that is a complex one....) point of view - can you guarantee that this revert doesn't break anything now (is the gain worth the risk - this is the question)?

  12. harikrishna-patnala commented on Nov 26, 2020

    @harikrishna-patnala
    Member

    This will not harm or break anything as we are not reverting the detach operations but moving the detach operations from destroy workflow to expunge workflow. I'll kick off test matrix on the PR.

  13. modified the milestones: 4.15.0.0, 4.15.1.0 on Dec 3, 2020
  14. modified the milestones: 4.15.1.0, 4.16.0.0 on Mar 24, 2021
  15. added a commit that references this issue on Apr 15, 2021
    f00b5fc
  16. yadvr commented on Apr 15, 2021

    @yadvr
    Member

    Fixed #4493

  17. modified the milestones: 4.16.0.0, 4.15.1.0 on Apr 15, 2021
  18. yadvr commented on Apr 15, 2021

    @yadvr
    Member

    New improvement issue #4902

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions