-
Notifications
You must be signed in to change notification settings - Fork 1.3k
server: fix issue that vm guest os type is reset after updatetemplate #4377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
shwstppr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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?