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

CSI ephemeral inline volume testing + fix #254

Merged
merged 2 commits into from
Mar 26, 2021

Conversation

pohly
Copy link
Contributor

@pohly pohly commented Mar 10, 2021

What type of PR is this?
/kind bug

What this PR does / why we need it:

At least one line volume must be defined, otherwise the tests
get skipped. This wasn't the case earlier, which is why support for CSI ephemeral inline volumes broke in release v1.6.0 when changing the size check.

Does this PR introduce a user-facing change?:

CSI ephemeral inline volumes failed to get created with an error saying `MountVolume.SetUp failed for volume "ephemeral-volume" : rpc error: code = OutOfRange desc = Requested capacity 1099511627776 exceeds maximum allowed 1099511627776`

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. 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 Mar 10, 2021
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 10, 2021
@pohly pohly changed the title WIP: CSI ephemeral inline volume testing + fix CSI ephemeral inline volume testing + fix Mar 10, 2021
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 10, 2021
@pohly
Copy link
Contributor Author

pohly commented Mar 10, 2021

/retest

pohly added 2 commits March 19, 2021 09:26
At least one line volume must be defined, otherwise the tests
get skipped.
With storage capacity simulation enabled, trying to create ephemeral
volumes with the default maximum volume size may have failed:

  Warning  FailedMount  6s (x5 over 14s)  kubelet            MountVolume.SetUp failed for volume "ephemeral-volume" : rpc error: code = ResourceExhausted desc = not enough capacity: have 100Gi, need 1Ti

Using a smaller size is better because then more than one volume can
be created per host. Even better would be to also add a parameter for
it, but that can be added later.
@pohly pohly force-pushed the csi-ephemeral-volume-fix branch from a85f6a2 to 93d4ef8 Compare March 19, 2021 08:28
@ggriffiths
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 25, 2021
@pohly
Copy link
Contributor Author

pohly commented Mar 25, 2021

/assign @xing-yang

For approval.

@@ -64,7 +64,9 @@ func (hp *hostPath) NodePublishVolume(ctx context.Context, req *csi.NodePublishV
volID := req.GetVolumeId()
volName := fmt.Sprintf("ephemeral-%s", volID)
kind := req.GetVolumeContext()[storageKind]
vol, err := hp.createVolume(req.GetVolumeId(), volName, maxStorageCapacity, mountAccess, ephemeralVolume, kind)
// Configurable size would be nice. For now we use a small, fixed volume size of 100Mi.
Copy link
Contributor

Choose a reason for hiding this comment

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

Any specific reason why 100Mi is the chosen size?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's small enough that with the default fake capacity limits a large number of inline volumes can be created. But other than that, no.

@jsafrane
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jsafrane, pohly

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 Mar 26, 2021
@k8s-ci-robot k8s-ci-robot merged commit d28ece6 into kubernetes-csi:master Mar 26, 2021
humblec added a commit to humblec/csi-driver-host-path that referenced this pull request May 24, 2024
4967685 Merge pull request kubernetes-csi#254 from bells17/add-github-actions
d9bd160 Update skip list in codespell GitHub Action
adb3af9 Merge pull request kubernetes-csi#252 from bells17/update-go-version
f5aebfc Add GitHub Actions workflows
b82ee38 Merge pull request kubernetes-csi#253 from bells17/fix-typo
c317456 Fix typo
0a78505 Bump to Go 1.22.3
edd89ad Merge pull request kubernetes-csi#251 from jsafrane/add-logcheck
043fd09 Add test-logcheck target
d7535ae Merge pull request kubernetes-csi#250 from jsafrane/go-1.22
b52e7ad Update go to 1.22.2
14fdb6f Merge pull request kubernetes-csi#247 from msau42/prow
9b4352e Update release playbook
c7bb972 Fix release notes script to use fixed tags
463a0e9 Add script to update specific go modules

git-subtree-dir: release-tools
git-subtree-split: 4967685
TerryHowe pushed a commit to TerryHowe/csi-driver-host-path that referenced this pull request Oct 17, 2024
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 Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants