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

Don't fail if iface is being used by iSCSI session #74524

Merged
merged 1 commit into from
Feb 26, 2019

Conversation

bertinatto
Copy link
Member

@bertinatto bertinatto commented Feb 25, 2019

What type of PR is this?

/kind bug

What this PR does / why we need it:

This PR prevents k8s failing to create a PV if an iscsi iface already exists and is being used by a session.

Which issue(s) this PR fixes:

Fixes #74523.

Does this PR introduce a user-facing change?:

NONE

/sig storage

@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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. sig/storage Categorizes an issue or PR as relevant to SIG Storage. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Feb 25, 2019
@jsafrane
Copy link
Member

/assign @bswartz

@bertinatto, did you test it with containerized kubelet? I hope that exit codes are not lost somewhere there.

@bertinatto
Copy link
Member Author

/assign @jsafrane @rootfs @humblec

@jsafrane
Copy link
Member

I check containerized kubelet code and we execute iscsiadm in the container with kubelet, so kubelet gets authentic iscsiadm exit code, without any nsenter translation.

@jsafrane
Copy link
Member

So code-wise lgtm from me, anyone from iscsi side has has opinion?

@rootfs
Copy link
Contributor

rootfs commented Feb 26, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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 Feb 26, 2019
@rootfs
Copy link
Contributor

rootfs commented Feb 26, 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 Feb 26, 2019
pkg/volume/iscsi/iscsi_util.go Outdated Show resolved Hide resolved
pkg/volume/iscsi/iscsi_util.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 26, 2019
@bswartz
Copy link
Contributor

bswartz commented Feb 26, 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 Feb 26, 2019
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. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. release-note-none Denotes a PR that doesn't merit a release note. sig/storage Categorizes an issue or PR as relevant to SIG Storage. 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.

iscsi plugin fails if iface already exists
7 participants