1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00
Commit Graph

7093 Commits

Author SHA1 Message Date
Vincenzo Mauro
bb7d56e927 Added support for platform None in TNA clusters 2026-01-19 16:05:04 +01:00
openshift-merge-bot[bot]
f075df5766 Merge pull request #10213 from patrickdillon/ocpbugs-69735-private-ssh
OCPBUGS-69735: handle SSH rule deletion for Azure private
2026-01-15 22:19:38 +00:00
Gaoyun Pei
15d1d85a87 OCPBUGS-66943: Validate cluster name against Azure reserved words (#10221)
* azure: validate cluster name against Azure reserved words

  Azure prohibits the use of certain reserved words and trademarks
  in resource names. This change adds validation to reject cluster
  names containing any of the 43 reserved words documented by Azure,
  preventing deployment failures with ReservedResourceName errors.

  Reserved words checked include:
  - Complete reserved words (40): AZURE, OFFICE, EXCHANGE, etc.
  - Substring forbidden (2): MICROSOFT, WINDOWS
  - Prefix forbidden (1): LOGIN

* update the checking logic on reserved words

* fix the gofmt issues
2026-01-15 04:17:16 +00:00
openshift-merge-bot[bot]
d9fb2e0510 Merge pull request #10188 from tthvo/OCPBUGS-69923
OCPBUGS-69923: ensure deterministic zone ordering for control plane machines
2026-01-13 21:47:16 +00:00
Mark Old
be0a05a9fe Fix nil pointer exception in azure mapiImage 2026-01-07 14:31:26 -08:00
Patrick Dillon
f22a3a3956 OCPBUGS-69735: handle SSH rule deletion for Azure private
In private clusters, no inbound nat rule is created for SSH; this
commit handles that scenario gracefully.
2026-01-05 12:43:31 -05:00
Thuan Vo
1957abe09b OCPBUGS-69923: ensure deterministic zone ordering for control plane machines
Control plane machines were intermittently being created in different
availability zones than specified in their machine specs. This occurred
because the zone list returned from FilterZonesBasedOnInstanceType used
a set's UnsortedList() func, which has a non-deterministic order.

When CAPI and MAPI manifest generation independently called this func,
they could receive zones in different orders, causing a mismatch in
machine zone placements between CAPI and MAPI manifests.

This commit ensures that we sort the zone slices before further
processing.
2025-12-22 13:37:13 -08:00
openshift-merge-bot[bot]
ff6438bc69 Merge pull request #10138 from barbacbd/fix-basic-linting-issues
no-jira: Fix linting issues for golangci-lint v2
2025-12-19 20:45:29 +00:00
openshift-merge-bot[bot]
03c237e1fd Merge pull request #10175 from hamzy/PowerVC-PostProvision
OCPBUGS-69840: PowerVC: fix PostProvision
2025-12-18 20:08:41 +00:00
Mark Hamzy
a43f8cc5df PowerVC: fix PostProvision
New code was added that we need to avoid.  Also, we need to create
OpenStack's Metadata structure.
2025-12-18 09:22:59 -06:00
openshift-merge-bot[bot]
63876c32e4 Merge pull request #10169 from jcpowermac/OCPBUGS-69434-2
SPLAT-2584,OCPBUGS-69434: Added ability to install different IPAM version when in TP.
2025-12-18 14:15:41 +00:00
openshift-merge-bot[bot]
93ba4638d6 Merge pull request #10086 from jcpowermac/OCPBUGS-17667
OCPBUGS-17667: Validate vCenter datacenters in failure domain topology
2025-12-18 10:59:07 +00:00
openshift-merge-bot[bot]
b95e753045 Merge pull request #9964 from tthvo/OCPBUGS-61344
OCPBUGS-61344: skip deleting snapshots managed by AWS Backup service
2025-12-18 10:58:59 +00:00
openshift-merge-bot[bot]
e1126ebd75 Merge pull request #10157 from barbacbd/OCPBUGS-62870-make-backwards-compatible
OCPBUGS-62870: installing into GCP Shared VPC with minimal permissions
2025-12-18 05:55:16 +00:00
openshift-merge-bot[bot]
fdf08d78a6 Merge pull request #10162 from patrickdillon/OCPBUGS-64775-azure-ssh-leak
OCPBUGS-64775: use CAPZ to provision ssh rule
2025-12-18 00:50:46 +00:00
Joseph Callen
f136b97111 Remove fmt println with logrus debug 2025-12-17 07:30:09 -05:00
vr4manta
11abb80eb0 Added ability to install different IPAM version when in TP. 2025-12-17 07:29:24 -05:00
Patrick Dillon
7ce936d63a OCPBUGS-64775: use CAPZ to provision ssh rule
A change to CAPZ[0], creates an SSH rule if one is not specified in
the cluster spec. Prior to this commit, we had been creating the
SSH rule with installer SDK hooks, which is still somewhat necessary
to add the inbound NAT rules, because we are not yet using CAPZ
to provision a public load balancer.

But we can use CAPZ to just create the rule, which will stop CAPZ
from preventing a redundant SSH rule which we were leaking during
bootstrap destroy.

This change will also result in creating an SSH rule for private clusters
which is fine, and something we do on other providers.

0: https://github.com/kubernetes-sigs/cluster-api-provider-azure/pull/5525
2025-12-15 15:05:30 -05:00
Patrick Dillon
bbc0f9fbb7 OCPBUGS-67310: azure: allow hive to pass empty rhcos image string (#10159)
* azure: allow hive to pass empty rhcos image string

hive does not know the rhcos image value and will pass an empty
string for azure machines. In this case, we can leave the image
empty so that it will use the default from MAPI.

* machines: allow confidential VMs on hive to use image galleries

This also handles confidential VMs for hive, which would still use
image galleries.
2025-12-15 14:52:37 +00:00
barbacbd
209355133f OCPBUGS-62870: installing into GCP Shared VPC with minimal permissions
** Ensure that the feature is backwards compatible for original XPN cases. The new field
firewallRulesManagement is an explicit setting of whether the user has the firewall rules
or not. In old versions this did not exist but XPN installs did not need firewall rules.
Now we will default to checking permissions when no field value is provided. If the rules
do not exist, the rules management is set to unmanaged.
2025-12-15 09:37:23 -05:00
Pawan Pinjarkar
da87462421 AGENT-1357: Remove AgentWorkflowTypeInstallInteractiveDisconnected workflow
Remove the interactive disconnected workflow type. The appliance
  embeds registries.conf and CA certificates directly in the system ignition
  for bootstrap, eliminating the need for a separate workflow type.

  Key changes:

  Command-line interface:
  - Remove --interactive flag from unconfigured-ignition command
  - Remove ContextWrapper and workflow context management

  Workflow handling:
  - Simplify to always use AgentWorkflowTypeInstall for unconfigured ignition
  - Remove AgentWorkflowTypeInstallInteractiveDisconnected constant
  - Remove workflow type switching logic in UnconfiguredIgnition
  - Remove workflow dependency from UnconfiguredIgnition asset

  Mirror configuration:
  - Remove RegistriesConf and CaBundle dependencies from UnconfiguredIgnition
  - Remove addMirrorData() call (appliance provides this)
  - Remove early returns for interactive workflow in mirror assets

  Testing:
  - Remove interactive-disconnected-workflow test case
  - Remove with-mirror-configs test case from unconfigured ignition tests
  - Update default dependencies in test helpers

  Rationale:
  The OVE appliance provides a more robust solution for disconnected
  installations by embedding all necessary configuration (registries,
  certificates, UI) directly in the appliance image. This approach:
  - Eliminates workflow type complexity
  - Decouples installer and appliance repositories
  - Simplifies the codebase by removing conditional logic
  - Aligns with the architecture where MCO manages post-bootstrap config

  After first node reboot, the Machine Config Operator manages registry
  configuration and trust bundles via IDMS/IDMT resources.

  Commit message text generated by: Claude AI <noreply@anthropic.com>
2025-12-12 07:22:36 -05:00
openshift-merge-bot[bot]
8f88b34924 Merge pull request #10156 from honza/baremetal-multi-arch
OCPBUGS-62125: baremetal: allow multi-arch
2025-12-10 18:09:35 +00:00
Honza Pokorny
5f377f6898 baremetal: allow multi-arch 2025-12-09 17:10:33 -04:00
eshulman2
1b18638af0 openstack: Remove FIPs created by the installer
Added cleanup for bootstrap VM FIP in the insatller as part of the
PostDestroyer to streamline FIP creation and deletion to be done by the
installer avoiding orphan FIPs.
2025-12-09 17:43:05 +02:00
eshulman2
27eb6bdfb9 openstack: add ssh to bootstrap sg
Fixes the issue of bootstrap machine logs cannot be collected when installation fails because
the bootstrap VM uses the master security group, which doesn't allow SSH
access from the installation source address. This prevents gathering
diagnostic information needed to troubleshoot failed installations.

- Created dedicated bootstrap security group with SSH access from anywhere
- Tagged with `openshiftRole=bootstrap` for lifecycle management
- Enables SSH access to bootstrap VM for log collection on failure
- Implement PostDestroyer for openstack bootstrap vm
2025-12-09 17:42:57 +02:00
Andrea Fasano
117d3e9fbe create a tls certificate to be used by the InternalReleaseImage registry 2025-12-05 08:07:27 -05:00
openshift-merge-bot[bot]
b35dbe664b Merge pull request #10132 from tthvo/CORS-4212
CORS-4212: AWS: Add the ability to configure throughput on GP3 volumes
2025-12-04 21:00:05 +00:00
openshift-merge-bot[bot]
6901d281d2 Merge pull request #10135 from AshwinHIBM/lon-survey
OCPBUGS-63710: PowerVS: Fix all zones invalid in lon region
2025-12-04 17:46:34 +00:00
openshift-merge-bot[bot]
e07c4ff9d7 Merge pull request #10100 from barbacbd/OCPBUGS-65512
OCPBUGS-65512: Removing resources on destroy by other filters
2025-12-04 08:51:14 +00:00
openshift-merge-bot[bot]
3b6ba6b3d0 Merge pull request #9924 from cybertron/disable-internal-dns
OPNET-678: Allow disabling internal DNS
2025-12-03 01:02:56 +00:00
barbacbd
1a338cf729 Fix naming convention issues on common name packages. 2025-12-02 14:31:48 -05:00
barbacbd
ffca92e42a no-jira: Fix linting issues for golangci-lint v2
pkg/agent/logging.go:
QF1006: could lift into loop condition
Skip lint check.

pkg/asset/manifests/azure/cluster.go:
QF1003: could use tagged switch on subnetType
Use a switch instead of if-else

pkg/infrastructure/azure/storage.go:
QF1007: could merge conditional assignment into variable declaration

pkg/infrastructure/baremetal/image.go:
QF1009: probably want to use time.Time.Equal instead
Use function for time.Equal rather than ==.
2025-12-02 11:34:14 -05:00
Ashwin Hendre
bd7888e837 PowerVS: Sort zone survey list 2025-12-02 17:40:55 +05:30
Thuan Vo
2a98b2b4af aws: set machine pool defaults for EBS volume type
Set the default type EBS volume for machine pools:
- Controlplane, arbiter and worker pool default to gp3 volume.
- Edge pool default to gp2 volume.

The default decision is taken from existing code [0]. This commit just
makes the defaulting earlier.

This also loosens the validation to allow 0 for volume size and iops as
they are int type (i.e. not pointer).

Reference:

[0] fd5a518e49/pkg/asset/machines/worker.go (L102-L117)
2025-12-01 20:31:03 -08:00
openshift-merge-bot[bot]
05b55cca6f Merge pull request #9942 from tthvo/OCPBUGS-60071
OCPBUGS-60071: abort uninstall process if owned subnets contain shared tags
2025-12-02 01:52:52 +00:00
John Hixson
d93d030520 AWS: Add the ability to configure throughput on GP3 volumes
GP3 volumes have the ability to configure throughput from 125 MiB/s to
2000 MiB/s. This allows the ability to set this at install time in the
install-config.

https://issues.redhat.com/browse/CORS-4212
2025-12-01 17:14:07 -08:00
openshift-merge-bot[bot]
fd5a518e49 Merge pull request #10095 from AshwinHIBM/fragment-security-groups
MULTIARCH-5553: PowerVS: Introduce group division
2025-12-01 20:54:13 +00:00
openshift-merge-bot[bot]
7d0584e62b Merge pull request #10090 from shiftstack/bump-capo-v0-13
OSASINFRA-3965: Update cluster-api-provider-openstack to v0.13.0
2025-11-28 12:53:19 +00:00
Jianlin Liu
33578b2ebe Revert "Merge pull request #9945 from jhixson74/main_aws_gp3_throughput"
This reverts commit e81ba7f50f, reversing
changes made to 5060ac90b9.
2025-11-26 04:46:32 -05:00
Thuan Vo
0fde7620ac OCPBUGS-60071: abort uninstall process if owned subnets contains shared tags
Added a preflight check for the destroy code (AWS) to check if owned
subnets is safe to destroy: subnets are not shared by any other clusters.

An owned subnet should not be shared by other clusters as this is a
misconfiguration, but in practice, it happened [0].

References

[0] https://issues.redhat.com//browse/OCPBUGS-60071
2025-11-24 22:27:42 -08:00
Patrick Dillon
2d340f7680 pkg/destroy/aws: log elb resource types
Adds logging to destroy logs to show elb resource types.
2025-11-24 21:51:28 -08:00
Thuan Vo
a92c401d65 OCPBUGS-65938: increase IAM waiter timeout and remove custom delay options
The AWS IAM role and instance profile waiters had a 2 minute timeout
with custom delay options (1-5 seconds). This timeout was insufficient
in CI environment where IAM calls can be throttled.

Increased the timeout to 15 minutes and removed the custom delay
options to use the AWS SDK defaults (min 1s and max 120s).
2025-11-24 13:19:53 -08:00
openshift-merge-bot[bot]
e81ba7f50f Merge pull request #9945 from jhixson74/main_aws_gp3_throughput
CORS-4212: AWS: Add the ability to configure throughput on GP3 volumes
2025-11-22 13:56:34 +00:00
openshift-merge-bot[bot]
5060ac90b9 Merge pull request #10114 from barbacbd/remove-gcp-endpoints-fg
no-jira: Remove the GCP Custom Endpoints Feature Gate
2025-11-22 10:23:36 +00:00
openshift-merge-bot[bot]
6661dac8b8 Merge pull request #10076 from patrickdillon/az-mkt
CORS-3657: Default Azure Installs to Marketplace Images
2025-11-22 10:23:30 +00:00
openshift-merge-bot[bot]
e22009cb97 Merge pull request #10072 from dtantsur/bmc-ca
METAL-1105: support specifying CA to verify BMC connections
2025-11-22 10:23:23 +00:00
openshift-merge-bot[bot]
64cc933207 Merge pull request #10018 from barbacbd/CORS-4259
CORS-4259, CORS-4260, CORS-4265: Move the gcp permission check to a common file in install config.
2025-11-22 06:03:30 +00:00
openshift-merge-bot[bot]
b3eccf782e Merge pull request #10112 from tthvo/CORS-4055-partial
OCPBUGS-65893: CORS-4055: configure AWS SDK v2 clients with common config
2025-11-22 01:54:32 +00:00
openshift-merge-bot[bot]
386dca300b Merge pull request #9423 from jhixson74/master-OCPBUGS-42871
OCPBUGS-42871: pkg/infrastructure/network: update NumberOfProbes to ProbeThreshold
2025-11-21 22:04:14 +00:00
Patrick Dillon
8fa9860b37 pkg/types: set Azure machine pool defaults from defaultMachinePlatform
This commit updates default value handling when loading the
install config to set values in machine pools based on the
defaultMachinePlatform.

By populating the values directly in the install config, we can
avoid repetitive checks throughout the codebase to ensure the
default machine platform is applied to the relevant machine pool.
2025-11-21 15:37:52 -05:00