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

fix storageclass comparion for pvc datasource #325

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

j-griffith
Copy link
Contributor

/kind bug

What this PR does / why we need it:

Compare storage class string, instead of comparing
the string address.
Signed-off-by: Madhu Rajanna madhupr007@gmail.com

Which issue(s) this PR fixes:

Fixes #308

Special notes for your reviewer:

Backport from master to 1.3

Does this PR introduce a user-facing change?:

NONE

compare storage class string, instead of comparing
the string address.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 9, 2019
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 9, 2019
@j-griffith
Copy link
Contributor Author

/assign @msau42

@msau42
Copy link
Collaborator

msau42 commented Aug 9, 2019

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 9, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: j-griffith, msau42

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 9, 2019
@k8s-ci-robot k8s-ci-robot merged commit 5c5deb3 into kubernetes-csi:release-1.3 Aug 9, 2019
@zhucan
Copy link
Member

zhucan commented Aug 19, 2019

@j-griffith @msau42 what's about the image version that I can use for clone?

@j-griffith
Copy link
Contributor Author

j-griffith commented Aug 19, 2019

@j-griffith @msau42 what's about the image version that I can use for clone?

@zhucan You'll need at least 1.4.0-rc1 of the provisioner to include this bug fix.

@zhucan
Copy link
Member

zhucan commented Aug 20, 2019

@j-griffith copy that, thanks. I have a question that if I have created a pvc by external-provisioner(version is v1.1.0), I can't do clone for the pvc by new external-provisioner(version is v1.4.0-rc1)? There are some logs for it

@zhucan
Copy link
Member

zhucan commented Aug 20, 2019

@j-griffith logs:
Warning ProvisioningFailed 32s (x6 over 63s) ebs.csi.com_csi-sidecar-ebs-provisioner-7477947f5c-2zqb7_6a4a2d34-c2f7-11e9-a7e3-ca1815fa2d2c failed to provision volume with StorageClass "expand-sc": error getting handle for DataSource Type PersistentVolumeClaim by Name csi-pvc9: the source PVC (csi-pvc9) storageclass cannot be empty

@j-griffith
Copy link
Contributor Author

@j-griffith logs:
Warning ProvisioningFailed 32s (x6 over 63s) ebs.csi.com_csi-sidecar-ebs-provisioner-7477947f5c-2zqb7_6a4a2d34-c2f7-11e9-a7e3-ca1815fa2d2c failed to provision volume with StorageClass "expand-sc": error getting handle for DataSource Type PersistentVolumeClaim by Name csi-pvc9: the source PVC (csi-pvc9) storageclass cannot be empty

@zhucan version used during create of the source shouldn't matter at all; That message you show in the logs indicates that there is no SC set in the destination PVC being created. If you do in fact have an SC set in the new PVC spec or there is a default class that should be picked up you may have found a bug.

I'd suggest opening a GH issue with some details including your yaml files.

@zhucan
Copy link
Member

zhucan commented Aug 21, 2019

@j-griffith ok

kbsonlong pushed a commit to kbsonlong/external-provisioner that referenced this pull request Dec 29, 2023
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants