Uh oh!
There was an error while loading. Please reload this page.
vmware: fix stopped VM volume migration - #4758
Conversation
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
| List<VirtualDisk> virtualDisks = vmMo.getVirtualDisks(); | ||
| List<String> managedDatastoreNames = getManagedDatastoreNamesFromVirtualDisks(virtualDisks); | ||
| // Preserve other disks of the VM |
There was a problem hiding this comment.
Thanks for these changes @shwstppr.
Can you please test destroy VM and expunge VM cases with VM having disks. Because this particular block is removed to address disk detachments in case of destroy VM. If those operations are not effected, this looks good to me.
There was a problem hiding this comment.
@harikrishna-patnala I've verified the destroy case and have seen any issue.
Will try to share API responses if needed
shwstppr
commented
Mar 9, 2021
@blueorangutan package |
blueorangutan
commented
Mar 9, 2021
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Mar 9, 2021
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2887 |
blueorangutan
commented
Mar 9, 2021
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 60 |
shwstppr
commented
Mar 9, 2021
@blueorangutan test centos7 vmware-67u3 |
blueorangutan
commented
Mar 9, 2021
@shwstppr a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
blueorangutan
commented
Mar 10, 2021
[S] Trillian test result (tid-64)
|
blueorangutan
commented
Mar 10, 2021
Trillian test result (tid-3683)
|
shwstppr
commented
Mar 10, 2021
|
yadvr
commented
Mar 11, 2021
@nvazquez@harikrishna-patnala can you review this? |
| if (!blankVmCreated) { | ||
| throw new Exception("Failed to create VM. vmName: " + vmInternalCSName); | ||
| } | ||
| deployAsIs = false; |
There was a problem hiding this comment.
Can you please include a log line explaining why not deploying-as-is in this case? Otherwise will look confusing as the StartCommand may receive deployAsIs = true and not honouring it
There was a problem hiding this comment.
@nvazquez I've added a log message. Please see if there needs to be any change in the text.
Also, I've found that systemvms use the same flow with the default systemvm template, i.e., register a blank VM and then start it. Though deployAsIs was already false in that case.
There was a problem hiding this comment.
Yes - as long a new system VM template is not registered it uses the non-deploy-as-is behaviour
There was a problem hiding this comment.
@shwstppr possible to consider user input through some strictness flag for deployAsIs, and then fallback to not deploying-as-is case if strictness flag is false? (so that user will be aware of it already)
There was a problem hiding this comment.
@shwstppr, a small concern here. Since we are starting the VM as not deployAsIs for a VM which is actually a deployAsIs, will there be any problem while applying vApp properties as it is. Can you please test that.
There was a problem hiding this comment.
Thanks for pointing it out @harikrishna-patnala . There seem an issue vApp appliances. Re-working on it.
blueorangutan
commented
Mar 26, 2021
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 264 |
shwstppr
commented
Mar 26, 2021
@blueorangutan test centos7 vmware-67u3 |
blueorangutan
commented
Mar 26, 2021
@shwstppr a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
blueorangutan
commented
Mar 26, 2021
Trillian test result (tid-271)
|
nvazquez
commented
Mar 29, 2021
@blueorangutan package |
blueorangutan
commented
Mar 29, 2021
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
shwstppr
commented
Apr 13, 2021
@blueorangutan test centos7 vmware-67u3 |
blueorangutan
commented
Apr 13, 2021
@shwstppr a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
blueorangutan
commented
Apr 14, 2021
Trillian test result (tid-435)
|
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
shwstppr
commented
Apr 15, 2021
@blueorangutan package |
blueorangutan
commented
Apr 15, 2021
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Apr 15, 2021
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 415 |
yadvr
commented
Apr 16, 2021
@blueorangutan test centos7 vmware-67u3 |
blueorangutan
commented
Apr 16, 2021
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
blueorangutan
commented
Apr 16, 2021
Trillian test result (tid-469)
|
yadvr
commented
Apr 21, 2021
@borisstoyanov@nvazquez are you lgtm on this? |
nvazquez
commented
Apr 21, 2021
Yes, LGTM after various rounds of review and manual testing |
vladimirpetrov
left a comment
There was a problem hiding this comment.
LGTM, tested with both standard template and multi-disk one.
shwstppr
commented
Apr 23, 2021
@blueorangutan package |
blueorangutan
commented
Apr 23, 2021
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Apr 23, 2021
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 455 |
shwstppr
commented
Apr 24, 2021
@blueorangutan test centos7 vmware-67u3 |
blueorangutan
commented
Apr 24, 2021
@shwstppr a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
blueorangutan
commented
Apr 24, 2021
Trillian test result (tid-514)
|
Description
Fixes#4674
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?