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

UPSTREAM: 21373: kubelet: reading cloudinfo from cadvisor #8062

Merged
merged 1 commit into from
Mar 18, 2016

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Mar 16, 2016

When no --cloud-provider flag is given, try to use data from cadvisor to
determine the ProviderID.

@smarterclayton ptal
@simon3z @enoodle fyi

@deads2k deads2k added this to the 1.2.0 milestone Mar 16, 2016
@deads2k
Copy link
Contributor Author

deads2k commented Mar 16, 2016

[test]

node *api.Node,
info *cadvisorapi.MachineInfo) {

if info.CloudProvider != cadvisorapi.UnkownProvider &&
Copy link
Contributor

Choose a reason for hiding this comment

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

The typo causes me pain here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Pretty sure we'll pick up the typo fix with the imminent cadvisor bump

@smarterclayton
Copy link
Contributor

Looks ok to me. Is the holdup upstream convincing vish?

@liggitt
Copy link
Contributor

liggitt commented Mar 17, 2016

typo fix is in #8072 which bases us on the upstream v1.2.0 tag

@liggitt liggitt mentioned this pull request Mar 17, 2016
85 tasks
@deads2k
Copy link
Contributor Author

deads2k commented Mar 17, 2016

Looks ok to me. Is the holdup upstream convincing vish?

Brian punted it from 1.2 (not important enough I'd guess), so no one's looked at it again. Looked reasonable to me too. I'll update the typo when the new level merges.

@deads2k
Copy link
Contributor Author

deads2k commented Mar 17, 2016

Updated on top of the 1.2 tag.

@smarterclayton anything else holding this up?

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to d54ed4e

if info.CloudProvider != cadvisorapi.UnknownProvider &&
info.CloudProvider != cadvisorapi.Baremetal {
node.Spec.ProviderID = strings.ToLower(string(info.CloudProvider)) +
":////" + string(info.InstanceID)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be //? That's what GetInstanceProviderID() returns

Copy link

Choose a reason for hiding this comment

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

Usually it returns ://<project_name>/<avilability_zone>/<instance_id> . we dont have the project name or the availability zone so they are left empty (kubelet's cloud providers may also return them empty when they are not available)

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/2262/)

@deads2k
Copy link
Contributor Author

deads2k commented Mar 17, 2016

one green, one infrastructure flake.

@smarterclayton
Copy link
Contributor

LGTM [merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/5362/) (Image: devenv-rhel7_3772)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to d54ed4e

openshift-bot pushed a commit that referenced this pull request Mar 18, 2016
@openshift-bot openshift-bot merged commit d5ec341 into openshift:master Mar 18, 2016
@ncdc
Copy link
Contributor

ncdc commented Mar 21, 2016

This either needs to be reverted or we need to push for google/cadvisor#1171 to be merged ASAP so we can pull it in to origin. https://bugzilla.redhat.com/show_bug.cgi?id=1319439

@deads2k
Copy link
Contributor Author

deads2k commented Mar 21, 2016

This either needs to be reverted or we need to push for google/cadvisor#1171 to be merged ASAP so we can pull it in to origin. https://bugzilla.redhat.com/show_bug.cgi?id=1319439

If cadvisor actually merges that pull, I'm ok picking it down here. Otherwise, I'd revert this. I planned to give it until tomorrow PM.

@deads2k deads2k deleted the kubelet-patch branch September 6, 2016 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants