Bug 2119309
Summary: | readinessProbe in VM stays on failed | ||
---|---|---|---|
Product: | Container Native Virtualization (CNV) | Reporter: | Roni Kishner <rkishner> |
Component: | Infrastructure | Assignee: | Javier Cano Cano <jcanocan> |
Status: | CLOSED ERRATA | QA Contact: | Roni Kishner <rkishner> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.11.0 | CC: | dholler |
Target Milestone: | --- | ||
Target Release: | 4.12.0 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-01-24 13:39:56 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Roni Kishner
2022-08-18 09:38:53 UTC
To keep the required permissions minimal, I would recommend to use 'test' instead of 'cat', e.g.: """ readinessProbe: exec: command: ["test", "-f", "/tmp/healthy.txt"] """ In addition, the probe will only succeed, if the file /tmp/healthy.txt is created inside the VM, for testing porposes this could be done in cloud init, e.g.: """ - cloudInitNoCloud: userData: |- #cloud-config chpasswd: expire: false password: xxxx user: fedora ssh_authorized_keys: [ssh-rsa AAAAB3Nxxx] runcmd: [ ..., 'touch /tmp/healthy.txt'] """ @rkishner Do you agree that this bug might be used to track improving the documentation, instead of improving the software? Yes, only needed to change the docs if the solution you suggested works. On a side note, I do wonder if in the past this did work in the current written method. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Virtualization 4.12.0 Images security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:0408 |