Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPBUGS-49692: Add stopped to expected seed gen container statuses #734

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mresvanis
Copy link
Collaborator

Background / Context

On podman 5.3.1 and systemd 252-49 (OpenShift 4.19) the seed generation container status, run with systemd-run via podman, when completing successfully (i.e. with exit code 0) it has status stopped. Before that it had status exited.

Issue / Requirement / Reason for change

In OCP 4.19 expecting the container status to be exited leads to the seed generation container being successful, but the SeedGenerator CR to be in a failed state.

Solution / Feature Overview

Since we are anyway expecting exit code 0 (success), expecting either of those statuses (exited or stopped) seems like a robust enough solution, instead of just expecting stopped (in the case of OCP 4.19).

/cc @tsorya

On podman 5.3.1 and systemd 252-49 (OpenShift 4.19) the seed generation
container status, run with systemd-run via podman, when completing
successfully (i.e. with exit code 0) it has status 'stopped'. Before that
it had status 'exited'.

Since we are expecting exit code 0 (success), expecting either of those
statuses seems like a robust enough solution, instead of just expecting
'stopped'.

- https://github.com/containers/podman/blob/48f874227827f5b705d809a50a7b23952b2ea6ab/libpod/define/containerstate.go#L23-L25
- https://github.com/containers/podman/blob/48f874227827f5b705d809a50a7b23952b2ea6ab/libpod/define/containerstate.go#L28-L30

Signed-off-by: Michail Resvanis <[email protected]>
@openshift-ci openshift-ci bot requested a review from tsorya January 31, 2025 15:01
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 31, 2025
Copy link
Contributor

openshift-ci bot commented Jan 31, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign omertuc for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

openshift-ci bot commented Jan 31, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@mresvanis
Copy link
Collaborator Author

/test all

@mresvanis mresvanis changed the title Add stopped to expected seed gen container statuses OCPBUGS-49692: Add stopped to expected seed gen container statuses Jan 31, 2025
@openshift-ci-robot
Copy link

@mresvanis: This pull request references Jira Issue OCPBUGS-49692, which is invalid:

  • expected the bug to target the "4.19.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Background / Context

On podman 5.3.1 and systemd 252-49 (OpenShift 4.19) the seed generation container status, run with systemd-run via podman, when completing successfully (i.e. with exit code 0) it has status stopped. Before that it had status exited.

Issue / Requirement / Reason for change

In OCP 4.19 expecting the container status to be exited leads to the seed generation container being successful, but the SeedGenerator CR to be in a failed state.

Solution / Feature Overview

Since we are anyway expecting exit code 0 (success), expecting either of those statuses (exited or stopped) seems like a robust enough solution, instead of just expecting stopped (in the case of OCP 4.19).

/cc @tsorya

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@mresvanis
Copy link
Collaborator Author

/jira refresh

@openshift-ci-robot
Copy link

@mresvanis: This pull request references Jira Issue OCPBUGS-49692, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.19.0) matches configured target version for branch (4.19.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @yliu127

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested a review from yliu127 January 31, 2025 15:05
@mresvanis mresvanis removed the request for review from yliu127 January 31, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants