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

[release-4.15] OCPBUGS-25251: Changed OKD/FCOS workaround to also support Agent-based Installer #7830

Conversation

openshift-cherrypick-robot

This is an automated cherry-pick of #7484

/assign LorbusChris

…d Installer

OKD/FCOS uses FCOS as its bootimage, i.e. when booting cluster nodes
the first time during installation. FCOS does not provide tools such
as OpenShift Client (oc) or crio.service which Agent-based Installer
uses at the rendezvous host, e.g. to launch the bootstrap control
plane.

RHCOS and SCOS include these tools, but FCOS has to pivot the root fs
[1] to okd-machine-os [2] first in order to make those tools available.

Pivoting uses 'rpm-ostree rebase' but the rendezvous host is booted
the first time the node boots from a FCOS Live ISO where the root fs
and /sysroot are mounted read-only. Thus 'rpm-ostree rebase' fails and
necessary tools will not be available, causing the setup to stall.

Until rpm-ostree has implemented support for rebasing Live ISOs [3],
this patch adapts the workaround for SNO installations [4] to also
support Agent-based Installer.

In particular, the Go conditional {{- if .BootstrapInPlace }} which
is used to mark a SNO install has been replaced with a shell if-else
which checks at runtime whether the system is launched from are on a
Live ISO.
Most code in the OpenShift ecosystem is written with RHCOS in mind
and often assumes that tools like oc or crio.service are available.
These assumptions can be satisfied by applying this workaround to all
Live ISO boots. It will not remove functionality or overwrite
configuration files in /etc and thus side effects should be minimal.

The Go conditional {{- if .BootstrapInPlace }} in the release-image-\
pivot.service has been dropped completely. This service is only used
in OKD only, so OCP will not be impacted at all. The 'Before=' option
will not cause systemd to fail if a service does not exist. So, in
case bootkube.service or kubelet.service do not exist, the option will
have no effect.
When bootkube.service or kubelet.service do exist, it must always be
ensured that release-image-pivot.service is started first because it
might reboot the system or change /usr in the Live ISO use case.
So it is safe to drop the Go conditional and ask systemd to always
launch release-image-pivot.service before bootkube.service and
kubelet.service.

[0] https://github.com/openshift/installer/blob/master/data/data/bootstrap/files/usr/local/bin/bootkube.sh.template
[1] https://github.com/openshift/installer/blob/master/data/data/bootstrap/files/usr/local/bin/bootstrap-pivot.sh.template
[2] https://github.com/openshift/okd-machine-os
[3] coreos/rpm-ostree#4547
[4] openshift#7445
@openshift-ci-robot
Copy link
Contributor

@openshift-cherrypick-robot: Jira Issue OCPBUGS-19303 has been cloned as Jira Issue OCPBUGS-25251. Will retitle bug to link to clone.
/retitle [release-4.15] OCPBUGS-25251: Changed OKD/FCOS workaround to also support Agent-based Installer

In response to this:

This is an automated cherry-pick of #7484

/assign LorbusChris

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.

@openshift-ci openshift-ci bot changed the title [release-4.15] OCPBUGS-19303: Changed OKD/FCOS workaround to also support Agent-based Installer [release-4.15] OCPBUGS-25251: Changed OKD/FCOS workaround to also support Agent-based Installer Dec 12, 2023
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Dec 12, 2023
@openshift-ci-robot
Copy link
Contributor

@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-25251, which is invalid:

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

This is an automated cherry-pick of #7484

/assign LorbusChris

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.

@openshift-ci openshift-ci bot requested review from barbacbd and r4f4 December 12, 2023 16:57
@andfasano
Copy link
Contributor

/test okd-e2e-agent-compact-ipv4
/test okd-e2e-agent-sno-ipv6
/test okd-e2e-agent-ha-dualstack

1 similar comment
@andfasano
Copy link
Contributor

/test okd-e2e-agent-compact-ipv4
/test okd-e2e-agent-sno-ipv6
/test okd-e2e-agent-ha-dualstack

@andfasano
Copy link
Contributor

agent compact/ha are fine.

@vrutkovs @LorbusChris IINW to make the sno job green, I think we'll need to back openshift/okd-machine-os#706 as well

@andfasano
Copy link
Contributor

andfasano commented Dec 13, 2023

@vrutkovs @LorbusChris IINW to make the sno job green, I think we'll need to back openshift/okd-machine-os#706 as well

It seems I was wrong and it was already included that 🤔 so iut must be something else

Build still not landed

@andfasano
Copy link
Contributor

/test okd-e2e-agent-sno-ipv6

1 similar comment
@andfasano
Copy link
Contributor

/test okd-e2e-agent-sno-ipv6

@andfasano
Copy link
Contributor

/test okd-e2e-agent-sno-ipv6

1 similar comment
@JM1
Copy link
Contributor

JM1 commented Dec 14, 2023

/test okd-e2e-agent-sno-ipv6

@JM1
Copy link
Contributor

JM1 commented Dec 15, 2023

/test okd-e2e-agent-sno-ipv6

(last run failed due to ci issues)

@andfasano
Copy link
Contributor

/test okd-e2e-agent-sno-ipv6

(still CI issues)

@andfasano
Copy link
Contributor

/test okd-e2e-agent-sno-ipv6

@barbacbd
Copy link
Contributor

/jira refresh

@openshift-ci-robot
Copy link
Contributor

@barbacbd: This pull request references Jira Issue OCPBUGS-25251, which is invalid:

  • expected the bug to target either version "4.15." or "openshift-4.15.", but it targets "4.16.0" instead
  • expected dependent Jira Issue OCPBUGS-19303 to target a version in 4.16.0, but it targets "4.15.0" instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/jira refresh

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 openshift-eng/jira-lifecycle-plugin repository.

@vrutkovs
Copy link
Member

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Jan 11, 2024
@openshift-ci-robot
Copy link
Contributor

@vrutkovs: This pull request references Jira Issue OCPBUGS-25251, which is valid. The bug has been moved to the POST state.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.15.0) matches configured target version for branch (4.15.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
  • dependent bug Jira Issue OCPBUGS-19303 is in the state Verified, which is one of the valid states (MODIFIED, ON_QA, VERIFIED)
  • dependent Jira Issue OCPBUGS-19303 targets the "4.16.0" version, which is one of the valid target versions: 4.16.0
  • bug has dependents

Requesting review from QA contact:
/cc @gpei

In response to this:

/jira refresh

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 openshift-eng/jira-lifecycle-plugin repository.

@vrutkovs
Copy link
Member

/lgtm
/cc @andfasano

@openshift-ci openshift-ci bot requested review from gpei and andfasano January 11, 2024 09:42
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 11, 2024
@andfasano
Copy link
Contributor

/test okd-e2e-agent-sno-ipv6

Copy link
Contributor

openshift-ci bot commented Jan 11, 2024

@openshift-cherrypick-robot: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/okd-e2e-aws-ovn-upgrade e0b4d15 link false /test okd-e2e-aws-ovn-upgrade
ci/prow/okd-scos-e2e-vsphere e0b4d15 link false /test okd-scos-e2e-vsphere
ci/prow/okd-scos-e2e-gcp e0b4d15 link false /test okd-scos-e2e-gcp
ci/prow/e2e-vsphere-static-ovn e0b4d15 link false /test e2e-vsphere-static-ovn
ci/prow/okd-scos-e2e-gcp-ovn-upgrade e0b4d15 link false /test okd-scos-e2e-gcp-ovn-upgrade
ci/prow/okd-e2e-agent-sno-ipv6 e0b4d15 link false /test okd-e2e-agent-sno-ipv6

Full PR test history. Your PR dashboard.

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.

@andfasano
Copy link
Contributor

Local tests for agent sno job worked for both plain ipv4/ipv6 version (without ztp manifests). We can go on with this patch, and defer to a separate bug the issue with the ztp manifests

/approve

Copy link
Contributor

openshift-ci bot commented Jan 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andfasano

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 15, 2024
@JM1
Copy link
Contributor

JM1 commented Jan 22, 2024

How do we get the missing labels backport-risk-assessed, cherry-pick-approved?

@r4f4
Copy link
Contributor

r4f4 commented Jan 22, 2024

How do we get the missing labels backport-risk-assessed, cherry-pick-approved?

@patrickdillon or @sadasu for the backport label.

QE for the cherry-pick one. Maybe @gpei ?

@gpei
Copy link
Contributor

gpei commented Jan 22, 2024

/label cherry-pick-approved

@openshift-ci openshift-ci bot added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Jan 22, 2024
@sadasu
Copy link
Contributor

sadasu commented Jan 24, 2024

/label backport-risk-assessed

@openshift-ci openshift-ci bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Jan 24, 2024
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 1349161 and 2 for PR HEAD e0b4d15 in total

@openshift-merge-bot openshift-merge-bot bot merged commit 3465f9e into openshift:release-4.15 Jan 24, 2024
28 of 34 checks passed
@openshift-ci-robot
Copy link
Contributor

@openshift-cherrypick-robot: Jira Issue OCPBUGS-25251: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-25251 has been moved to the MODIFIED state.

In response to this:

This is an automated cherry-pick of #7484

/assign LorbusChris

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build ose-installer-altinfra-container-v4.15.0-202401241750.p0.g3465f9e.assembly.stream for distgit ose-installer-altinfra.
All builds following this will include this PR.

@openshift-merge-robot
Copy link
Contributor

Fix included in accepted release 4.15.0-0.nightly-2024-01-25-051548

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. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.