server: fix issue that vm guest os type is reset after updatetemplate#4377
Conversation
Steps to reproduce the issue (1) change vm guest os type (2) update vm template (guest os type is not changed) (3) vm guest os type is reset to guest os type of template.
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✖centos8 ✖debian. JID-2128 |
|
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2135 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2943)
|
|
@shwstppr i don't think these errors are relevant, can you comment? cc @rhtyd |
| ex.addProxyObject(String.valueOf(id), "templateId"); | ||
| throw ex; | ||
| } | ||
| long oldGuestOSId = template.getGuestOSId(); |
There was a problem hiding this comment.
moving before this line L#2096 template = _tmpltDao.createForUpdate(id); should be ok?
|
k8s smoke test failure is env related. It failed to get ISO in ready state cc @DaanHoogland |
Description
Steps to reproduce the issue
(1) change vm guest os type
(2) update vm template (guest os type is not changed)
(3) vm guest os type is reset to guest os type of template.
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?