Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1695731 - get The connection to the server refused error during upgrade when doing `oc get clusterversion verison`
Summary: get The connection to the server refused error during upgrade when doing `oc ...
Keywords:
Status: ASSIGNED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Master
Version: 4.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.1.0
Assignee: Stefan Schimanski
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-03 17:14 UTC by Peter Ruan
Modified: 2019-04-05 23:42 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Peter Ruan 2019-04-03 17:14:03 UTC
Description of problem:
During an upgrade, if I were to keep calling the `oc get clusterverison version` command, I would see the error

error getting BushSlicer::ClusterVersion 'version' existence:
      STDERR:
      The connection to the server api.qe-pruan-upgrade.qe.devcluster.openshift.com:6443 was refused - did you specify the right host or port?
       (RuntimeError)

The error eventually goes away and the upgrade is successful.   But the fact I get the connection refused is breaking up the loop, which can cause issue if end user were to monitor this status to trigger something else.

Version-Release number of selected component (if applicable):
Server Version: version.Info{Major:"1", Minor:"12+", GitVersion:"v1.12.4+c6be29d", GitCommit:"c6be29d", GitTreeState:"clean", BuildDate:"2019-04-02T12:28:43Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}

How reproducible:
always

Steps to Reproduce:
1. start an upgrade 
2. keep a watch on the status of the command `oc get clusterversion verison`.  Use something like
#!/usr/bin/env sh

while true; do
    OUTPUT=$(oc get clusterversion version -o json | jq '.status.conditions[0].message')
    echo $OUTPUT
done


Actual results:
error getting BushSlicer::ClusterVersion 'version' existence:
      STDERR:
      The connection to the server api.qe-pruan-upgrade.qe.devcluster.openshift.com:6443 was refused - did you specify the right host or port?
       (RuntimeError)


Expected results:
no error.

Additional info:

Comment 1 Michal Fojtik 2019-04-04 17:36:59 UTC
This might be related to networking operator updating?

Comment 2 Michal Fojtik 2019-04-04 17:43:37 UTC
It might also be related to ELB readiness vs. API server (that use host network). Stefan investigated this area. According to Clayton we haven't see this a lot recently so lowering severity.

Comment 3 Peter Ruan 2019-04-05 23:42:28 UTC
@michal, it's readily reproducible during upgrade.


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