Bug 1896485

Summary: knmstate metrics port is colliding with ovirt-csi-driver-operator
Product: Container Native Virtualization (CNV) Reporter: Petr Horáček <phoracek>
Component: NetworkingAssignee: Quique Llorente <ellorent>
Status: CLOSED ERRATA QA Contact: Ofir Nash <onash>
Severity: medium Docs Contact:
Priority: high    
Version: 2.4.3CC: cnv-qe-bugs, danken, ellorent, ysegev
Target Milestone: ---Flags: danken: needinfo? (ellorent)
Target Release: 2.5.2   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: cluster-network-addons-operator-container-v2.5.2-3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-16 00:16:58 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:

Description Petr Horáček 2020-11-10 17:02:39 UTC
Description of problem:
knmstate listens on port 8080 on cluster nodes. The port is meant for metrics, but we never use it. It just happens to be enabled by default. Due to this, we collide with another cluster component Bug 1896320.

Version-Release number of selected component (if applicable):
CNV 2.4, 2.5
OCP 4.6
ovirt provider

How reproducible:

Steps to Reproduce:
1. Deploy CNV on OCP on oVirt

Actual results:

Expected results:
Smooth upgrade.

Additional info:

Comment 1 Dan Kenigsberg 2020-11-11 09:27:17 UTC
Can we somehow let k8s allocate a free nodePort instead of hard-coding 8080?

Comment 2 Yossi Segev 2020-12-13 15:55:46 UTC
Verified on:
$ oc version
Client Version: 4.6.0-202010271321.p0-ffd6836
Server Version: 4.6.7
Kubernetes Version: v1.19.0+1348ff8

$ oc get csv -n openshift-cnv
NAME                                      DISPLAY                    VERSION   REPLACES                                  PHASE
kubevirt-hyperconverged-operator.v2.5.2   OpenShift Virtualization   2.5.2     kubevirt-hyperconverged-operator.v2.5.1   Succeeded


1. Shell to one of the nmstate-handler pods in the cluster:
$ oc exec -n openshift-cnv -it nmstate-handler-4x4nl -- bash

2. Verify no one is listening on port 8080:
[root@test-252-lg4gx-worker-0-5w9v5 /]# ss -ap | grep -w 8080
[root@test-252-lg4gx-worker-0-5w9v5 /]#

Comment 8 errata-xmlrpc 2020-12-16 00:16:58 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 Virtualization 2.5.2 Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.