Skip to content

Mount /dev in cleanup job#60

Merged
k8s-ci-robot merged 2 commits intokubernetes-sigs:masterfrom
cofyc:fix55
Mar 20, 2019
Merged

Mount /dev in cleanup job#60
k8s-ci-robot merged 2 commits intokubernetes-sigs:masterfrom
cofyc:fix55

Conversation

@cofyc
Copy link
Copy Markdown
Member

@cofyc cofyc commented Mar 13, 2019

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Mar 13, 2019
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cofyc

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

The pull request process is described here

Details 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 13, 2019
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 13, 2019
@cofyc cofyc changed the title WIP: Mount /dev in cleanup job Mount /dev in cleanup job Mar 15, 2019
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 15, 2019
@cofyc
Copy link
Copy Markdown
Member Author

cofyc commented Mar 15, 2019

/assign @msau42

  1. should discover dynamically created local persistent volume mountpoint in discovery directory is removed, because it gets exercised in should create and recreate local persistent volume already
  2. should create and recreate local persistent volume is tested in a matrix to cover more cases

List of current e2e tests:

  • [sig-storage] PersistentVolumes-local Local volume provisioner [Serial] should not create local persistent volume for filesystem volume that was not bind mounted
  • [sig-storage] PersistentVolumes-local Local volume provisioner [Serial][UseJobForCleaning: true [VolumeType: dir] should create and recreate local persistent volume
  • [sig-storage] PersistentVolumes-local Local volume provisioner [Serial][UseJobForCleaning: false][VolumeType: dir] should create and recreate local persistent volume
  • [sig-storage] PersistentVolumes-local Local volume provisioner [Serial][UseJobForCleaning: true][VolumeType: block] should create and recreate local persistent volume
  • [sig-storage] PersistentVolumes-local Local volume provisioner [Serial][UseJobForCleaning: false][VolumeType: block] should create and recreate local persistent volume
  • [sig-storage] PersistentVolumes-local Stress with local volume provisioner [Serial] should use be able to process many pods and reuse local volumes

@cofyc cofyc force-pushed the fix55 branch 4 times, most recently from ff4c12d to 30d616b Compare March 15, 2019 12:36
})
jobContainer.VolumeMounts = append(jobContainer.VolumeMounts, apiv1.VolumeMount{
Name: "dev",
MountPath: "/dev",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm assuming this doesn't have any issues if we override the container's /dev?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, to discover and cleanup we need to mount host /dev into provisioner and cleanup containers.
Potential issue is in certain docker setup program cannot start when host /dev is mounted into container, but provisioner cannot too.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you add a comment with a link to the issue?

I assume mounting /dev somewhere else won't work because of symlink resolution issues?

Copy link
Copy Markdown
Member Author

@cofyc cofyc Mar 20, 2019

Choose a reason for hiding this comment

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

Updated.

I assume mounting /dev somewhere else won't work because of symlink resolution issues?

Yes

@msau42
Copy link
Copy Markdown
Contributor

msau42 commented Mar 20, 2019

/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 20, 2019
@k8s-ci-robot k8s-ci-robot merged commit 3ca4099 into kubernetes-sigs:master Mar 20, 2019
@cofyc cofyc mentioned this pull request Mar 25, 2019
@cofyc cofyc deleted the fix55 branch April 28, 2019 06:55
davidmccormick pushed a commit to davidmccormick/sig-storage-local-static-provisioner that referenced this pull request Mar 31, 2021
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. 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.

3 participants