Skip to content

Manage the ignition stub config - #1792

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
runcom:pointerconfig
Jul 10, 2020
Merged

openshift-merge-robot merged 1 commit into
openshift:masterfrom
runcom:pointerconfig

Conversation

@runcom

@runcom runcom commented Jun 8, 2020 •

Copy link
Copy Markdown
Member

Nothing to see here yet, just code, and testing going on elsewhere

current testing plan

Related issue #683
Enhancement openshift/enhancements#368

The key points here are:

  • if you're installing you'll get the new user-data managed by the MCO, scale up continues working
  • if you're installing with ignition v3 (4.6) this keeps working and serves the new ignition stub to new machines as the code will be typed with the new ignition structs
  • if you're upgrading from pre-ign-v3 (this is gonna be the case in our release cycle so let's not bother about v2->v3 upgrade other than in this PR I guess), then your old machine(sets) will still be able to grab the ignition v2 endpoint because we don't delete the old user-data even if the code is now ignition v3 typed

What this PR does is basically:

  • we let the installer take care of installing the initial user-data secret
  • we then take over with our managed secret
  • if we are upgrading (and thus no installer at play), we just create the new (managed) secret

Signed-off-by: Antonio Murdaca [email protected]

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 8, 2020
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 8, 2020
@runcom
runcom force-pushed the pointerconfig branch 2 times, most recently from 84d9b4c to bcfe84b Compare June 8, 2020 16:53
@runcom

runcom commented Jun 8, 2020

Copy link
Copy Markdown
Member Author

/retest

Comment thread manifests/master.userdata_secret.yaml Resolved
Comment thread manifests/master.userdata_secret.yaml Resolved
@runcom

runcom commented Jun 9, 2020

Copy link
Copy Markdown
Member Author

/retest

@runcom

runcom commented Jun 9, 2020 •

Copy link
Copy Markdown
Member Author

This works as expected, both alone and with openshift/installer#3730

$ oc get secrets -n openshift-machine-api
NAME                                              TYPE                                  DATA   AGE
...
master-user-data-managed                          Opaque                                2      19m
worker-user-data-managed                          Opaque                                2      19m

The new user-data is created just fine from the MCO and read correctly by machine(sets) in MAO. If you create a cluster with both this PR and openshift/installer#3730 you'll get a fully functional cluster using the new managed-by-MCO user-data:

$ oc describe machine -n openshift-machine-api ci-ln-0s13scb-d5d6b-ln8c4-master-0
...
      User Data Secret:
        Name:  master-user-data-managed
...

same for machinesets

Scaling up the worker machinesets works as expected as well

I'm going to create create the enhacement and cleanup both PRs - the MCO PR has to go in first ofc.

@runcom runcom changed the title WIP Manage the ignition stub config Manage the ignition stub config Jun 9, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 9, 2020
@runcom runcom added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 9, 2020
Comment thread pkg/controller/common/helpers.go Resolved
@runcom runcom changed the title Manage the ignition stub config WIP Manage the ignition stub config Jun 10, 2020
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 10, 2020
@runcom runcom removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 10, 2020
@runcom
runcom force-pushed the pointerconfig branch 2 times, most recently from af1e238 to 998e52d Compare June 11, 2020 12:36
Comment thread pkg/operator/sync.go Resolved
@runcom

runcom commented Jun 11, 2020

Copy link
Copy Markdown
Member Author

have just confirmed on an upgraded cluster that we effectively re-generate what the installer generates so it's safe to assume we'll generate the correct ign v3 version once we upgrade 💪

@cgwalters cgwalters left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks sane to me!

Comment thread manifests/master.userdata_secret.yaml Resolved
Comment thread pkg/controller/common/helpers.go Resolved
Comment thread pkg/operator/sync.go Resolved
Comment thread pkg/operator/sync.go Resolved
Comment thread pkg/operator/sync.go Resolved
@runcom
runcom force-pushed the pointerconfig branch 2 times, most recently from 4b9b879 to 5141800 Compare June 23, 2020 14:15
@runcom runcom changed the title WIP Manage the ignition stub config Manage the ignition stub config Jun 23, 2020
@runcom

runcom commented Jul 2, 2020 •

Copy link
Copy Markdown
Member Author

I've pushed a change to allow the creation of the userdata for every pool in the cluster (which I still think it's correct as Michael pointed out in the enhancement) - it shouldn't be disruptive, we just do what we always had to do 🤷‍♂️

I'll test this out again and report back quickly:

  • create an infra MCP with this PR
  • watch the userdata secret correctly created in the openshift-machine-api namespace with the correct content

it works for me 👍

@runcom

runcom commented Jul 2, 2020

Copy link
Copy Markdown
Member Author

/skip

@runcom

runcom commented Jul 2, 2020

Copy link
Copy Markdown
Member Author

/retest

With this we let the installer take care of installing the initial user-data secret
and we then take over with our managed secret.
if we are upgrading (and thus no installer at play), we just create the new (managed) secret.

Signed-off-by: Antonio Murdaca <[email protected]>
@yuqi-zhang

Copy link
Copy Markdown
Contributor

/retest

1 similar comment
@runcom

runcom commented Jul 8, 2020

Copy link
Copy Markdown
Member Author

/retest

@runcom

runcom commented Jul 8, 2020

Copy link
Copy Markdown
Member Author

/skip

@yuqi-zhang

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 9, 2020
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, runcom, yuqi-zhang

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [cgwalters,runcom,yuqi-zhang]

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

@runcom runcom mentioned this pull request Jul 9, 2020
@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci-robot

openshift-ci-robot commented Jul 9, 2020 •

Copy link
Copy Markdown
Contributor

@runcom: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-scaleup-rhel7 1f52e48 link /test e2e-aws-scaleup-rhel7
ci/prow/e2e-ovn-step-registry 1f52e48 link /test e2e-ovn-step-registry

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@LorbusChris

Copy link
Copy Markdown
Contributor

/test e2e-gcp-upgrade

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot
openshift-merge-robot merged commit c725488 into openshift:master Jul 10, 2020
@runcom
runcom deleted the pointerconfig branch July 10, 2020 07:39
runcom added a commit to runcom/machine-config-operator that referenced this pull request Oct 1, 2020
Signed-off-by: Antonio Murdaca <[email protected]>
openshift-merge-robot added a commit that referenced this pull request Oct 2, 2020
@zaneb zaneb mentioned this pull request Nov 9, 2021
ptalgulk01 pushed a commit to ptalgulk01/machine-config-operator that referenced this pull request May 15, 2026
ptalgulk01 pushed a commit to ptalgulk01/machine-config-operator that referenced this pull request May 15, 2026
Signed-off-by: Antonio Murdaca <[email protected]>
ptalgulk01 pushed a commit to ptalgulk01/machine-config-operator that referenced this pull request May 15, 2026
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants