-
Notifications
You must be signed in to change notification settings - Fork 284
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
Add ignore_vdis
to VM.snapshot
method
#4563
Conversation
ignored_vdis
to VM.snampshot
methodignored_vdis
to VM.snapshot
method
e7df3b0
to
2860b07
Compare
2860b07
to
a027701
Compare
e535ace
to
d60fd22
Compare
d60fd22
to
87f4a3a
Compare
ignored_vdis
to VM.snapshot
methodignore_vdis
to VM.snapshot
method
87f4a3a
to
b78701d
Compare
Could you confirm that the |
I forgot a not in the condition indeed since I want to exclude all VBDs that are on a VDI present in |
b78701d
to
e4949ec
Compare
You might want to add tests because we are unlikely to use the new feature and therefore adding tests |
Yes, I'll look into the XAPi tests and some for this. I'll also link a PR here to our own repo of tests on real XCP-ng hosts. |
Hi! Any update on this? I'd like to write tests but as long as my PR can't build I can"t. Thanks. |
4b68aa8
to
d161ab5
Compare
I don't understand the error about pool secret. Can it be mocked? |
Hi, Can someone help me initiate a pool secret in my tests? IDK how to do it in a mocked context.
Thanks |
6cc994a
to
6cf4a7d
Compare
I'll let the PR in WIP until I'm done with my manual tests & wrote more tests in our test repo. |
6cf4a7d
to
3651ac0
Compare
772bba9
to
923cfe9
Compare
See: xapi-project/xen-api#4563 Signed-off-by: BenjiReis <[email protected]>
See: xapi-project/xen-api#4563 Signed-off-by: BenjiReis <[email protected]>
ce52822
to
870d3ba
Compare
See: xapi-project/xen-api#4563 Signed-off-by: BenjiReis <[email protected]>
07bb230
to
60ba28d
Compare
This allow to snapshot a VM and ignore some VDIs during the snapshot This can lead to a gain of time & space ignoring non essential data See: xapi-project#4551 Signed-off-by: BenjiReis <[email protected]>
60ba28d
to
948cdd8
Compare
Sorry for the ping, I misscliked ^^'. I re-ran the tests on a host after latest modifcations, test is successful + no XAPI objects leaked. 👍 |
I think this is good to go. Thanks for going trough the many iterations for something that looked quite simple conceptually. |
No problem, I learned how XAPI unit tests work which is a good thing for future PR. :) |
See: xapi-project/xen-api#4563 Signed-off-by: BenjiReis <[email protected]>
See: xapi-project/xen-api#4563 Signed-off-by: BenjiReis <[email protected]>
See: xapi-project/xen-api#4563 Signed-off-by: BenjiReis <[email protected]>
See: xapi-project/xen-api#4563 Signed-off-by: BenjiReis <[email protected]>
See: xapi-project/xen-api#4563 Signed-off-by: BenjiReis <[email protected]>
See: xapi-project/xen-api#4563 Signed-off-by: BenjiReis <[email protected]>
Hey @robhoes I can't find the modification in the generated XAPI doc (should be there https://xapi-project.github.io/xen-api/releases/next.html right?) Am I missing something? |
The API changes weren't properly tracked for some time. Now it's quite better, but not quite enough for this case (parameter versioning is not properly tracked yet) It should have appeared in https://xapi-project.github.io/xen-api/releases/21.4.0.html |
This allow to snapshot a VM and ignore some VDIs during the snapshot
This can lead to a gain of time & space ignoring non essential data
See: #4551
Signed-off-by: BenjiReis [email protected]