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

Tests: Check custom storage volume snapshots #139

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

roosterfish
Copy link
Contributor

This now tests if custom volumes can be snapshotted, copied and transferred both locally and using a remote as well as between the same and different storage drivers.

Follow up on #138.

@roosterfish roosterfish changed the title Storage: Add custom volume snapshot tests Tests: Check custom storage volume snapshots Apr 11, 2024
@tomponline
Copy link
Member

@markylaing any idea on this error?

https://github.com/canonical/lxd-ci/actions/runs/8646104028/job/23704697827?pr=139

+ lxc remote add localhost eyJjbGllbnRfbmFtZSI6ImxvY2FsaG9zdCIsImZpbmdlcnByaW50IjoiZWI1ZDk3Yzg5M2M4YTJiYTEwNmQ2ZWFhYmVmM2VlZWNkZDNiMTQzZTFmNzQ2YzFlYmU1NmI0MTkwZmEzMTBkZSIsImFkZHJlc3NlcyI6WyIxMC4xLjAuMTg3Ojg0NDMiLCIxMC4xMTAuMjQ0LjE6ODQ0MyIsIltmZDQyOmNiYTg6OTkxOTphZGI2OjoxXTo4NDQzIl0sInNlY3JldCI6ImI5ZDE1NDU0N2Q5NjA5YzNiMzdjZGRlMzc4NzM0NjRjODA4NmNlMjE3YjcwYWExNTY5NjIwYzllNjg4MjJmZDYiLCJleHBpcmVzX2F0IjoiMDAwMS0wMS0wMVQwMDowMDowMFoifQ== --accept-certificate
Error: Failed to create certificate: Invalid certificate type

@roosterfish
Copy link
Contributor Author

Mhh, I was just checking this and think I have to change it.

Currently it removes only the remote, but the trust (lxc config trust ls) is still intact from the previous test run. Might this lead to the error?

@roosterfish roosterfish force-pushed the custom_vol_snap_test branch from 6af053d to 3f51242 Compare April 11, 2024 13:49
@tomponline
Copy link
Member

@roosterfish ready for review? Failures expected?

@roosterfish
Copy link
Contributor Author

@roosterfish ready for review? Failures expected?

Sorry, forgot to put in draft, it needs a bit more attention.

But ultimately I was wondering if we even need to have this here, as we have an abundance of custom storage volume tests over in the lxd repo. Wasn't thinking about this when checking for the existence of custom storage volume tests earlier today.

Maybe it would be more suitable to extend the tests there if something is missing?

@roosterfish roosterfish marked this pull request as draft April 11, 2024 15:28
@tomponline
Copy link
Member

Maybe it would be more suitable to extend the tests there if something is missing?

Yeah I would be happy to have these tests in the main test suite if suitable as we would catch issues sooner.

But we should check for both filesystem and block type volumes.

@tomponline
Copy link
Member

In retrospect these volume tests are really testing that they can be attached to VMs

@tomponline
Copy link
Member

tomponline commented Apr 11, 2024

@roosterfish looking at it, this part https://github.com/canonical/lxd-ci/blob/main/tests/storage-volumes-vm#L149-L158 would make more sense in https://github.com/canonical/lxd-ci/blob/main/tests/storage-vm as its to do with publishing VM instances and not custom volumes. Wouldn't it?

@roosterfish
Copy link
Contributor Author

@roosterfish looking at it, this part https://github.com/canonical/lxd-ci/blob/main/tests/storage-volumes-vm#L149-L158 would make more sense in https://github.com/canonical/lxd-ci/blob/main/tests/storage-vm as its to do with publishing VM instances and not custom volumes. Wouldn't it?

I agree as it's not attaching anything as the other tests do.

I'll rework the PR to keep the trust removal for the storage-vm suite and move this test over.

@roosterfish roosterfish force-pushed the custom_vol_snap_test branch 2 times, most recently from 51b78ce to da9aaed Compare April 12, 2024 08:49
@roosterfish roosterfish marked this pull request as ready for review April 12, 2024 08:50
@roosterfish roosterfish force-pushed the custom_vol_snap_test branch from da9aaed to d4ca244 Compare April 12, 2024 08:50
@tomponline
Copy link
Member

@roosterfish ready for review?

@roosterfish
Copy link
Contributor Author

@roosterfish ready for review?

Yes, pipelines are done now. As planned the storage-vm test for latest/edge is now succeeding after canonical/lxd#13305 got merged yesterday.

@tomponline tomponline merged commit 4ef000f into canonical:main Apr 12, 2024
58 of 63 checks passed
@roosterfish roosterfish deleted the custom_vol_snap_test branch April 12, 2024 09:45
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.

2 participants