Skip to content
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

CA-390277: Fix cross-pool migration from CH8.2CU1 to XS8 when using xe #5717

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

psafont
Copy link
Member

@psafont psafont commented Jun 20, 2024

Host records have changed between CH8.2CU1 and XS8, this means that the
records produced from an new host cannot be serialized by this code.
Instead of making the remote host filter records, now the client tries
to fetch the correct reference, and if it can't, fetches all references
and fetches fields to find it.

Records from Networks, PBDs and SRs are still used.

I've manually verified that the cross-pool migrations now work

@psafont psafont force-pushed the yangtze-norecord-mig branch 2 times, most recently from 336a029 to 96882d1 Compare June 20, 2024 13:26
ocaml/xapi-cli-server/cli_operations.ml Outdated Show resolved Hide resolved
ocaml/xapi-cli-server/cli_operations.ml Outdated Show resolved Hide resolved
@psafont psafont force-pushed the yangtze-norecord-mig branch from c7ad632 to 260b9f8 Compare June 25, 2024 09:45
ocaml/xapi-cli-server/cli_operations.ml Outdated Show resolved Hide resolved
Host records have changed between CH8.2CU1 and XS8, this means that the
records produced from an new host cannot be serialized by this code.
Instead of making the remote host filter records, now the client tries
to fetch the correct reference, and if it can't, fetches all references
and fetches fields to find it.

Records from Networks, PBDs and SRs are still used.

Signed-off-by: Pau Ruiz Safont <[email protected]>
@psafont psafont force-pushed the yangtze-norecord-mig branch from 6327abd to 8894e1b Compare July 4, 2024 13:10
@psafont psafont requested a review from lindig July 4, 2024 13:11
@psafont
Copy link
Member Author

psafont commented Jul 4, 2024

I've reworked the approach to be more minimalistic in change. Now records for Networks, PBDs and SRs are still used, but this allows for fewer roundtrips, and cross-pool migrations to XS8 hosts work.

@Vincent-lau
Copy link
Contributor

Vincent-lau commented Jul 4, 2024

so this and #5773 are two different PRs, why is there two?

@psafont
Copy link
Member Author

psafont commented Jul 4, 2024

On master, we're adding a new call. This calls needs to be available on the remote server. This means that if we add this call here for Yangtze, cross-pool migration will only be compatible with new enough hosts. We want the migration to be compatible with as many versions of xapi as possible

@psafont psafont marked this pull request as draft July 5, 2024 08:56
@psafont
Copy link
Member Author

psafont commented Jul 5, 2024

Converting to draft to avoid premature merging, we need to run some automated tests on this

@psafont psafont marked this pull request as ready for review July 17, 2024 13:47
@psafont psafont merged commit b37dade into xapi-project:1.249-lcm Jul 17, 2024
5 checks passed
@psafont psafont deleted the yangtze-norecord-mig branch July 17, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants