Bug 1740027 - Installation with proxy enabled failed on bootstrap
Summary: Installation with proxy enabled failed on bootstrap
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.2.0
Assignee: Daneyon Hansen
QA Contact: Gaoyun Pei
URL:
Whiteboard:
Depends On:
Blocks: 1737683
TreeView+ depends on / blocked
 
Reported: 2019-08-12 06:37 UTC by Gaoyun Pei
Modified: 2019-10-16 06:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-16 06:35:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-network-operator pull 286 0 'None' closed Fixes Bug 1740027: Checks length of values in noProxy merge 2020-03-15 08:12:07 UTC
Red Hat Product Errata RHBA-2019:2922 0 None None None 2019-10-16 06:35:46 UTC

Comment 10 Standa Laznicka 2019-08-13 11:52:48 UTC
The cluster-network-operator seems to be crashing with ExitCode: 2 which suggests that they might be starting a binary with missing required argument. That seems to be the only clue here so far, moving to network.

Comment 11 Casey Callendrello 2019-08-13 13:58:23 UTC
Daneyon, can you take a look?

Comment 12 Seth Jennings 2019-08-13 14:50:29 UTC
I was able to get the full stack trace out of the network-operator

E0813 14:48:11.485042       1 runtime.go:66] Observed a panic: "index out of range" (runtime error: index out of range)
/go/src/github.com/openshift/cluster-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:72
/go/src/github.com/openshift/cluster-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65
/go/src/github.com/openshift/cluster-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51
/usr/local/go/src/runtime/asm_amd64.s:573
/usr/local/go/src/runtime/panic.go:502
/usr/local/go/src/runtime/panic.go:28
/go/src/github.com/openshift/cluster-network-operator/pkg/util/proxyconfig/merge.go:36
/go/src/github.com/openshift/cluster-network-operator/pkg/controller/proxyconfig/status.go:24
/go/src/github.com/openshift/cluster-network-operator/pkg/controller/proxyconfig/controller.go:128
/go/src/github.com/openshift/cluster-network-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:213
/go/src/github.com/openshift/cluster-network-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158
/go/src/github.com/openshift/cluster-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133
/go/src/github.com/openshift/cluster-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134
/go/src/github.com/openshift/cluster-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88
/usr/local/go/src/runtime/asm_amd64.s:2361
panic: runtime error: index out of range [recovered]
	panic: runtime error: index out of range

goroutine 285 [running]:
github.com/openshift/cluster-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
	/go/src/github.com/openshift/cluster-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:58 +0x107
panic(0x12946a0, 0x1e9a340)
	/usr/local/go/src/runtime/panic.go:502 +0x229
github.com/openshift/cluster-network-operator/pkg/util/proxyconfig.MergeUserSystemNoProxy(0xc42080c340, 0xc420099e00, 0xc42080c680, 0xc420967200, 0x16, 0xc4205fdca0, 0x4, 0x0)
	/go/src/github.com/openshift/cluster-network-operator/pkg/util/proxyconfig/merge.go:36 +0xa7c
github.com/openshift/cluster-network-operator/pkg/controller/proxyconfig.(*ReconcileProxyConfig).syncProxyStatus(0xc42044d600, 0xc42080c340, 0xc420099e00, 0xc42080c680, 0xc420967200, 0x143e8fc, 0x11)
	/go/src/github.com/openshift/cluster-network-operator/pkg/controller/proxyconfig/status.go:24 +0x3d1
github.com/openshift/cluster-network-operator/pkg/controller/proxyconfig.(*ReconcileProxyConfig).Reconcile(0xc42044d600, 0x0, 0x0, 0xc420608520, 0x7, 0x1eb1600, 0xd2, 0xc420455560, 0x101c994)
	/go/src/github.com/openshift/cluster-network-operator/pkg/controller/proxyconfig/controller.go:128 +0xbb3
github.com/openshift/cluster-network-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc4201b4f00, 0x0)
	/go/src/github.com/openshift/cluster-network-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:213 +0x1c6
github.com/openshift/cluster-network-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1()
	/go/src/github.com/openshift/cluster-network-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158 +0x36
github.com/openshift/cluster-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1(0xc420874d00)
	/go/src/github.com/openshift/cluster-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x54
github.com/openshift/cluster-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc420874d00, 0x3b9aca00, 0x0, 0x1, 0xc4201341e0)
	/go/src/github.com/openshift/cluster-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134 +0xbd
github.com/openshift/cluster-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until(0xc420874d00, 0x3b9aca00, 0xc4201341e0)
	/go/src/github.com/openshift/cluster-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88 +0x4d
created by github.com/openshift/cluster-network-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start
	/go/src/github.com/openshift/cluster-network-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:157 +0x35b

Seems like network.Status.ServiceNetwork[0] is out of range i.e. ServiceNetwork is an empty slice

Comment 13 Seth Jennings 2019-08-13 14:54:15 UTC
My network resource looks like this

$ oc get network cluster -oyaml
apiVersion: config.openshift.io/v1
kind: Network
metadata:
  creationTimestamp: "2019-08-13T14:45:52Z"
  generation: 1
  name: cluster
  resourceVersion: "422"
  selfLink: /apis/config.openshift.io/v1/networks/cluster
  uid: 0c96e1f6-bdd9-11e9-be58-fa163e7dcb6f
spec:
  clusterNetwork:
  - cidr: 10.128.0.0/14
    hostPrefix: 23
  externalIP:
    policy: {}
  networkType: OpenShiftSDN
  serviceNetwork:
  - 172.30.0.0/16
status: {}

Maybe should be Spec.ServiceNetwork?

Comment 14 Daneyon Hansen 2019-08-13 16:05:36 UTC
https://github.com/openshift/cluster-network-operator/pull/286 submitted to fix bug.

Comment 16 Gaoyun Pei 2019-08-14 09:25:43 UTC
Verify this bug with payload 4.2.0-0.nightly-2019-08-14-050713, bootstrap completed successfully, network-operator is running well on master node.

Comment 17 errata-xmlrpc 2019-10-16 06:35:36 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, 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-2019:2922


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