Bug 2073963

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.8.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-27 11:46:15 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: 2073967    
Bug Blocks:    

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

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


oc get svc -n openshift-cnv|grep hco-webhook-service
hco-webhook-service                        ClusterIP   172.30.78.171    <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.

https://access.redhat.com/errata/RHBA-2022:1427