Skip to content

[manila]: Add share from snapshot restore functional test#2629

Merged
mandre merged 1 commit intogophercloud:masterfrom
kayrus:manila-share-from-snapshot-size
May 25, 2023
Merged

[manila]: Add share from snapshot restore functional test#2629
mandre merged 1 commit intogophercloud:masterfrom
kayrus:manila-share-from-snapshot-size

Conversation

@kayrus
Copy link
Copy Markdown
Contributor

@kayrus kayrus commented May 24, 2023

This PR adds a functional test that restores a snapshot into a bigger share. Primarily this test is required to check whether Manila in devstack is capable to perform such an action.

@kayrus kayrus force-pushed the manila-share-from-snapshot-size branch from 7c675c7 to 2e1ab9b Compare May 24, 2023 13:35
@coveralls
Copy link
Copy Markdown

coveralls commented May 24, 2023

Coverage Status

Coverage: 79.115%. Remained the same when pulling 2e1ab9b on kayrus:manila-share-from-snapshot-size into b9730cf on gophercloud:master.

if err != nil {
t.Fatalf("Unable to create a shared file system client: %v", err)
}
client.Microversion = "2.27"
Copy link
Copy Markdown
Contributor

@mandre mandre May 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The microversion doesn't seem right, 2.27 is where revert to snapshot was added, and it looks like that's not what we're using here. The documentation is not explicit about if creating a share from a snapshot also requires microversion 2.27 or not.

Not a big deal really, since we're way past microversion 2.27 (Ocata) anyway.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation is not explicit about if creating a share from a snapshot also requires microversion 2.27 or not.

It doesn't require it.. creating shares from snapshots was termed "optional" since 2.24 and that part is noted on the doc you linked.. but in general, we're very vary of removing functionality - so unless explicitly stated, using the later micro-version in these tests will give you all the existing behavior ... :)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but agree with the point here that "restoring from snapshot" here is really "creating share from snapshot" in manila terminology; and confusingly, manila has a feature called "revert_to_snapshot" which allows in-place reverts.. and this "2.27" version seems to come from that.

@mandre mandre merged commit 93ee654 into gophercloud:master May 25, 2023
@kayrus kayrus deleted the manila-share-from-snapshot-size branch May 25, 2023 07:53
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.

4 participants