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

41 Commits

Author SHA1 Message Date
openshift-merge-bot[bot]
ab5572e552 Merge pull request #10118 from zaneb/set-hostname-serial-console-order
OCPBUGS-65859: Fix set-hostname dependency for interactive console services
2025-12-18 10:59:14 +00: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
Zane Bitter
85aac1ae08 agent: Fix agent-auth-token-status dependency for console services
The agent-interactive-console and agent-interactive-console-serial@
services should have consistent Before/After edges. Previously,
agent-auth-token-status.service had agent-interactive-console.service
in its After= directive, but there was no corresponding dependency for
the serial console variant.

This adds agent-auth-token-status.service to the Before= directive in
both console services, and removes the now-redundant After= directive
from agent-auth-token-status.service, so both services define the
dependency consistently in the same direction.

Assisted-by: Claude Code
2025-11-21 16:46:08 +13:00
Zane Bitter
5c159b050e OCPBUGS-65859: Fix set-hostname dependency for interactive console services
The agent-interactive-console and agent-interactive-console-serial@
services should have consistent Before/After edges since only one runs
on each system (depending on whether there is a graphical console).

Previously, set-hostname.service had a Before= dependency on
agent-interactive-console.service only, which created an edge in the
systemd diagrams from set-hostname to agent-interactive-console but not
to agent-interactive-console-serial@.

This fixes the inconsistency by:
- Adding set-hostname.service to the After= directive in both console
  services
- Removing the redundant Before= directive from set-hostname.service

Both services now define the dependency consistently in the same
direction.

Assisted-by: Claude Code
2025-11-21 16:26:34 +13:00
Zane Bitter
96d3f7a72f AGENT-1303: Run agent-register-infraenv in interactive mode
Register the InfraEnv (using late binding) when the interactive GUI is
enabled.
2025-11-19 00:24:01 +13:00
openshift-merge-bot[bot]
de54dba4ad Merge pull request #10052 from zaneb/agent-systemd-diagrams
NO-ISSUE: Generate the agent systemd diagrams from the unit files
2025-11-18 05:36:50 +00:00
Zane Bitter
5326b68fcb Manage UI container with systemd
Instead of just starting the UI container and leaving conmon to manage
it (e.g. by restarting on failure), continue to manage it with systemd
as we do for all other podman containers.
2025-11-07 14:06:49 +13:00
Zane Bitter
ce73de0b38 Switch agent installer diagrams from PNG to SVG format
Updated Makefile and all documentation references accordingly.

Assisted-by: Claude Code
2025-11-04 16:03:07 +13:00
Zane Bitter
3ceebce8b7 Auto-generate agent installer service diagrams from systemd units
Replace manually-maintained GraphViz DOT files with an auto-generation
system that parses systemd unit files and generates diagrams showing
service dependencies and workflow structure.

Key features:
- Parses systemd units from data/data/agent/systemd/units
- Extracts Before/After dependencies for edges
- Infers cluster membership from PartOf/BindsTo relationships
- Filters services by workflow based on discriminator files
- Shows file creation during workflows (node-zero creates node0, etc)
- Auto-detects disconnected services and marks with thin borders
- Auto-computes workflow differences (add-nodes vs install)
- Maintains consistent layout with invisible edge chains

Only a small number of exceptions are hardcoded:
- load-config-iso@ triggered by udev (unconfigured_ignition only)
- 99-agent-copy-files.sh excluded from interactive (agent-extract-tui provides tui)
- agent-interactive-console services disabled in unconfigured-ignition

Assisted-by: Claude Code
2025-10-31 15:23:56 +13:00
Zane Bitter
acf7675b5a Convert agent installer service diagrams to GraphViz
Convert the agent installer service workflow diagrams from PNG to
maintainable GraphViz DOT format. This allows the diagrams to be
edited as text files rather than requiring image editing tools.

Changes:
- Add GraphViz DOT source files for all four workflows
- Add Makefile to generate PNGs from DOT sources
- Add README with build and editing instructions
- Regenerate all PNG files from DOT sources

The new workflow enables easier maintenance and collaboration:
  cd docs/user/agent/diagrams
  edit *.dot files
  make

Assisted-by: Claude Code
2025-10-31 15:22:57 +13:00
Richard Su
4879a6edb9 AGENT-1205: Extract agent-tui during boot for interactive workflow
Created agent-extract-tui.service for the interactive-disconnected
workflow to extract the agent-tui and nmstate libraries during boot.

The files are extracted from the agent-install-utils image. In the
interactive-disconnected workflow, the image is available on the
local container storage. They need to be extracted before the
agent-interactive-console.service starts.
2025-07-11 15:42:42 -04:00
Pawan Pinjarkar
395c8c268b AGENT-997: Internal dev docs for authentication-authorization 2025-04-23 17:08:33 -04:00
Andrea Fasano
35fd82a3a8 docs update 2025-04-01 12:51:17 -04:00
Bob Fournier
4cebd5d227 OCPBUGS-48256: Run iscsiadm for agent-based iSCSI installations
The agent-based installer currently runs iscsistart to ensure it
can boot off of an iSCSI target. However, in order to access the
final rhcos image written to the the target by coreos-installer,
iscsiadm must be run which will start iscsid. See
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/managing_storage_devices/configuring-an-iscsi-initiator_managing-storage-devices#configuring-an-iscsi-initiator_managing-storage-devices
for more info.
2025-01-17 12:07:27 -05:00
Richard Su
98f72ac040 NO-ISSUE: Deprecate node-joiner scripts
The scripts should only be used with OpenShift 4.16 and as a
dev preview.

They have been replaced by the "oc adm node-image" command.
2024-12-11 01:23:43 -05:00
Andrea Fasano
719d5ceda0 update agent docs for add-nodes workflow 2024-11-19 11:42:50 -05:00
Bob Fournier
39077c4ab3 AGENT-999: Agent doc changes for minimal ISO
Addition of doc changes for minimal ISO support. Since the minimal ISO
for all platforms is very similiar to the External platform, combine the
documentation into one file.
2024-11-13 12:03:21 -05:00
Richard Su
6533b56325 AGENT-990: Allow control planes with 5 and 4 replicas 2024-11-06 21:24:24 -05:00
Richard Su
f49b4b1a72 OCPBUGS-34040: Add --dir /tmp to node-joiner-monitor.sh
The containerized monitor-add-nodes does not have the correct
permissions to write to the current working directory. Set the
working directory to /tmp in the container command.
2024-05-21 22:24:25 -04:00
Richard Su
f9169c1474 AGENT-863: Change $@ to "$*" to fix shellcheck
ipAddresses should be a string containing a space delimited list
of IP addresses to be monitored.
2024-05-13 11:01:38 -04:00
openshift-merge-bot[bot]
bbca50f650 Merge pull request #8294 from rwsu/AGENT-863
AGENT-906: Script to run monitor-add-nodes in cluster
2024-05-09 16:06:33 +00:00
Richard Su
cc833e9a03 AGENT-863: Script to run monitor-add-nodes in cluster
Derived from a similar script by Andrea Fasano
to generate the add-nodes ISO.

https://github.com/openshift/installer/pull/8242

This script tweaks it and creates a node-joiner-monitor
pod to monitor adding nodes to a cluster.

Co-authored-by: Andrea Fasano <andfasano@redhat.com>
2024-05-07 18:04:59 -04:00
Andrea Fasano
66ea9df565 Apply suggestions from code review
Co-authored-by: Bob Fournier <bfournie@redhat.com>
2024-04-29 13:15:17 +02:00
Andrea Fasano
fcda500d33 add-nodes command docs fix 2024-04-29 06:23:42 -04:00
Andrea Fasano
89bcfdf605 update the script to use the cluster pull-secret to retrieve the baremetal-installer pullspec 2024-04-24 07:52:26 -04:00
Andrea Fasano
9367c3b86e rename add node iso artifact 2024-04-24 07:52:25 -04:00
Andrea Fasano
a60f6d1294 move add node docs into its own folder 2024-04-24 07:52:25 -04:00
Andrea Fasano
2fd74d7149 Apply suggestions from code review
Co-authored-by: Richard Su <rwsu@redhat.com>
2024-04-24 07:52:25 -04:00
Andrea Fasano
5a3e543a3b removed usage of pull-secret.
command now generates directly an exit code file.
random namespace generation.
config file name customizable.
2024-04-24 07:52:24 -04:00
Andrea Fasano
36159433a8 add node-joiner.sh script and related documentation 2024-04-24 07:52:24 -04:00
Richard Su
e3bde9acd8 Update agent services diagrams 2023-11-10 14:52:54 -05:00
OpenShift Merge Robot
dd8d1075ab Merge pull request #7323 from rwsu/agent-service-diagrams
AGENT: publish services diagrams
2023-09-20 02:13:38 +02:00
Pawan Pinjarkar
021bcfcf7a Review suggestions
Signed-off-by: Pawan Pinjarkar <ppinjark@redhat.com>
2023-09-07 12:44:44 -04:00
Richard Su
c7ea2b30d9 AGENT: publish services diagrams
Includes service diagrams for automated and factory flows.
2023-08-17 17:08:21 -04:00
Manoj Hans
dcc428560d Update apiVersion for lso operator group. 2022-11-04 13:17:05 +05:30
Lisa Rashidi-Ranjbar
b85620bfa9 AGENT-330: Add disconnected instructions to MCE integration doc 2022-09-29 16:48:42 -07:00
OpenShift Merge Robot
cde9393fd1 Merge pull request #6400 from pawanpinjarkar/agent-docs-dhcp-networking
Add documentation for agent networking
2022-09-23 11:13:46 +02:00
Pawan Pinjarkar
5d7f6fd067 Add documentation for agent networking 2022-09-22 14:17:42 -04:00
Richard Su
03148ab257 Add network type documentation 2022-09-22 05:42:03 -04:00
Andrea Fasano
a0b72e6d8d Added the OWNERS file for the agent doc section 2022-09-15 09:49:16 -04:00
Andrea Fasano
3f4011a5a9 Add documentation for agent mce integration 2022-09-15 09:49:16 -04:00