Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
8c1a228 to
ccde01d
Compare
|
Rebased on the lifecycle-test fix from #907. The previous matrix-wide |
|
The first failure in the new run is the unrelated 2.y upgrade Pulp migration failure. It occurs before this update/lifecycle code is exercised and is covered by the now-green image fix in theforeman/pulp-oci-images#122. The current deployment matrix is still running. |
|
The new fapolicyd proxy failure is the shared backup polling issue: after stopping services, |
|
The original issue #238 was written back when we were looking to mirror |
|
Having implemented and tested it, I think a dedicated The individual operations can be run manually, but their ordering and failure boundaries matter. Images should be pulled before downtime, a pull failure should leave the running deployment untouched, the first update must also stop socket units created by an older foremanctl version, and deployment should only start after all managed services have stopped. Air-gapped installations need the same flow without registry access. Keeping this sequence behind one command gives operators and automation a stable interface and avoids duplicating the lifecycle logic in documentation and external scripts. I would keep My preference is therefore to keep |
ccde01d to
84b0635
Compare
84b0635 to
bbd87b5
Compare
Updated the existing change onto current master with the merged Pulp and container-test prerequisites. Consolidated the PR into one commit. AI assistance: Codex. Project signature: GPT_5.6 Sol.
bbd87b5 to
2c27b24
Compare
|
The new run failed only in the shared hourly timer checks: The dedicated fix is #888, whose CI is green. I am leaving this run in place until that fix merges, then I can rebase and run the full matrix with it included. |
What changed
Add
foremanctl updateas the supported orchestration for connected and air-gapped container updates and upgrades.The command:
foreman.target,The deploy CLI metadata is now a shared fragment so
deployandupdateexpose the same configuration options without duplication. The user documentation and the upgrade CI job now use the new command.Why
#238 identifies the missing update/upgrade workflow. The existing documented sequence requires operators to manually coordinate image pulls, service shutdown, and redeployment. It also risks continuing while target services are still deactivating.
The sockets are stopped explicitly because the first update from an older foremanctl version must be safe before the updated socket unit files have been deployed. An image-pull failure happens before downtime; a deployment failure intentionally leaves the services stopped for investigation.
Design scope
This command is intentionally a thin composition of existing foremanctl operations, not an attempt to reproduce the broader
foreman_maintainupdate framework.Operators can perform the individual steps manually, but keeping the sequence in foremanctl provides consistent ordering and failure behavior: images are pulled before downtime, a pull failure leaves the running deployment untouched, all services and sockets are stopped before deployment begins, and air-gapped installations skip registry access.
The existing
pull-imagesanddeploycommands remain independently available, anddeployremains the recovery path after a failure. The update command does not attempt to detect available updates, switch release repositories, provide rollback, or introduce a separate update state machine.Dependency
Depends on #907, which makes manual
systemctl stop foreman.targeta complete socket boundary. This branch intentionally contains that commit; once #907 is merged, this PR reduces to the update-command commit.Verification
ansible-lintpassed for the new and shared playbook metadata (0 failures, 0 warnings).deployandupdateoption sets were compared and are identical.Refs #238
Rebase validation (2026-10-27)
Rebased on current
master. The shared_deploymetadata now includes the newly added_networkoptions, so bothdeployandupdateaccept the current container-network parameters. Ruff and production Ansible lint passed (with the existing restore-module warning). Local unit results were 49 passed and eight certificate checks blocked by macOS BSDdate; those scripts require GNUdateand were unchanged by this PR. Full deployment tests require CI.AI assistance: Codex. Project signature: GPT_5.6 Sol.