Skip to content

Fix bug where list of masters contain all same object #1241

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

Merged
merged 1 commit into from
Feb 13, 2019

Conversation

enxebre
Copy link
Member

@enxebre enxebre commented Feb 13, 2019

This fixes a bug introduced by 0f8e6b8#diff-66b4febb36af0238bb6c09e72c1c44ecR141 which makes machinesAll to contain the same address in every index: machinesAll: [0xc0008d2000 0xc0008d2000 0xc0008d2000]
Hence the masters machine manifests rendered to disk all contain the same spec and so the same object name, hence only one machine master object is instantiated in the cluster, making the expectations of "each node having a backing machine" to fail in all our repos https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/openshift_machine-api-operator/203/pull-ci-openshift-machine-api-operator-master-e2e-aws-operator/269

Right now all our CI validations are failing because of this issue. We need to get openshift/origin#22015 merged asap to run against the installer and narrow down the window for introducing this kind of bugs and make the boundaries and integration between the tools more solid.

The programatic reasoning behind the golang issue/fix/gotcha is still not clear to me. Golang gotcha golang/go#20733

This can be easily reproduced by running ./bin/openshift-install create manifests and check the master machines manifests

@wking @abhinavdahiya @derekwaynecarr @frobware @ingvagabund @crawford

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 13, 2019
@@ -138,11 +138,12 @@ func (m *Master) Generate(dependencies asset.Parents) error {
}}

machinesAll := []runtime.Object{}
for _, machine := range machines {
machinesAll = append(machinesAll, &machine)

Choose a reason for hiding this comment

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

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 13, 2019
@flaper87
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enxebre, flaper87, frobware

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 13, 2019
@openshift-merge-robot openshift-merge-robot merged commit 4bd58eb into openshift:master Feb 13, 2019
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. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants