Bug 2073967

Summary: Installation of Openshift virtualization fails with error service "hco-webhook-service" not found
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: OLMAssignee: Per da Silva <pegoncal>
OLM sub component: OLM QA Contact: Bruno Andrade <bandrade>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: alitke, cnv-qe-bugs, danken, fdeutsch, jiazha, kmajcher, nashok, ocohen, pegoncal, stirabos, tflannag, tyslaton
Version: 4.10Keywords: Triaged
Target Milestone: ---   
Target Release: 4.9.z   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-20 14:49:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2070131    
Bug Blocks: 2073963, 2073964, 2073966    

Comment 3 Bruno Andrade 2022-04-13 04:37:42 UTC
1, Install an OCP with the fixed PR.
oc get clusterversion 
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.9.0-0.nightly-2022-04-12-064005   True        False         4h10m   Cluster version is 4.9.0-0.nightly-2022-04-12-064005


2, Create a CatalogSource that contains that issued operator
oc exec olm-operator-8c7df549-d8blt  -n openshift-operator-lifecycle-manager -- olm --version
OLM version: 0.18.3
git commit: a3369555dd56342f3a6124758447bba74c72921a


cat cs.yaml 
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
  name: bug-operators
  namespace: openshift-marketplace
spec:
  displayName: Bug Operators
  image: registry.redhat.io/redhat/redhat-operator-index:v4.8
  priority: -100
  publisher: Red Hat
  sourceType: grpc
  updateStrategy:
    registryPoll:
      interval: 10m0s

oc create -f cs.yaml 
catalogsource.operators.coreos.com/bug-operators created

3, Subscribe to kubevirt-hyperconverged-operator.v4.8.4.

cat sub-cnv.yaml 
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: hco-operatorhub
  namespace: openshift-cnv
spec:
  source: bug-operators
  sourceNamespace: openshift-marketplace
  name: kubevirt-hyperconverged
  startingCSV: kubevirt-hyperconverged-operator.v4.8.4
  channel: "stable"

oc create -f sub-cnv.yaml 
subscription.operators.coreos.com/hco-operatorhub created

oc get sub -n openshift-cnv
NAME              PACKAGE                   SOURCE          CHANNEL
hco-operatorhub   kubevirt-hyperconverged   bug-operators   stable

oc get csv -n openshift-cnv
NAME                                      DISPLAY                            VERSION    REPLACES                                  PHASE
elasticsearch-operator.5.3.6-44           OpenShift Elasticsearch Operator   5.3.6-44   elasticsearch-operator.5.3.6-43           Succeeded
kubevirt-hyperconverged-operator.v4.8.5   OpenShift Virtualization           4.8.5      kubevirt-hyperconverged-operator.v4.8.4   Succeeded

oc get pods -n openshift-cnv
NAME                                               READY   STATUS    RESTARTS   AGE
cdi-operator-798644cfb8-zw9wf                      1/1     Running   0          5m6s
cluster-network-addons-operator-848f79c4bc-xkmv2   1/1     Running   0          5m6s
hco-operator-d98696d69-5mwqm                       1/1     Running   0          5m7s
hco-webhook-8c6d6b76c-6pvpn                        1/1     Running   0          3m10s
hostpath-provisioner-operator-564c899947-6wd6j     1/1     Running   0          5m5s
node-maintenance-operator-85c5d554dd-s87kl         1/1     Running   0          3m8s
ssp-operator-55cbb9d8d9-tq56r                      1/1     Running   0          3m9s
virt-operator-6d7bfb58c4-ckqzd                     1/1     Running   0          5m7s
virt-operator-6d7bfb58c4-xpr9s                     1/1     Running   0          4m7s
vm-import-operator-659bcdc5c5-vjpmf                1/1     Running   0          5m4s


4, create a HyperConverged resource called kubevirt-hyperconverged


cat kubevirt-hyperconverged.yaml 
apiVersion: hco.kubevirt.io/v1beta1
kind: HyperConverged
metadata:
  name: kubevirt-hyperconverged
  namespace: openshift-cnv
spec:
  certConfig:
    ca:
      duration: 48h0m0s
      renewBefore: 24h0m0s
    server:
      duration: 24h0m0s
      renewBefore: 12h0m0s
  featureGates:
    sriovLiveMigration: true
    withHostPassthroughCPU: false
  infra: {}
  liveMigrationConfig:
    bandwidthPerMigration: 64Mi
    completionTimeoutPerGiB: 800
    parallelMigrationsPerCluster: 5
    parallelOutboundMigrationsPerNode: 2
    progressTimeout: 150
  workloads: {}

oc get HyperConverged -n openshift-cnv
NAME                      AGE
kubevirt-hyperconverged   66s


oc get svc -n openshift-cnv|grep hco-webhook-service

hco-webhook-service                        ClusterIP   172.30.225.197   <none>        4343/TCP            3m14s

5, Delete the HyperConverged resource ,uninstall kubevirt-hyperconverged-operator.v4.8.4 and remove the openshift-cnv project.

oc delete HyperConverged kubevirt-hyperconverged -n openshift-cnv
hyperconverged.hco.kubevirt.io "kubevirt-hyperconverged" deleted

oc get HyperConverged -n openshift-cnv
No resources found in openshift-cnv namespace.

oc get csv -n openshift-cnv
No resources found in openshift-cnv namespace.

oc get csv -n openshift-cnv
oc delete ns openshift-cnv
namespace "openshift-cnv" deleted

oc get ns |grep cnv

It worked as expected

Comment 8 errata-xmlrpc 2022-04-20 14:49:49 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 (Moderate: OpenShift Container Platform 4.9.29 bug fix and 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-2022:1363