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

Require cluster id for AWS #16331

Merged
merged 3 commits into from
Sep 21, 2017

Conversation

rrati
Copy link

@rrati rrati commented Sep 13, 2017

Backporting of:

kubernetes/kubernetes#48612
kubernetes/kubernetes#49215

Plus changes in master-controller startup to look for the flag to allow untagged clouds or exit.

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 13, 2017
@rrati
Copy link
Author

rrati commented Sep 13, 2017

/test integration

@mfojtik
Copy link
Contributor

mfojtik commented Sep 14, 2017

@rrati are my hopes too high thinking that this might fix https://bugzilla.redhat.com/show_bug.cgi?id=1491202 ?

@mfojtik
Copy link
Contributor

mfojtik commented Sep 14, 2017

/approve

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 14, 2017
@@ -362,6 +362,11 @@ func (gce *GCECloud) ScrubDNS(nameservers, searches []string) (nsOut, srchOut []
return nameservers, srchOut
}

// HasClusterID returns true if the cluster has a clusterID
func (gce *GCECloud) HasClusterID() bool {
return true
Copy link
Contributor

Choose a reason for hiding this comment

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

@rrati isn't GCE cloud using Initialize() to get the cluster id and this should return true only when the clusterID is really available?

Copy link
Author

Choose a reason for hiding this comment

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

@mfojtik Yes, this really should be checking if the GCE Cluster ID is set or not. I'll log an issue upstream and correct it.

Copy link
Author

Choose a reason for hiding this comment

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

@mfojtik Actually, looking at the usage of GCE ClusterID this function should be as is, ie always returning true.

@rrati
Copy link
Author

rrati commented Sep 15, 2017

@mfojtik I don't see this fixing https://bugzilla.redhat.com/show_bug.cgi?id=1491202 . In this case, the controller-manager would exit if the cloud provider isn't labelled unless they pass an argument to allow an untagged cluster. It won't do anything to actually set the ClusterID.

@rrati
Copy link
Author

rrati commented Sep 18, 2017

@mfojtik I think this needs a lgtm label if it is approved for merging

@mfojtik
Copy link
Contributor

mfojtik commented Sep 21, 2017

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 21, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mfojtik, rrati

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

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

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue (batch tested with PRs 16443, 16331)

@openshift-merge-robot openshift-merge-robot merged commit 6fb6dd8 into openshift:master Sep 21, 2017
@enj
Copy link
Contributor

enj commented Oct 5, 2017

@openshift/api-review so this took down a cluster by forcing the controller processes into a crash loop. This requires further discussion to decide if this needs to be the default.

@rrati @mfojtik

@deads2k
Copy link
Contributor

deads2k commented Oct 5, 2017

@openshift/api-review so this took down a cluster by forcing the controller processes into a crash loop. This requires further discussion to decide if this needs to be the default.

Rather than trying to compensate for this in the master-config.yaml (where user set options and auto-set options will collide), if we know that we're going to need this information and we know that we'll never be able to auto-create this information, we should block the upgrade until the information is present. Doing this is just going to lead to confusion later about whether we can or can't automatically remove it after doing the same upgrade block in 3.8.

I'd actually be ok pairing a still-broken default (for one release!), with blocking on upgrade.

@enj
Copy link
Contributor

enj commented Oct 6, 2017

@sdodson @jupierce can you guys sync with @deads2k to add this blocking pre-upgrade check?

@sdodson
Copy link
Member

sdodson commented Oct 6, 2017

@enj https://bugzilla.redhat.com/show_bug.cgi?id=1491399

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. lgtm Indicates that a PR is ready to be merged. needs-api-review size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants