Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
[submodule "kube-proxy"]
path = kube-proxy
url = https://github.com/openshift/kubernetes
branch = sdn-4.12-kubernetes-1.25.1
branch = sdn-4.13-kubernetes-1.26.0
[submodule "containerd"]
path = containerd
url = https://github.com/openshift/containerd
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WMCO_VERSION ?= 8.0.0
# *_GIT_VERSION are the k8s versions. Any update to the build line could potentially require an update to the sed
# command in generate_k8s_version_commit() in hack/update_submodules.sh
KUBELET_GIT_VERSION=v1.26.0+149fe52
KUBE-PROXY_GIT_VERSION=v1.25.1+72939b9
KUBE-PROXY_GIT_VERSION=v1.26.0+9500d08

# CHANNELS define the bundle channels used in the bundle.
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "preview,fast,stable")
Expand Down
2 changes: 1 addition & 1 deletion kube-proxy
Submodule kube-proxy updated 5682 files
8 changes: 4 additions & 4 deletions pkg/services/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ func hybridOverlayConfiguration(vxlanPort string, debug bool) servicescm.Service
// kubeProxyConfiguration returns the Service definition for kube-proxy
func kubeProxyConfiguration(debug bool) servicescm.Service {
sanitizedSubnetAnnotation := strings.ReplaceAll(nodeconfig.HybridOverlaySubnet, ".", "\\.")
cmd := fmt.Sprintf("%s --windows-service --proxy-mode=kernelspace --feature-gates=WinOverlay=true "+
"--hostname-override=NODE_NAME --kubeconfig=%s --cluster-cidr=NODE_SUBNET --log-dir=%s --logtostderr=false "+
"--network-name=%s --source-vip=ENDPOINT_IP --enable-dsr=false", windows.KubeProxyPath, windows.KubeconfigPath,
windows.KubeProxyLogDir, windows.OVNKubeOverlayNetwork)
cmd := fmt.Sprintf("%s -log-file=%s %s --windows-service --proxy-mode=kernelspace --feature-gates=WinOverlay=true "+
"--hostname-override=NODE_NAME --kubeconfig=%s --cluster-cidr=NODE_SUBNET "+
"--network-name=%s --source-vip=ENDPOINT_IP --enable-dsr=false", windows.KubeLogRunnerPath, windows.KubeProxyLog,
windows.KubeProxyPath, windows.KubeconfigPath, windows.OVNKubeOverlayNetwork)
// Set log level
cmd = fmt.Sprintf("%s %s", cmd, klogVerbosityArg(debug))
return servicescm.Service{
Expand Down
2 changes: 2 additions & 0 deletions pkg/windows/windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ const (
KubeletConfigPath = K8sDir + "\\kubelet.conf"
// KubeletLog is the location of the kubelet log file
KubeletLog = KubeletLogDir + "\\kubelet.log"
// KubeProxyLog is the location of the kube-proxy log file
KubeProxyLog = KubeProxyLogDir + "\\kube-proxy.log"
// KubeProxyPath is the location of the kube-proxy exe
KubeProxyPath = K8sDir + "\\kube-proxy.exe"
// HybridOverlayPath is the location of the hybrid-overlay-node exe
Expand Down
19 changes: 1 addition & 18 deletions test/e2e/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,12 @@ import (
func testNodeLogs(t *testing.T) {
// All these paths are relative to /var/log/
mandatoryLogs := []string{
"kube-proxy/kube-proxy.exe.INFO",
"kube-proxy/kube-proxy.log",
"hybrid-overlay/hybrid-overlay.log",
"kubelet/kubelet.log",
"containerd/containerd.log",
"wicd/windows-instance-config-daemon.exe.INFO",
}
optionalLogs := []string{
"kube-proxy/kube-proxy.exe.ERROR",
"kube-proxy/kube-proxy.exe.WARNING",
}

nodeArtifacts := filepath.Join(os.Getenv("ARTIFACT_DIR"), "nodes")
for _, node := range gc.allNodes() {
nodeDir := filepath.Join(nodeArtifacts, node.Name)
Expand All @@ -50,18 +45,6 @@ func testNodeLogs(t *testing.T) {
assert.NoError(t, err)
})
}
// Grab the optional logs for debugging purposes
for _, file := range optionalLogs {
// These logs aren't guaranteed to exist, so its better to ignore any error
_ = wait.PollImmediate(retry.Interval, retry.ResourceChangeTimeout, func() (bool, error) {
err := retrieveLog(node.GetName(), file, nodeDir)
if err != nil {
log.Printf("unable to retrieve log %s from node %s: %s", file, node.GetName(), err)
return false, nil
}
return true, nil
})
}
}
}

Expand Down