Skip to content

Stop using node selector as ipfailover label#10388

Merged
openshift-bot merged 1 commit intoopenshift:masterfrom
marun:bz/1365176
Aug 15, 2016
Merged

Stop using node selector as ipfailover label#10388
openshift-bot merged 1 commit intoopenshift:masterfrom
marun:bz/1365176

Conversation

@marun
Copy link
Copy Markdown
Contributor

@marun marun commented Aug 12, 2016

The ipfailover dc and its template were having the label(s) provided
for the node selector set as their label(s). If, as in the
documentation, the router service was selecting on that label, the
service would end up targeting the keepalived pods. This change
ensures the dc and template define a new label rather than the one
provided as the node selector.

ref: https://bugzilla.redhat.com/show_bug.cgi?id=1365176
cc: @openshift/networking

The ipfailover dc and its template were having the label(s) provided
for the node selector set as their label(s).  If, as in the
documentation, the router service was selecting on that label, the
service would end up targeting the keepalived pods.  This change
ensures the dc and template define a new label rather than the one
provided as the node selector.
@marun
Copy link
Copy Markdown
Contributor Author

marun commented Aug 12, 2016

[test]

@marun
Copy link
Copy Markdown
Contributor Author

marun commented Aug 12, 2016

re-[test] one-off yum mirror timeout on dind image build

@marun
Copy link
Copy Markdown
Contributor Author

marun commented Aug 12, 2016

re-[test] #10393

@openshift-bot
Copy link
Copy Markdown
Contributor

Evaluated for origin test up to af00ff0

@openshift-bot
Copy link
Copy Markdown
Contributor

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

@knobunc
Copy link
Copy Markdown
Contributor

knobunc commented Aug 15, 2016

LGTM, do we need to update the documentation so that we describe the label we are putting on the ipfailover containers?

}

labels := map[string]string{
"ipfailover": name,
Copy link
Copy Markdown
Contributor

@ramr ramr Aug 15, 2016

Choose a reason for hiding this comment

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

Can we just use a label name instead of ipfailover ala: "name": name - makes it a more generic selector?

Edited

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What would the value of being more generic? Name is already a metadata property, and I think it would make more sense to be more specific rather than less.

Copy link
Copy Markdown
Contributor Author

@marun marun Aug 15, 2016

Choose a reason for hiding this comment

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

fwiw I was following the convention of how the router dc/template is labeled:

https://github.com/openshift/origin/blob/master/pkg/cmd/admin/router/router.go#L499

I'm not picky about what convention we choose, but I'd like it to be reflected in the code.

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.

Yeah, guess ipfailover is better - ignore me comment!!

@ramr
Copy link
Copy Markdown
Contributor

ramr commented Aug 15, 2016

LGTM just a minor comment re: a more generic label selector name.

@marun
Copy link
Copy Markdown
Contributor Author

marun commented Aug 15, 2016

@knobunc I don't think a doc change is required. I'm not sure it's a good idea to apply the same label on the router pods as the nodes targeted to host them, but it doesn't break anything.

@eparis
Copy link
Copy Markdown
Member

eparis commented Aug 15, 2016

[merge]

@openshift-bot
Copy link
Copy Markdown
Contributor

openshift-bot commented Aug 15, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7882/) (Image: devenv-rhel7_4831)

@openshift-bot
Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to af00ff0

@openshift-bot openshift-bot merged commit f42dcd1 into openshift:master Aug 15, 2016
@marun marun deleted the bz/1365176 branch August 15, 2016 20:59
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.

5 participants