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

CON-3010 Changes for resize the filesystem for creating clone from sn… #424

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

lothejyotsna
Copy link

PR for CON 3010 - resize the filesystem when clone created from volumesnapshot is of size > parent volume

@datamattsson
Copy link
Collaborator

PRs need to be signed to be reviewed and approved.

jlothe added 3 commits January 6, 2025 11:53
…apshot

Signed-off-by: jyotsna-lothe <jyotsna.lothe@hpe.com>
…VC claim

Signed-off-by: jyotsna-lothe <jyotsna.lothe@hpe.com>
…le system

Signed-off-by: jyotsna-lothe <jyotsna.lothe@hpe.com>
pkg/driver/controller_server.go Outdated Show resolved Hide resolved
pkg/driver/node_server.go Outdated Show resolved Hide resolved
pkg/driver/constants.go Outdated Show resolved Hide resolved
pkg/driver/node_server.go Outdated Show resolved Hide resolved
pkg/driver/node_server.go Show resolved Hide resolved
pkg/driver/node_server.go Outdated Show resolved Hide resolved
pkg/driver/node_server.go Outdated Show resolved Hide resolved
jlothe added 2 commits January 9, 2025 10:57
Signed-off-by: jyotsna-lothe <jyotsna.lothe@hpe.com>
Signed-off-by: jyotsna-lothe <jyotsna.lothe@hpe.com>

// If the DataSource is a VolumeSnapshot
if pvc.Spec.DataSource.Kind == "VolumeSnapshot" {
log.Infof(" Source Kind: VolumeSnapshot\n VolumeSnapshot Name: %s\n", pvc.Spec.DataSource.Name)
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: is the newlines in between intentional? Might not be needed, since each log will be in a newline by default.

return nil,
status.Error(codes.InvalidArgument,
fmt.Sprintf("Requested clone size %d is not equal to the parent volume size %d", size, existingParentVolume.Size))
status.Error(codes.Internal,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wouldnt it be better to leave the error code as InvalidArgument ? It is not an internal error, since the requested size is wrong, better to return InvalidArgument.

@@ -1,4 +1,4 @@
// Copyright 2019 Hewlett Packard Enterprise Development LP
// Copyright 2019,2024 Hewlett Packard Enterprise Development LP
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit:2025, please check other files, some have 2024.

@rohit-balakrishna
Copy link
Collaborator

@lothejyotsna , please also rebase to the latest master.

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