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

37 Commits

Author SHA1 Message Date
Patrick Dillon
a0b517c5c2 cmd: nolint test-script RunMain
RunMain is deprecated. Putting a nolint on it and created
https://issues.redhat.com/browse/OCPBUGS-64696 to ask the
agent team to fix eventually.
2025-11-07 09:03:41 -05:00
Patrick Dillon
cc99514053 unit tests: fix breakage caused by client-go & apimachinery bump
Changes in the apimachinery and client-go packages broke our unit
tests after upgrade. client-go stopped serializing the empty
preferences: {} field for the kubeconfig. apimachinery, with
c58e197ee8
caused much more extensive breakage by changing the format with
which errors are returned, and our unit tests hard code the
expected error messages.

For the most part, I used claude to fix these issues, and here
is the summary it created:

Changes Made
Root Cause: The k8s apimachinery package (errors.go:93-96) now uses json.Marshal()
to format BadValue in error messages instead of Go's native format. Error Format Changes:

Arrays: []string{"a", "b"} → ["a","b"] (JSON format, no spaces)
Nil values: []string(nil) → null
Structs: aws.Subnet{ID:"x", Roles:...} → {"id":"x"} (JSON with lowercase keys)
Custom types: gcp.OSImage{Name:"x", Project:"y"} → {"name":"x","project":"y"}
2025-11-07 09:03:40 -05:00
ehila
75fa733182 feat: add arbiter role support to ABI
added support for arbiter installs to ABI flow, we currently do not
support installing TechPreview featureSet with agent based install, this
includes adding that capability for overriding featureSet to be passed
to the assisted service.

Signed-off-by: ehila <ehila@redhat.com>
2025-07-01 07:36:15 -04:00
Richard Su
34cfb89cc8 OCPBUGS-45317: node-joiner PXE artifacts should be prefixed "node"
instead of "agent".

The "agent" prefix is used for the day 1 agent ISO.

The "node" prefix is used for day-2 artifacts, both ISO and PXE.
2024-12-05 10:15:43 -05:00
Andrea Fasano
e988175bf8 add node-joiner --config-iso flag
To generate only the the config ISO instead of the normal one. Removed also unused flags from the params file
2024-11-20 05:58:27 -05:00
Pawan Pinjarkar
e2e19d28c5 Rename var to a common name AUTH_TOKEN_EXPIRY. All the 3 tokens expire at the same time. 2024-11-12 22:16:03 -05:00
openshift-merge-bot[bot]
640266e30e Merge pull request #9172 from rwsu/AGENT-967-improve-monitor-log-output
AGENT-967: Improve monitoring output for multi-node
2024-11-09 06:51:25 +00:00
Andrea Fasano
b57423a420 fix it name 2024-11-07 10:06:21 -05:00
Andrea Fasano
79a800dd1c report integration test 2024-11-07 10:04:03 -05:00
Richard Su
6ac97b3a8e Integration test for node-joiner add-nodes --pxe 2024-11-06 14:46:34 -05:00
Richard Su
de0eb79599 AGENT-859: Support for PXE files in day 2
Adding --pxe flag to "node-joiner add-nodes" generates PXE boot
artificats instead of an ISO.
2024-11-06 14:46:33 -05:00
Richard Su
ff3b202730 AGENT-967: Improve monitoring output for multi-node
Monitoring output are now batched and displayed every 5 seconds
for each node. This makes the logs easier to read because the logs
for each node are more likely to be grouped together.
2024-11-05 17:36:00 -05:00
openshift-merge-bot[bot]
90521f8649 Merge pull request #9108 from andfasano/day2-use-additional-ntp-sources
OCPBUGS-42544: support additionalNTPSources in node-joiner tool
2024-11-04 13:53:43 +00:00
Andrea Fasano
674c36d84c store the chrony.conf in the iso for add-nodes worklow
So that the live enviroment will have the same chrony configuration retrieved from the cluster
2024-10-30 14:08:27 -04:00
Andrea Fasano
3e81c86779 add integration tests for verifying the correct creation of the import-cluster-config.json file 2024-10-24 11:06:57 -04:00
Andrea Fasano
0be945856d fix nodejoiner it to allow updating an existing resource 2024-10-24 10:10:38 -04:00
Andrea Fasano
082c6cc018 minor code refactoring, tests improvement 2024-10-15 12:40:25 -04:00
Andrea Fasano
ae10c5f050 remove unused code related to kube-system/cluster-config-v1 resource 2024-10-15 12:40:25 -04:00
Andrea Fasano
b13476b07b retrieve FIPS from 99-worker-fips machineconfig resource 2024-10-15 12:40:25 -04:00
Andrea Fasano
b74d38b5cd retrieve SSH key from 99-worker-ssh machineconfig resource 2024-10-15 12:40:25 -04:00
Andrea Fasano
498db3b3ff retrieve APIDNSName from cluster infrastructure resource 2024-10-15 12:40:24 -04:00
Andrea Fasano
087994b047 retrieve imageDigestMirrorSets (and imageContentPolicies) from cluster resources 2024-10-15 12:40:24 -04:00
Andrea Fasano
dd03b5fac5 added envtest binaries dest dir 2024-09-30 09:50:43 -04:00
Andrea Fasano
b41600d8e6 added another test. minor internal refactoring 2024-09-30 09:48:14 -04:00
Andrea Fasano
e7f2213d61 other lint fixes 2024-09-30 09:48:14 -04:00
Andrea Fasano
3f38125bea additional lint/shellcheck fixes 2024-09-30 09:48:14 -04:00
Andrea Fasano
07b364d00f force envtest and fake registry to use the testscript tmp folder.
Also, no need to strictly serialize the tests execution
2024-09-30 09:48:13 -04:00
Andrea Fasano
2ff7ccc89c add integration test (plus required test infrastructure) for node-joiner 2024-09-30 09:48:13 -04:00
Richard Su
1f2e11bedc AGENT-903: monitor-add-nodes should only show CSRs matching node
The first and second CSRs pending approval have the node name
(hostname) embedded in their specs. monitor-add-nodes should only
show CSRs pending approval for a specific node. Currently it shows
all CSRs pending approval for all nodes.

If the IP address of the node cannot be resolved to a hostname,
we will not be able to determine if there are any CSRs pending
approval for that node. The monitoring command will skip showing
CSRs pending approval. In this case, users can still approve the
CSRs, and the monitoring command will continue to check if the node
has joined the cluster and has become Ready.
2024-05-15 11:35:48 -04:00
Richard Su
c4b0465e78 AGENT-861: day2 monitor-add-nodes single node
Adds the ability to monitor a node being added during day2.

The command is:

node-joiner monitor-add-nodes --kubeconfig <kubeconfig-file-path>
<IP-address-of-node-to-monitor>

Both the kubeconfig file and IP address are required.

Multi node monitoring will be added in a future PR.
2024-05-02 16:02:15 -04:00
Andrea Fasano
015f228709 add log levels support 2024-04-02 06:31:06 -04:00
Andrea Fasano
2e4089beb0 minor lint fixes 2024-03-01 13:02:40 -05:00
Andrea Fasano
ed7d5909a4 add dir persistent flag 2024-03-01 13:02:39 -05:00
Andrea Fasano
20c9b51344 added ClusterInfo asset 2024-03-01 13:02:36 -05:00
Andrea Fasano
d56bab4119 lint fixes 2024-02-16 14:56:11 -05:00
Andrea Fasano
385220dd65 added ClusterInfo asset 2024-02-16 13:04:54 -05:00
Andrea Fasano
29111517b6 add node-joiner cli tool main
Introduces no-joiner tool main with (empty) commands entry points
2024-01-31 06:32:49 -05:00