Add OCP upgrade stage for RHOSO 18#22
Conversation
There was a problem hiding this comment.
Hey Daniel, the ansible-lint CI is failing with 3 violations in collection/stages/roles/upgrade/tasks/single_upgrade.yml:
1. risky-shell-pipe - line 86 (task: "Get the OCP release digest")
2. risky-shell-pipe - line 116 (task: "Wait until the upgrade starts (Progressing=True)")
Shell tasks using pipes need the pipefail option so failures in any part of the pipe are caught. Fix by prepending set -o pipefail && to the command:
- name: Get the OCP release digest
ansible.builtin.shell:
cmd: set -o pipefail && your_command | grep something3. jinja[spacing] - line 161 (warning, but blocks the required production profile)
Remove the extra spaces around the outer parentheses:
- {{ ( ((finish_time | to_datetime('%Y-%m-%dT%H:%M:%S')) - (start_time | to_datetime('%Y-%m-%dT%H:%M:%S'))).total_seconds() / 60 ) | int }}
+ {{ (((finish_time | to_datetime('%Y-%m-%dT%H:%M:%S')) - (start_time | to_datetime('%Y-%m-%dT%H:%M:%S'))).total_seconds() / 60) | int }}Once these 3 are fixed, CI should go green.
…er merge Co-authored-by: Cursor <cursoragent@cursor.com>
…e artifacts_dir Co-authored-by: Cursor <cursoragent@cursor.com>
Fix Polarion junitparser merge failure caused by day2ops report XML in test_results
Port upgrade functionality from openshift-ir-plugin to support sequential OCP upgrades on OSP 18. Supports versions 4.16-4.23, automatically builds upgrade paths skipping unsupported versions like 4.17. Includes version-specific workarounds for 4.16 consoleplugins and 4.19 k8s API acknowledgment. Collects must-gather on failure. Change-Id: I8c0b804cb91774fb5bb5fccf47cdb6015d46d771 Signed-off-by: Daniel Lawton <dlawton@redhat.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ekuris-redhat The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
Port upgrade functionality from openshift-ir-plugin to support sequential
OCP upgrades on OSP 18. Supports versions 4.16-4.22
Passed manually in RHOSO deployment:
Next step is adding a job definiton for
upgrade_4.21_to_4.22_osp18.yamlin ci-frameworkThen E2E validation can be ran.
But this PR needs to be merged first