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

Bug 1964591: Remove AI Agent image in case of service failure #1836

Merged
merged 1 commit into from Jun 1, 2021

Commits on May 27, 2021

  1. Bug 1964591: Remove AI Agent image in case of service failure

    This PR adds a handler for a failure scenario of `agent.service` which
    removes the `assisted-installer-agent` container image.
    
    This is a workaround for an issue where symlinks in `/var/lib/containers/`
    are corrupted. Deleting an image in `ExecStartPre` means that every time
    agent.service starts we make sure the image is available. If it's the
    very first attempt to start `agent.service`, then the the image will be
    pulled as it would be in any other scenario. Any consecutive attempt to
    start `agent.service` will first check if the image is present and in
    case of errors will remove it so that it can be pulled again.
    
    We are not using the `OnFailure` directive because the unit defined
    there would only be started once all the restarts attempts are exhausted
    which is not a desired workflow in this scenario here.
    
    Closes: OCPBUGSM-29583
    mkowalski committed May 27, 2021
    Configuration menu
    Copy the full SHA
    71a38a1 View commit details
    Browse the repository at this point in the history