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

Block volumes Support: iSCSI plugin update #54752

Merged

Conversation

@mtanino
Copy link
Member

@mtanino mtanino commented Oct 28, 2017

What this PR does / why we need it:

Add interface changes to iSCSI volume plugin to enable block volumes support feature.

Which issue this PR fixes:
Based on this proposal (kubernetes/community#805 & kubernetes/community#1265) and this feature issue: kubernetes/enhancements#351

Special notes for your reviewer:

This PR temporarily includes following changes except iSCSI plugin change for reviewing purpose.
These changes will be removed from the PR once they are merged.

  • (#50457) API Change
  • (#51494) Container runtime interface change, volumemanager changes, operationexecutor changes

There are another PRs related to this functionality.
(#50457) API Change
(#53385) VolumeMode PV-PVC Binding change
(#51494) Container runtime interface change, volumemanager changes, operationexecutor changes
(#55112) Block volume: Command line printer update
Plugins
(#51493) Block volumes Support: FC plugin update
(#54752) Block volumes Support: iSCSI plugin update

Release note:

NONE
@mtanino
Copy link
Member Author

@mtanino mtanino commented Oct 28, 2017

/retest

2 similar comments
@mtanino
Copy link
Member Author

@mtanino mtanino commented Oct 30, 2017

/retest

@mtanino
Copy link
Member Author

@mtanino mtanino commented Oct 30, 2017

/retest

@mtanino
Copy link
Member Author

@mtanino mtanino commented Nov 8, 2017

/retest

2 similar comments
@mtanino
Copy link
Member Author

@mtanino mtanino commented Nov 8, 2017

/retest

@mtanino
Copy link
Member Author

@mtanino mtanino commented Nov 8, 2017

/retest

@mtanino mtanino force-pushed the mtanino:pr/BlockVolumesSupport-iscsi branch from 0787946 to 3676f66 Nov 9, 2017
@rootfs
Copy link
Member

@rootfs rootfs commented Nov 13, 2017

@mtanino is it ready for review?

@mtanino
Copy link
Member Author

@mtanino mtanino commented Nov 13, 2017

@rootfs yes, ready to review. thanks.

func (detacher *iscsiDetacher) volumeSpecToUnmounter(mounter mount.Interface) *iscsiDiskUnmounter {
exec := detacher.host.GetExec(iscsiPluginName)
func VolumeSpecToUnmounter(mounter mount.Interface, host volume.VolumeHost) *iscsiDiskUnmounter {
exec := host.GetExec(iscsiPluginName)

This comment has been minimized.

@rootfs

rootfs Nov 14, 2017
Member

this is already done above

This comment has been minimized.

@mtanino

mtanino Nov 19, 2017
Author Member

Which line?

@mtanino
Copy link
Member Author

@mtanino mtanino commented Dec 2, 2017

@rootfs @jsafrane
I think I need feedback for iscsi block volume support. PTAL.

This PR adds

  • Block Volume support
  • ConstructVolumeSpec() update (discussed on #54264)
@mtanino
Copy link
Member Author

@mtanino mtanino commented Dec 2, 2017

/unassign @erictune
/assign @jsafrane

@k8s-ci-robot k8s-ci-robot assigned jsafrane and unassigned erictune Dec 2, 2017
@mtanino mtanino force-pushed the mtanino:pr/BlockVolumesSupport-iscsi branch 2 times, most recently from d997124 to 35baf9c Dec 4, 2017
@mtanino
Copy link
Member Author

@mtanino mtanino commented Dec 4, 2017

/retest

@k8s-ci-robot
Copy link
Contributor

@k8s-ci-robot k8s-ci-robot commented Dec 4, 2017

@mtanino: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-cross 756a957 link /test pull-kubernetes-cross

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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/test-infra repository. I understand the commands that are listed here.

@mtanino
Copy link
Member Author

@mtanino mtanino commented Dec 4, 2017

/retest

@mtanino mtanino force-pushed the mtanino:pr/BlockVolumesSupport-iscsi branch from 35baf9c to 86d27cd Jan 9, 2018
@kubernetes kubernetes deleted a comment from k8s-github-robot Jan 9, 2018
iface, initiatorNamePtr, err := getISCSIInitiatorInfo(spec)
if err != nil {
return nil, err
func (plugin *iscsiPlugin) NewBlockVolumeMapper(spec *volume.Spec, pod *v1.Pod, _ volume.VolumeOptions) (volume.BlockVolumeMapper, error) {

This comment has been minimized.

@rootfs

rootfs Jan 9, 2018
Member

nit: GoDoc

This comment has been minimized.

@mtanino

mtanino Jan 9, 2018
Author Member

done.

@@ -212,25 +176,87 @@ func (plugin *iscsiPlugin) newUnmounterInternal(volName string, podUID types.UID
}, nil
}

func (plugin *iscsiPlugin) NewBlockVolumeUnmapper(volName string, podUID types.UID) (volume.BlockVolumeUnmapper, error) {

This comment has been minimized.

@rootfs

rootfs Jan 9, 2018
Member

GoDoc

This comment has been minimized.

@mtanino

mtanino Jan 9, 2018
Author Member

done.

@mtanino mtanino force-pushed the mtanino:pr/BlockVolumesSupport-iscsi branch from 86d27cd to 3e066d6 Jan 9, 2018
@rootfs
Copy link
Member

@rootfs rootfs commented Jan 10, 2018

/approve

Mitsuhiro Tanino added 2 commits Oct 28, 2017
This patch adds block volume support to iSCSI volume plugin.
@mtanino mtanino force-pushed the mtanino:pr/BlockVolumesSupport-iscsi branch from 3e066d6 to 96509d4 Jan 10, 2018
@rootfs
Copy link
Member

@rootfs rootfs commented Jan 10, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm label Jan 10, 2018
@k8s-ci-robot
Copy link
Contributor

@k8s-ci-robot k8s-ci-robot commented Jan 10, 2018

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mtanino, rootfs

Associated issue: #805

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

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot
Copy link
Contributor

@k8s-github-robot k8s-github-robot commented Jan 10, 2018

Automatic merge from submit-queue (batch tested with PRs 54230, 58100, 57861, 54752). If you want to cherry-pick this change to another branch, please follow the instructions here.

@k8s-github-robot k8s-github-robot merged commit 2f17d78 into kubernetes:master Jan 10, 2018
13 checks passed
13 checks passed
Submit Queue Queued to run github e2e tests a second time.
Details
cla/linuxfoundation mtanino authorized
Details
pull-kubernetes-bazel-build Job succeeded.
Details
pull-kubernetes-bazel-test Job succeeded.
Details
pull-kubernetes-cross Skipped
pull-kubernetes-e2e-gce Job succeeded.
Details
pull-kubernetes-e2e-gce-device-plugin-gpu Job succeeded.
Details
pull-kubernetes-e2e-gke-gci Skipped
pull-kubernetes-e2e-kops-aws Job succeeded.
Details
pull-kubernetes-kubemark-e2e-gce Job succeeded.
Details
pull-kubernetes-node-e2e Job succeeded.
Details
pull-kubernetes-unit Job succeeded.
Details
pull-kubernetes-verify Job succeeded.
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

8 participants