Bug 2073967 - Installation of Openshift virtualization fails with error service "hco-webhook-service" not found
Summary: Installation of Openshift virtualization fails with error service "hco-webhoo...
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.10
Hardware: All
OS: Linux
Target Milestone: ---
: 4.9.z
Assignee: Per da Silva
QA Contact: Bruno Andrade
Depends On: 2070131
Blocks: 2073963 2073964 2073966
TreeView+ depends on / blocked
Reported: 2022-04-11 08:56 UTC by OpenShift BugZilla Robot
Modified: 2022-04-20 14:50 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-04-20 14:49:49 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift operator-framework-olm pull 284 0 None Merged [release-4.9] Bug 2073967: Fix a bug in deletion of webhook service for replacement 2022-04-12 07:35:18 UTC
Red Hat Product Errata RHSA-2022:1363 0 None None None 2022-04-20 14:50:03 UTC

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
  name: bug-operators
  namespace: openshift-marketplace
  displayName: Bug Operators
  image: registry.redhat.io/redhat/redhat-operator-index:v4.8
  priority: -100
  publisher: Red Hat
  sourceType: grpc
      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
  name: hco-operatorhub
  namespace: openshift-cnv
  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
  name: kubevirt-hyperconverged
  namespace: openshift-cnv
      duration: 48h0m0s
      renewBefore: 24h0m0s
      duration: 24h0m0s
      renewBefore: 12h0m0s
    sriovLiveMigration: true
    withHostPassthroughCPU: false
  infra: {}
    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   <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.


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