Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ScaleIO - Specify SDC GUID value via node label#50780

Merged
k8s-github-robot merged 1 commit into
kubernetes:masterfrom
vladimirvivien:scaleio-instanceid-label
Sep 8, 2017
Merged

ScaleIO - Specify SDC GUID value via node label#50780
k8s-github-robot merged 1 commit into
kubernetes:masterfrom
vladimirvivien:scaleio-instanceid-label

Conversation

@vladimirvivien
Copy link
Copy Markdown
Member

@vladimirvivien vladimirvivien commented Aug 16, 2017

What this PR does / why we need it:
This is a ScaleIO plugin volume PR to do the following:

  • Reads node label scaleio.sdcGuid value for the SDC GUID
  • Uses value to look up the Scaleio SDC instance ID
  • If label not found, falls back to current way of doing instance id look up now

This enhancement allows the ScaleIO plugin to work properly even if the drv_cfg binary is not installed on the kubelet node.

Special Notes
Associated issue - #51537
Closes #51537

The ScaleIO volume plugin can now read the SDC GUID value as node label scaleio.sdcGuid; if binary drv_cfg is not installed, the plugin will still work properly; if node label not found, it defaults to drv_cfg if installed.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 16, 2017
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Hi @vladimirvivien. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

I understand the commands that are listed here.

Details

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.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Aug 16, 2017
@vladimirvivien
Copy link
Copy Markdown
Member Author

/ok-to-test

@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Aug 16, 2017
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@vladimirvivien: you can't request testing unless you are a kubernetes member.

Details

In response to this:

/ok-to-test

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.

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Aug 16, 2017
@thockin
Copy link
Copy Markdown
Member

thockin commented Aug 16, 2017

This needs an associated issue and a closes #12345 in the FIRST COMMENT, or it can not be approved.

@rootfs
Copy link
Copy Markdown

rootfs commented Aug 16, 2017

/ok-to-test

@rootfs
Copy link
Copy Markdown

rootfs commented Aug 16, 2017

@vladimirvivien can you update the PR message (fix #)

Comment thread pkg/volume/scaleio/sio_client.go Outdated
// it attemps to fallback to using drv_cfg binary
func (c *sioClient) getGuid() (string, error) {
if c.sdcGuid == "" {
glog.Warning(log("sdc guid not set, falling back to using drv_cfg to get it"))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this is going to spam the log each time sdc is missing.

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.

ok. Fixing.

Comment thread pkg/volume/scaleio/sio_volume.go Outdated

// merge in Sdc Guid label value
if err := attachSdcGuid(v.plugin, configData); err != nil {
glog.Error(log("failed to retrieve sdc guid: %", err))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

%v

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.

Fixing...

Comment thread pkg/volume/scaleio/sio_volume.go Outdated

// merge in Sdc Guid label value
if err := attachSdcGuid(v.plugin, configData); err != nil {
glog.Error(log("failed to retrieve sdc guid: %", err))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

%v

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.

Fixing

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

still there :)

@thockin
Copy link
Copy Markdown
Member

thockin commented Aug 18, 2017

@vladimirvivien You should apply for org membership, too.

@thockin
Copy link
Copy Markdown
Member

thockin commented Aug 22, 2017

re-assign to me for approval, if needed

@vladimirvivien
Copy link
Copy Markdown
Member Author

@thockin can i put you down as sponsor to join k8s membership ?

@rootfs
Copy link
Copy Markdown

rootfs commented Aug 29, 2017

@vladimirvivien squash and then lgtm

@rootfs
Copy link
Copy Markdown

rootfs commented Aug 31, 2017

/retest

@rootfs
Copy link
Copy Markdown

rootfs commented Aug 31, 2017

/assign @childsb

@vladimirvivien
Copy link
Copy Markdown
Member Author

@thockin @childsb @rootfs any one of you distinguished members can take a last look and add the actual LGTM label on this please!

@vladimirvivien
Copy link
Copy Markdown
Member Author

/test pull-kubernetes-unit

@vladimirvivien
Copy link
Copy Markdown
Member Author

@thockin @childsb @rootfs hi, is it possible to retro-actively approve this PR for 1.8? It was LGTM well before deadline, but have not gotten approval by assignee. Any help welcome on this. Thanks!

@vladimirvivien
Copy link
Copy Markdown
Member Author

/assign @childsb

@vladimirvivien
Copy link
Copy Markdown
Member Author

/test pull-kubernetes-e2e-kops-aws

@vladimirvivien
Copy link
Copy Markdown
Member Author

/test pull-kubernetes-e2e-kops-aws

3 similar comments
@vladimirvivien
Copy link
Copy Markdown
Member Author

/test pull-kubernetes-e2e-kops-aws

@vladimirvivien
Copy link
Copy Markdown
Member Author

/test pull-kubernetes-e2e-kops-aws

@vladimirvivien
Copy link
Copy Markdown
Member Author

/test pull-kubernetes-e2e-kops-aws

Comment thread pkg/volume/scaleio/sio_client.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

use VolumeHost.GetExec

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.

@jsafrane Done!

@jsafrane
Copy link
Copy Markdown
Member

jsafrane commented Sep 6, 2017

/assign

@jsafrane
Copy link
Copy Markdown
Member

jsafrane commented Sep 6, 2017

@vladimirvivien, please fix one exec and I'll try to squeeze it into 1.8

@jdumars
Copy link
Copy Markdown
Contributor

jdumars commented Sep 6, 2017

@jsafrane @vladimirvivien because this didn't get proper approvals before the code freeze, we'll need a feature exception ASAP. That process is here: https://github.com/kubernetes/features/blob/master/EXCEPTIONS.md
This will provide visibility to the release team. Also, you may wish to work with @kubernetes/sig-storage-misc to get this in the Release Notes.

The commit allow ScaleIO volume plugin to read SDC GUID value as a node label.
If binary drv_cfg is not installed, the plugin will still work properly.
If node label not found, it defaults to drv_cfg if installed.
@k8s-github-robot k8s-github-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 7, 2017
@vladimirvivien
Copy link
Copy Markdown
Member Author

@jsafrane got distracted with the storm (irma). But I made the change you requested earlier.

@vladimirvivien
Copy link
Copy Markdown
Member Author

@jsafrane looking forward for a LGTM and approval.

@saad-ali
Copy link
Copy Markdown
Member

saad-ali commented Sep 7, 2017

/lgtm
/approve

@vladimirvivien go ahead and file for exception. This is a low risk and isolated change.

@k8s-github-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jdumars, saad-ali, vladimirvivien

Associated issue: 51537

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

Details 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 k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 7, 2017
@saad-ali saad-ali added the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Sep 7, 2017
@saad-ali
Copy link
Copy Markdown
Member

saad-ali commented Sep 7, 2017

Adding do-not-merge until exception is approved by 1.8 release team.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 7, 2017
@jdumars jdumars removed the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Sep 8, 2017
@jdumars
Copy link
Copy Markdown
Contributor

jdumars commented Sep 8, 2017

Approved in today's burndown meeting

@k8s-github-robot
Copy link
Copy Markdown

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link
Copy Markdown

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 941b267 into kubernetes:master Sep 8, 2017
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

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

Test name Commit Details Rerun command
pull-kubernetes-e2e-gce-bazel 3148595 link /test pull-kubernetes-e2e-gce-bazel

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.

Details

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.

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. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/storage Categorizes an issue or PR as relevant to SIG Storage. 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.

10 participants