-
Notifications
You must be signed in to change notification settings - Fork 270
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
feat(xo-server): implement rolling pool reboot #7242
Conversation
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.
Since we are very close to the release, what do you think if for the rolling Pool Reboot
we just copy/paste the necessary code, and think about how to mutualise the code right after the release?
if possible, I would like to try the refactoring, the rolling pool update method is already complex enough . If we're not confident on the code quality , we can still fallback to an additionnal flag on wednesday |
I would love the logic to be mutualized with |
how do you see things ? since the code logic seems quite different , I think I need more time to think this out. Each Vm will be handled exactly twice in smartreboot ( suspend, then resume), but an unlucky VM can be migrated a lot of times in case of rolling pull reboot . Also the error cases are different (allowed operation Vs local storage) I think both feature should be blended : in case of rolling pool update/reboot , we could fall back to suspend for example |
419279e
to
a94dabd
Compare
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.
Not tested.
Don't forget to rebase on master to get the "Rolling pool update" bug fix. // host.$resident_VMs is outdated and returns resident VMs before the host.evacuate.
// this.getField is used in order not to get cached data.
const residentVmRefs = await this.getField('host', host.$ref, 'resident_VMs') |
001e56f
to
da06a4f
Compare
test done : rolling reboot et rolling pull update works |
28aa881
to
45844b7
Compare
97ef0e8
to
e0ce163
Compare
This makes it more clear that it is called only once and not one time per host or VM.
e0ce163
to
e5dde6f
Compare
Description
Short explanation of this PR (feel free to re-use commit message)
Checklist
Fixes #007
,See xoa-support#42
,See https://...
)Introduced by
CHANGELOG.unreleased.md