-
Notifications
You must be signed in to change notification settings - Fork 262
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/vm.migrate): call VM.assert_can_migrate before #6245
Conversation
21727dc
to
bfc7432
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.
LGTM, remove draft status and I'll merge.
It's not clear to me functionally speaking. Are we displaying the result of assert can migrate in the UI with a modal and allowing us to force anyway? |
@olivierlambert The result of the asset will be displayed as a migrate error. No, this will not display a modal and allow bypassing, it was not part of the spec. In what case bypassing the assert is relevant? When can it be wrong? From the doc, it appears to be only checking the lisence. |
The spec wasn't complete enough, I agree (it wasn't really a spec TBH). But this might have huge consequences if we push this without anyway to bypass it if needed, without knowing anything about it. Or at least, we can't merge something without more understanding on what it means (for the user functional perspective). We should at least get someone to test this on the lab in various cases (not necessarily from XO team BTW). |
Ok, I propose adding this change in the server with a flag to bypass it and adding a way to bypass it in the UI in an other PR. Is it good for you? |
Okay let's do this. Note that "assert can migrate" will check a lot of things on XAPI's side, that's why I'm a bit concerned about the consequences (especially if we do not get the reason directly in the UI, that will raise confusion amongst our users) |
Co-authored-by: Julien Fontanet <julien.fontanet@isonoe.net>
cc9118d
to
a6241f0
Compare
Fixes #5301
Check list
Fixes #007
orSee xoa-support#42
)CHANGELOG.unreleased.md
:${name} v${new version}
)cron/parse.spec.js
)xo-server
API changes, the corresponding test has been added to/updated onxo-server-test
Process
WiP:
(Work in Progress) if not ready to be mergedFrom the Four Agreements: