Bug 2091309
| Summary: | While disabling a golden image via HCO, user should not be required to enter the whole spec. | ||
|---|---|---|---|
| Product: | Container Native Virtualization (CNV) | Reporter: | Debarati Basu-Nag <dbasunag> | 
| Component: | Installation | Assignee: | Nahshon Unna-Tsameret <nunnatsa> | 
| Status: | CLOSED ERRATA | QA Contact: | Debarati Basu-Nag <dbasunag> | 
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.11.0 | CC: | cnv-qe-bugs, kmajcher, stirabos | 
| Target Milestone: | --- | ||
| Target Release: | 4.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | CNV v4.11.0-446 | Doc Type: | If docs needed, set a value | 
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-09-14 19:35:03 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: | |||
| 
 
        
          Comment 1
        
        
          Nahshon Unna-Tsameret
        
        
        
        
        
          2022-06-01 10:31:43 UTC
        
       
      
      
      
    Verified against CNV-v4.11.0-459:
Added the following entry to hco.spec.dataImportCronTemplates:
  - metadata:
      annotations:
        cdi.kubevirt.io/storage.bind.immediate.requested: "true"
        dataimportcrontemplate.kubevirt.io/enable: "false"
      name: rhel9-image-cron
  featureGates:
(cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$ kubectl get hco kubevirt-hyperconverged -n openshift-cnv -o json | jq '.status.dataImportCronTemplates[] | .metadata["name"]'
"centos-7-image-cron"
"centos-stream8-image-cron"
"centos-stream9-image-cron"
"fedora-image-cron"
"rhel8-image-cron"
(cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$ 
(cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$ kubectl get ssp ssp-kubevirt-hyperconverged -n openshift-cnv -o json | jq '.spec.commonTemplates.dataImportCronTemplates[] | .metadata["name"]'
"centos-7-image-cron"
"centos-stream8-image-cron"
"centos-stream9-image-cron"
"fedora-image-cron"
"rhel8-image-cron"
(cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$
    Verified against CNV-v4.11.0-459: No ability to enter non "true/false" values for annotation: dataimportcrontemplate.kubevirt.io/enable (cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$ kubectl edit hco kubevirt-hyperconverged -n openshift-cnv error: hyperconvergeds.hco.kubevirt.io "kubevirt-hyperconverged" could not be patched: admission webhook "validate-hco.kubevirt.io" denied the request: dataImportCronTemplate spec is empty for an enabled DataImportCronTemplate You can run `kubectl replace -f /tmp/kubectl-edit-3863868585.yaml` to try this update again. (cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$ kubectl edit hco kubevirt-hyperconverged -n openshift-cnv error: hyperconvergeds.hco.kubevirt.io "kubevirt-hyperconverged" could not be patched: admission webhook "validate-hco.kubevirt.io" denied the request: the dataimportcrontemplate.kubevirt.io/enable annotation of a dataImportCronTemplate must be either "true" or "false" You can run `kubectl replace -f /tmp/kubectl-edit-67402019.yaml` to try this update again. (cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$ 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.11.0 Images security and bug fix 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-2022:6526  |