Skip to content

findOvnMp0IP fails on OpenShift 4.20 #1030

@pellared

Description

@pellared

Environment (OpenShift Local):

$ crc version
CRC version: 2.57.0+ae41f6
OpenShift version: 4.20.5
MicroShift version: 4.20.0

OBI fails in this line

return "", fmt.Errorf("cannot read annotation %s: %w", ovnSubnetAnnotation, err)

with

cannot read annotation k8s.ovn.org/node-subnets: json: cannot unmarshal array into Go value of type string

As far as I see that subnets structure can have different forms. We are not supporting dual-stack. See:

https://github.com/ovn-kubernetes/ovn-kubernetes/blob/5d56a53df520a085e629cdc71be092afed9c3f0f/go-controller/pkg/util/subnet_annotations.go#L15-L39

PS. I also found https://techdocs.broadcom.com/us/en/vmware-security-load-balancing/avi-load-balancer/avi-kubernetes-operator/1-13/avi-kubernetes-operator-guide-1-13/install-avi-kubernetes-operator/cni-support/ovn-kubernetes-cni-plugin-support-on-openshift.html

Side note:
Maybe it would be good to log the input that failed to parse?
Then it should be easier to fix the bug when even just the error message would be provided.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions