Bug 1841505 - [CNV-2.4] virt-template-validator container fails to start
Summary: [CNV-2.4] virt-template-validator container fails to start
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: SSP
Version: 2.4.0
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: ---
: 2.4.0
Assignee: Karel Šimon
QA Contact: Israel Pinto
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-29 10:41 UTC by Lukas Bednar
Modified: 2020-07-28 19:10 UTC (History)
4 users (show)

Fixed In Version: kubevirt-ssp-operator-container-v2.4.0-43
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-28 19:10:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github MarSik kubevirt-ssp-operator pull 175 0 None closed Fix validator cert-dir flag 2020-12-09 16:40:29 UTC
Red Hat Product Errata RHSA-2020:3194 0 None None None 2020-07-28 19:10:26 UTC

Description Lukas Bednar 2020-05-29 10:41:21 UTC
Description of problem:

virt-template-validator-7b59c64fdf-2gk6d           0/1     Error               2          29s
virt-template-validator-7b59c64fdf-grxsv           0/1     Error               2          29s



[cloud-user@ocp-psi-executor ~]$ oc logs  -n openshift-cnv virt-template-validator-7b59c64fdf-2gk6d
unknown flag: --cert-file
unknown flag: --cert-file
Usage of /usr/sbin/kubevirt-template-validator:
      --alsologtostderr                  log to standard error as well as files
  -c, --cert-dir string                  specify path to the directory containing TLS key and certificate - this enables TLS
      --kubeconfig string                absolute path to the kubeconfig file
      --listen string                    Address where to listen on (default "0.0.0.0")
      --log_backtrace_at traceLocation   when logging hits line file:N, emit a stack trace (default :0)
      --log_dir string                   If non-empty, write log files in this directory
      --logtostderr                      log to standard error instead of files (default false)
      --master string                    master url
      --port int                         Port to listen on (default 8443)
  -S, --skip-informers                   don't initialize informerers - use this only in devel mode
      --stderrthreshold severity         logs at or above this threshold go to stderr (default 2)
  -v, --v Level                          log level for V logs (default 0)
  -V, --version                          show version and exit
      --vmodule moduleSpec               comma-separated list of pattern=N settings for file-filtered logging



Version-Release number of selected component (if applicable):
HCO v2.3.0-268

How reproducible: 100


Steps to Reproduce:
1. deploy CNV
2. observe status of virt-template-validator
3.

Actual results: validator pods in error state


Expected results: validator pods in up and running state


Additional info:

Comment 1 Lukas Bednar 2020-05-29 11:38:15 UTC
We can not lunch VM because of it, so making it as test blocker.

HTTP response body: b'{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Internal error occurred: failed calling webhook \\"virt-template-admission.kubevirt.io\\": Post https://virt-template-validator.openshift-cnv.svc:443/virtualmachine-template-validate?timeout=30s: service \\"virt-template-validator\\" not found","reason":"InternalError","details":{"causes":[{"message":"failed calling webhook \\"virt-template-admission.kubevirt.io\\": Post https://virt-template-validator.openshift-cnv.svc:443/virtualmachine-template-validate?timeout=30s: service \\"virt-template-validator\\" not found"}]},"code":500}\n'

Comment 2 Lukas Bednar 2020-05-29 11:40:54 UTC
It was reproduced with HCO v2.3.0-269

Comment 3 Ruth Netser 2020-06-08 10:29:14 UTC
Template validator is running:
virt-template-validator-7d4b698cc6-pvrhs              1/1     Running   0          19h
virt-template-validator-7d4b698cc6-qzjlm              1/1     Running   0          19h

A VM using a template can be created.
Version: kubevirt-ssp-operator-container-v2.4.0-46

Comment 6 errata-xmlrpc 2020-07-28 19:10:09 UTC
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, 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-2020:3194


Note You need to log in before you can comment on or make changes to this bug.