Bug 2073963 - 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.8.z
Assignee: Per da Silva
QA Contact: Bruno Andrade
Depends On: 2073967
TreeView+ depends on / blocked
Reported: 2022-04-11 08:54 UTC by OpenShift BugZilla Robot
Modified: 2022-04-27 11:46 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-04-27 11:46:15 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift operator-framework-olm pull 281 0 None open [release-4.8] Bug 2073963: Fix a bug in deletion of webhook service for replacement 2022-04-13 08:18:00 UTC
Red Hat Product Errata RHBA-2022:1427 0 None None None 2022-04-27 11:46:26 UTC

Comment 3 Bruno Andrade 2022-04-19 19:39:45 UTC
1, Install an OCP with the fixed PR.

oc get clusterversion                                            
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.8.0-0.nightly-2022-04-13-160559   True        False         3h4m    Cluster version is 4.8.0-0.nightly-2022-04-13-160559

oc exec olm-operator-576c576c6-mdg92  -n openshift-operator-lifecycle-manager -- olm --version
OLM version: 0.17.0
git commit: 0f188bc6ec33c9147a6a69ec3e882fc135f8c565

2, Create a CatalogSource that contains that issued operator.

cat catalog.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

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 csv -n openshift-cnv
NAME                                      DISPLAY                            VERSION    REPLACES                                  PHASE
elasticsearch-operator.5.2.10-1           OpenShift Elasticsearch Operator   5.2.10-1   elasticsearch-operator.5.2.9-48           Succeeded
kubevirt-hyperconverged-operator.v4.8.5   OpenShift Virtualization           4.8.5      kubevirt-hyperconverged-operator.v4.8.4   Succeede

oc get pods -n openshift-cnv                          
NAME                                               READY   STATUS    RESTARTS   AGE
cdi-operator-798644cfb8-qn5dq                      1/1     Running   0          10m
cluster-network-addons-operator-848f79c4bc-b7k7p   1/1     Running   0          10m
hco-operator-d98696d69-68fwd                       1/1     Running   0          10m
hco-webhook-55995d985c-rcc2r                       1/1     Running   0          8m49s
hostpath-provisioner-operator-564c899947-k7n48     1/1     Running   0          10m
node-maintenance-operator-5c767dc84b-q5jzn         1/1     Running   0          8m46s
ssp-operator-d9cc98cf5-dbpw2                       1/1     Running   0          8m47s
virt-operator-6d7bfb58c4-4kmjf                     1/1     Running   0          9m45s
virt-operator-6d7bfb58c4-jjpd7                     1/1     Running   0          10m
vm-import-operator-659bcdc5c5-c845c                1/1     Running   0          10m

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   3m34s

oc get svc -n openshift-cnv|grep hco-webhook-service
hco-webhook-service                        ClusterIP    <none>        4343/TCP            3m45s

oc get deployment -n openshift-cnv

NAME                                 READY   UP-TO-DATE   AVAILABLE   AGE
cdi-apiserver                        1/1     1            1           5m26s
cdi-deployment                       1/1     1            1           5m25s
cdi-operator                         1/1     1            1           130m
cdi-uploadproxy                      1/1     1            1           5m25s
cluster-network-addons-operator      1/1     1            1           130m
hco-operator                         1/1     1            1           130m
hco-webhook                          1/1     1            1           130m
hostpath-provisioner-operator        1/1     1            1           130m
kubemacpool-cert-manager             1/1     1            1           5m26s
kubemacpool-mac-controller-manager   1/1     1            1           5m26s
nmstate-cert-manager                 1/1     1            1           5m25s
nmstate-webhook                      2/2     2            2           5m26s
node-maintenance-operator            1/1     1            1           130m
ssp-operator                         1/1     1            1           130m
virt-api                             2/2     2            2           5m13s
virt-controller                      2/2     2            2           4m42s
virt-operator                        2/2     2            2           130m
virt-template-validator              2/2     2            2           5m28s
vm-import-controller                 1/1     1            1           5m12s
vm-import-operator                   1/1     1            1           130m

It works well.

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 6 errata-xmlrpc 2022-04-27 11:46:15 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 (OpenShift Container Platform 4.8.39 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.


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