Skip to content

Ensure default ingress cidr is a private range - #12379

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
marun:fix-default-ingress-cidr
Jan 4, 2017
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
marun:fix-default-ingress-cidr

Conversation

@marun

@marun marun commented Jan 3, 2017 •

Copy link
Copy Markdown
Contributor

Addresses #12313

cc: @openshift/networking

Doc updates: openshift/openshift-docs#3441

@marun

marun commented Jan 3, 2017

Copy link
Copy Markdown
Contributor Author

This was an oversight on my part. I followed the suggestion from #10387 (comment) without double checking it was a private range. This change and the doc change should ensure future installations work as expected.

@knobunc knobunc left a comment

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.

LGTM

@knobunc

knobunc commented Jan 3, 2017

Copy link
Copy Markdown
Contributor

[test]

@danwinship

Copy link
Copy Markdown
Contributor

should that be a const somewhere rather than hardcoding it in 3 places?

@smarterclayton

Copy link
Copy Markdown
Contributor

This is not compatible with old clusters - changing the default means that anyone who set this up and got the value defaulted from their config will now see a different value if you change it.

@smarterclayton

Copy link
Copy Markdown
Contributor

Removing merge.

@smarterclayton

Copy link
Copy Markdown
Contributor

Please link the doc updates here and make sure it's in the next release notes (any clusters deployed with the old value are broken on update)

@smarterclayton

Copy link
Copy Markdown
Contributor

Next origin release notes, that is. Breaking API change approved.

@marun

marun commented Jan 4, 2017

Copy link
Copy Markdown
Contributor Author

Added constant as per @danwinship. I'm not confident that it's defined in the right place, though.

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to f980b4c

@marun

marun commented Jan 4, 2017

Copy link
Copy Markdown
Contributor Author

@smarterclayton If old clusters will be broken on update, do defaults that aren't explicitly set not get written into the serialized config?

@smarterclayton

Copy link
Copy Markdown
Contributor

An admin has to actually generate a serialized config with the defaults. An old config (from v1.0) would have the default value internally, but the file on disk would not have the default. Various upgrade actions may have led to it getting written, but we can't assume it.

Basically, defaults are part of public API and changing them breaks old clusters. Exception granted in this case because:

  1. Extremely unlikely users used this by default except in test / dev environments
  2. It's a security risk to use this default
  3. You will be writing up very good documentation and ensuring all potentially users affected will be able to react :)

It would be good in the doc/errata/upgrade warnings to describe exactly what happens if the cluster gets restarted with a different default ip range (i.e. are all their external IPs changed, which could result in production apps no longer taking traffic), etc etc.

@marun

marun commented Jan 4, 2017

Copy link
Copy Markdown
Contributor Author

So should the pr for openshift-docs be updated to include mention of the impact of a cidr change? And where should errata/upgrade warnings go?

@openshift-bot

Copy link
Copy Markdown
Contributor

@knobunc

knobunc commented Jan 4, 2017

Copy link
Copy Markdown
Contributor

[merge]

@knobunc

knobunc commented Jan 4, 2017

Copy link
Copy Markdown
Contributor

@marun: I would say the docs should be updated to cover that. As to the errata procedure, I'm not sure.

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to f980b4c

@smarterclayton

smarterclayton commented Jan 4, 2017 via email

Copy link
Copy Markdown
Contributor

@openshift-bot

openshift-bot commented Jan 4, 2017 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12664/) (Base Commit: e820389) (Image: devenv-rhel7_5630)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants