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

filesystem: correct the pool name in the ux backend handler #2924

Merged

Conversation

parth-gr
Copy link
Member

@parth-gr parth-gr commented Dec 5, 2024

In the expandstorage handler pool name is incorrect,

Rook adds the filesystemName prefix to every datapool, which was missing in the storageclass parameter
https://github.com/rook/rook/blob/44e96c8ab67a27121354a04b121b7f16b6a38894/pkg/operator/ceph/file/filesystem.go#L321

In the expandstorage handler pool name is incorrect,

Rook adds the filesystemName prefix to every datapool,
which was missing in the storageclass parameter
https://github.com/rook/rook/blob/44e96c8ab67a27121354a04b121b7f16b6a38894/pkg/operator/ceph/file/filesystem.go#L321

Signed-off-by: parth-gr <[email protected]>
@parth-gr parth-gr force-pushed the fix-ux-device-class branch from 0b660d8 to 3396a61 Compare December 5, 2024 13:33
@parth-gr
Copy link
Member Author

parth-gr commented Dec 5, 2024

/cherry-pick 4.18

@openshift-cherrypick-robot

@parth-gr: once the present PR merges, I will cherry-pick it on top of 4.18 in a new PR and assign it to you.

In response to this:

/cherry-pick 4.18

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@parth-gr
Copy link
Member Author

parth-gr commented Dec 5, 2024

@@ -268,7 +268,7 @@ func createCephFilesystemStorageClass(w http.ResponseWriter, r *http.Request, cl
Parameters: map[string]string{
"clusterID": namespace,
"fsName": filesystemName,
"pool": poolName,
"pool": fmt.Sprintf("%s-%s", filesystemName, poolName),
Copy link
Member

Choose a reason for hiding this comment

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

is pool name mandatory when we expand the storage? if not Rook appends different value with integers

Copy link
Member Author

Choose a reason for hiding this comment

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

Yaa in the UI the pool name is mandatory,
cc @SanjalKatiyar to keep me honest

Copy link
Member

@Madhu-1 Madhu-1 Dec 5, 2024

Choose a reason for hiding this comment

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

in that case lets make it mandatory here(HTTP request) as well

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, UI has it as a mandatory field.

Copy link
Member

@iamniting iamniting left a comment

Choose a reason for hiding this comment

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

looks good to me, holding for others review.

/hold

@openshift-ci openshift-ci bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Dec 6, 2024
Copy link
Contributor

openshift-ci bot commented Dec 6, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: iamniting, parth-gr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 6, 2024
Copy link
Contributor

@SanjalKatiyar SanjalKatiyar left a comment

Choose a reason for hiding this comment

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

LGTM

@parth-gr
Copy link
Member Author

parth-gr commented Dec 6, 2024

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 6, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 7d2b735 into red-hat-storage:main Dec 6, 2024
11 checks passed
@openshift-cherrypick-robot

@parth-gr: cannot checkout 4.18: error checking out "4.18": exit status 1 error: pathspec '4.18' did not match any file(s) known to git

In response to this:

/cherry-pick 4.18

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@parth-gr
Copy link
Member Author

parth-gr commented Dec 6, 2024

/cherry-pick release-4.18

@openshift-cherrypick-robot

@parth-gr: new pull request created: #2928

In response to this:

/cherry-pick release-4.18

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants