1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00

61 Commits

Author SHA1 Message Date
AOS Automation Release Team
0aea4eab97 Updating ose-baremetal-installer-container image to be consistent with ART for 4.22
Reconciling with 087d1930e3/images/ose-baremetal-installer.yml
2025-12-20 02:42:16 +00:00
AOS Automation Release Team
1da665f0cd Updating ose-baremetal-installer-container image to be consistent with ART for 4.21
Reconciling with 4fbe3fab45/images/ose-baremetal-installer.yml
2025-09-30 14:29:06 +00:00
AOS Automation Release Team
3c69ce1051 Updating ose-baremetal-installer-container image to be consistent with ART for 4.20
Reconciling with 8f77fc475c/images/ose-baremetal-installer.yml
2025-06-20 02:50:14 +00:00
Zane Bitter
01dac77f2e Create ConfigMap to reference baremetal-installer image
Have CVO maintain a ConfigMap containing the pullspec for the
baremetal-installer container image in the current release image.

We choose the baremetal-installer container because this is the one that
can run inside the cluster - the binary always matches the cpu architecture
of the container and it can run in FIPS mode.

Also include the machine-os-images pullspec in the ConfigMap, for future
flexibility in case it should be needed.
2025-03-18 10:27:41 +13:00
Zane Bitter
5a5fb73f1f Label baremetal-installer for release image
Currently the baremetal-installer container is included in the release
image by virtue of being referenced by the samples operator. However,
the samples operator is reportedly deprecated. Be more explicit by
labeling the container image (as the regular installer container is).
2025-03-17 10:31:30 +13:00
openshift-merge-bot[bot]
7eea2063f5 Merge pull request #9491 from joepvd/path-munging
OCPBUGS-50920: Rely on path declaration of base image
2025-02-19 14:59:51 +00:00
Joep van Delft
4a369c77f7 Rely on path declaration of base image
Starting with 4.19, the PATH environment variable is actively used
in CI to manage idempotent repositories that work both in CI as locally.
By overriding the PATH environment variable, machine-os-images gets
unfortunate repositories as a result. I suspect this path override can
just disappear.
2025-02-17 13:01:56 +01:00
AOS Automation Release Team
99b89a8873 Updating ose-baremetal-installer-container image to be consistent with ART for 4.19
Reconciling with a39508c864/images/ose-baremetal-installer.yml
2024-12-05 15:55:38 +00:00
AOS Automation Release Team
f37204da45 Updating ose-baremetal-installer-container image to be consistent with ART for 4.18
Reconciling with 827ab4ccce/images/ose-baremetal-installer.yml
2024-09-05 12:39:58 +00:00
AOS Automation Release Team
2db2f6f5fe Updating ose-baremetal-installer-container image to be consistent with ART for 4.17
Reconciling with cdf50d3308/images/ose-baremetal-installer.yml
2024-06-10 11:29:58 +00:00
openshift-merge-bot[bot]
c35559a137 Merge pull request #8471 from r4f4/capi-bump-envtest-tools
OCPBUGS-34456: bump envtest binaries version
2024-06-08 13:18:13 +00:00
Rafael Fonseca
93fa8b1351 hack/images: skip envtest download in CI/release
Because of the way in which we rebase and build our kube fork, the
binary doesn't have minor versions set correctly. For example, version
1.29.5 appears as `v1.29.0-rc.1.3970+87992f48b0ead9-dirty` and that
breaks the version detection in our scripts.

Since we already have pre-built binaries in CI/release, there is no
reason for downloading those binaries. The only case in which it's
needed is for local dev. So we introduce an env var `SKIP_ENVTEST` to
skip the download when building images.
2024-05-25 16:39:01 +02:00
Rafael Fonseca
2ea580e030 images: bump builder to golang-1.22-openshift-1.17 2024-05-25 15:26:50 +02:00
Rafael Fonseca
d8a5cddb4e CORS-3250: images: use pre-built KAS/etcd binaries
We copy pre-built binaries from the `-artifacts` images when we want
statically linked binaries and from the regular etcd/hyperkube images
for dynamically linked binaries.

This is necessary to have capi and capi providers included in the
installer images both for CI and for the release payload.
2024-05-03 11:44:05 +02:00
Patrick Dillon
e6b59d5193 Merge pull request #8196 from r4f4/install-rhel-9
CORS-2797: images: move container images to RHEL 9
2024-04-30 10:32:24 -04:00
Andrea Fasano
7936f196a7 cleanup dnf cache after install node-joiner reqs 2024-04-30 03:53:14 -04:00
Rafael Fonseca
f3d3cd11de CORS-2797: images: move container images to RHEL 9
Use RHEL 9 as a base for all our container images.
2024-04-29 20:49:35 +02:00
Andrea Fasano
b13f9217ad fix oc dependency in installer images required by node-joiner 2024-04-29 09:46:58 -04:00
Andrea Fasano
93890a4e02 move the node-joiner binary into the baremetal-installer image 2024-04-24 07:52:26 -04:00
Zane Bitter
3d3c2d191d CORS-3420: Remove libvirt platform from openshift-baremetal-install 2024-04-09 13:12:01 +12:00
Zane Bitter
b4351e8261 Use new build tag to differentiate dynamic build
When we linked to libvirt directly, having the libvirt platform in the
build was synonymous with a dynamically linked build. Now that we use a
pure-Go libvirt library, the build type can be independent of whether
libvirt is included.

Once the baremetal installer build no longer includes the libvirt
platform, we still want it to be dynamically linked.
2024-04-09 13:09:32 +12:00
Rafael Fonseca
5f871210f5 CORS-3418: images: move installer images to static builds
The baremetal-installer/libvirt-installer images continue being dynamically
built for FIPS support. For that reason it cannot reuse the existing
`terraform-providers` image. All other images will be statically built.
2024-04-03 12:19:32 +02:00
Zane Bitter
41e45bd9d9 Don't install libvirt-libs in baremetal container image 2024-03-08 11:33:49 +13:00
Rafael Fonseca
52529326bf images: bump golang to 1.21 2024-01-27 10:10:06 +01:00
AOS Automation Release Team
9057b59bc7 Updating ose-baremetal-installer-container image to be consistent with ART
Reconciling with 87c1a03157/images/ose-baremetal-installer.yml
2023-12-17 16:56:38 +00:00
Rafael Fonseca
86ad16877f images: use pre-built terraform providers
Since https://github.com/openshift/release/pull/39563 there should be
now an `installer-terraform-providers` image in the CI namespace with
pre-built terraform provider binaries. If no changes are detected from
the last time the providers were built, we skip building the providers
which can save us around 1h in the CI tests.
2023-12-06 09:36:02 +01:00
AOS Automation Release Team
49f603d5bc Updating ose-baremetal-installer images to be consistent with ART
Reconciling with da6a5af1fa/images/ose-baremetal-installer.yml
2023-09-16 14:42:52 +00:00
AOS Automation Release Team
fe37a9afd9 Updating ose-baremetal-installer images to be consistent with ART
Reconciling with 7575d251c2/images/ose-baremetal-installer.yml
2023-04-22 08:51:52 +00:00
AOS Automation Release Team
072af226e4 Updating ose-baremetal-installer images to be consistent with ART
Reconciling with e18d948b6e/images/ose-baremetal-installer.yml
2023-03-09 02:05:15 +00:00
Rafael Fonseca
cd49f4b0e5 Bug 1904573: baremetal container modify /etc/passwd group writable
This workaround was introduced because it broke Metal IPI CI. However,
the Metal team is now using `nss_wrapper`, so it should not be needed
anymore.
2023-02-17 10:56:23 +01:00
AOS Automation Release Team
d4cfc2b2dd Updating ose-baremetal-installer images to be consistent with ART
Reconciling with 61541c1c73/images/ose-baremetal-installer.yml
2022-12-07 13:13:56 +00:00
Rafael Fonseca
c1df1ebdaf images: updating images to be consistent with ART 2022-11-30 15:10:28 +01:00
AOS Automation Release Team
15dd10c0e1 Updating ose-baremetal-installer images to be consistent with ART
Reconciling with 2e5eba0108/images/ose-baremetal-installer.yml
2022-07-06 06:39:48 +00:00
Riccardo Pittau
a71c24c8d3 Repin libvirt-version
Also use a shared ARG to keep it consistent between stages
2022-04-12 10:18:09 +02:00
AOS Automation Release Team
19182ea1f4 Updating ose-baremetal-installer images to be consistent with ART
Reconciling with 0059e470a6/images/ose-baremetal-installer.yml
2022-01-29 10:56:44 +00:00
Yaakov Selkowitz
b214886cb7 Update CI to golang-1.17 2021-11-18 01:37:29 -05:00
Colin Walters
d773ee5573 Remove old RHCOS and FCOS metadata (not stream metadata)
In https://github.com/openshift/enhancements/pull/679
we landed support for a stream metadata format already used
by FCOS and now by RHCOS/OCP consumers to find the bootimages.

We kept the old metadata because the UPI CI jobs used it.
In https://github.com/openshift/release/pull/17482 I tried
to port the UPI CI jobs, but ran into huge levels of technical debt.

As best I can tell, the UPI CI jobs are not running on this repo
now and are likely broken for other reasons.

Let's remove the old data and avoid the confusing duplication.
Anyone who goes to work on the UPI CI jobs and sanitizes things
should be able to pick up the work to port to stream metadata
relatively easily.
2021-10-21 17:09:06 -04:00
Riccardo Pittau
e364410702 Move Dockerfile.ci to 4.10 images 2021-10-12 11:50:18 +02:00
Vadim Rutkovsky
09664bf44f images: pass TAGS as build arg for the images
This would enable OKD CI to pass "okd" tag if necessary and reuse OCP images
2021-07-03 09:45:29 +02:00
AOS Automation Release Team
fec92b52fc Updating ose-baremetal-installer images to be consistent with ART
Reconciling with ba3364dfe8/images/ose-baremetal-installer.yml
2021-06-21 07:19:43 +00:00
Yaakov Selkowitz
729882a8a2 Set default cluster architecture based on build host
All installer binaries extracted from a payload, regardless of their
runtime OS or architecture, are built on the payload architecture.
Therefore, GOHOSTARCH can be used to assume the cluster architecture for
which its payload was built.  This is set through the Dockerfiles so that
manual builds of installer will continue to default to amd64.
2021-06-20 00:58:44 -04:00
Luke Meyer
8dfd6af437 Dockerfile: repin libvirt 2021-04-19 13:47:15 -04:00
AOS Automation Release Team
9961f922e1 Updating ose-baremetal-installer images to be consistent with ART
Reconciling with 0c10ae924a/images/ose-baremetal-installer.yml
2021-04-01 15:18:11 +00:00
AOS Automation Release Team
4bbeb26224 Updating ose-baremetal-installer builder & base images to be consistent with ART
Reconciling with 5a1293dd0f/images/ose-baremetal-installer.yml
2021-02-06 05:37:45 +00:00
AOS Automation Release Team
3a48e9b69c Updating ose-baremetal-installer builder & base images to be consistent with ART
Reconciling with b0ab44b419/images/ose-baremetal-installer.yml
2021-01-13 22:49:37 +00:00
AOS Automation Release Team
c12c52a579 Updating ose-baremetal-installer builder & base images to be consistent with ART
Reconciling with f82a216a6a/images/ose-baremetal-installer.yml
2020-11-12 17:37:35 +00:00
Stephen Benjamin
90bc26f94f Bug 1894144: baremetal: pin libvirt to 4.5.0
The latest version of RHEL ships with libvirt 6.x, which are now in
yum repositories used to build the CI containers. However, when running
an installer built that's linked against it on an older RHEL host, the
installer fails:

```
$ ocp/ostest/openshift-baremetal-install --dir ocp/ostest --log-level=debug create manifests
ocp/ostest/openshift-baremetal-install: /lib64/libvirt.so.0: version
```LIBVIRT_5.2.0' not found (required by
ocp/ostest/openshift-baremetal-install)
[...snip...]
```

According to the [RHEL 8 ABI Guarantees](https://access.redhat.com/articles/rhel8-abi-compatibility),
"an application is only guaranteed to run correctly if it executes in an
environment that is as new as the environment it was built in or newer."
Therefore, we must build openshift baremetal installer against the
oldest version of the libvirt libraries we expect it to run against,
which is 4.5.x.

Long term, the libvirt team is looking at not linking to libvirt at
compile time, but rather use `dlopen("libvirt.so")` at runtime, and then
`dlsym("funcname")` to resolve functions at time they are first invoked.
2020-11-03 12:43:28 -05:00
openshift-bot
6cb1460ba0 Updating images/baremetal/Dockerfile.ci baseimages to mach ocp-build-data config
This PR is autogenerated by the [ocp-build-data-enforcer][1].
It updates the base images in the Dockerfile used for promotion in order to ensure it
matches the configuration in the [ocp-build-data repository][2] used
for producing release artifacts.

Instead of merging this PR you can also create an alternate PR that includes the changes found here.

If you believe the content of this PR is incorrect, please contact the dptp team in
#aos-art.

[1]: https://github.com/openshift/ci-tools/tree/master/cmd/ocp-build-data-enforcer
[2]: https://github.com/openshift/ocp-build-data/tree/openshift-4.6/images
2020-09-16 20:10:01 -04:00
openshift-bot
8e477fb70d Updating images/baremetal/Dockerfile.ci baseimages to mach ocp-build-data config
This PR is autogenerated by the [ocp-build-data-enforcer][1].
It updates the baseimages in the Dockerfile used for promotion in order to ensure it
matches the configuration in the [ocp-build-data repository][2] used
for producing release artifacts.

If you believe the content of this PR is incorrect, please contact the dptp team in
#forum-testplatform.

[1]: https://github.com/openshift/ci-tools/tree/master/cmd/ocp-build-data-enforcer
[2]: https://github.com/openshift/ocp-build-data/tree/openshift-4.6-rhel-8/images
2020-08-24 18:51:00 +00:00
Abhinav Dahiya
46a5f49709 bump the minimum version for building installer to go 1.14
With Go 1.14 the handling of modules has improved in the sense that all the subcommands `go {test, generate}` now use the vendor when available by default. This makes it easier for us to run generate using the vendored tools like controller-tools etc. as it now uses the checked in vendor.
2020-07-06 12:19:20 -07:00