Skip to content

Allow underscore in volume ID (backport #6094)#6108

Open
mergify[bot] wants to merge 1 commit intorelease-v3.16from
mergify/bp/release-v3.16/pr-6094
Open

Allow underscore in volume ID (backport #6094)#6108
mergify[bot] wants to merge 1 commit intorelease-v3.16from
mergify/bp/release-v3.16/pr-6094

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Feb 20, 2026

Describe what this PR does

This updates the regex that handles volume ID validation to allow underscores in the volume ID. I have a volume with an underscore in the name, which when the volume ID is parsed in grpc requests & validate it returns an error since v3.16.1 I have updated the regex to include an _ character in the last portion, as well as added a test validating the new behavior.

Is there anything that requires special attention

Do you have any questions?

Is the change backward compatible?

Yes

Are there concerns around backward compatibility?

No

Provide any external context for the change, if any.

For example:

Since v3.16.1 I get this error:

 MountVolume.MountDevice failed for volume "pvc-ce95e27a-d44d-4f8c-ac8c-bf06084bd98a" : rpc error: code = InvalidArgument desc = the volumeID has an unexpected format: "0001-0007-ceph_ec-0000000000000001-c3327f90-43ef-4f1a-8267-a388a49b9665"

This is a result of the fact that ceph_ec (my volume) has an underscore which is reading as invalid.

Related issues

Mention any github issues relevant to this PR. Adding below line
will help to auto close the issue once the PR is merged.

Fixes: #issue_number

Future concerns

List items that are not part of the PR and do not impact it's
functionality, but are work items that can be taken up subsequently.

Checklist:

  • Commit Message Formatting: Commit titles and messages follow
    guidelines in the developer
    guide
    .
  • Reviewed the developer guide on Submitting a Pull
    Request
  • Pending release
    notes

    updated with breaking and/or notable changes for the next major release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

Show available bot commands

These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

  • /retest ci/centos/<job-name>: retest the <job-name> after unrelated
    failure (please report the failure too!)

This is an automatic backport of pull request #6094 done by [Mergify](https://mergify.com).

Signed-off-by: Dean Galvin <deangalvin3@gmail.com>
(cherry picked from commit 852acf6)
@mergify mergify bot added the ok-to-test Label to trigger E2E tests label Feb 20, 2026
@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.32

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.34

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.33

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.32

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-cephfs

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.33

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.32

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.34

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-rbd

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.33

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.34

@ceph-csi-bot ceph-csi-bot removed the ok-to-test Label to trigger E2E tests label Feb 20, 2026
@nixpanic nixpanic requested a review from a team February 20, 2026 16:17
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.

3 participants

Comments