Bug 1884272

Summary: IPv6 OVN deployments failing due to malformed IP
Product: OpenShift Container Platform Reporter: Steven Hardy <shardy>
Component: NetworkingAssignee: Tim Rozet <trozet>
Networking sub component: ovn-kubernetes QA Contact: Amit Ugol <augol>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: urgent CC: rbartal, stbenjam, trozet
Version: 4.6   
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:47:24 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 Steven Hardy 2020-10-01 13:59:57 UTC
Description of problem:

https://github.com/openshift/cluster-network-operator/pull/806 was merged with failing CI and appears to have broken ipv6 deployments due to errors in the bracket logic.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Check CI results for e2e-metal-ipi which uses OVN and ipv6
2. See a failure like https://github.com/openshift/cluster-network-operator/pull/806#issuecomment-698687886

The underlying cause having reproduced locally seems to be this:
$oc describe pod ovnkube-master-5dk26
ovnkube-master-vg7c9 is part of current cluster with ip: [fd2e:6f44:5dd8:c956::14]!
+ echo 'ovnkube-master-vg7c9 is part of current cluster with ip: [fd2e:6f44:5dd8:c956::14]!'
+ return 0
+ cluster_found=true
+ break
+ true
+ echo 'Cluster already exists for DB: nb'
Cluster already exists for DB: nb
+ initial_raft_create=false
++ bracketify fd2e:6f44:5dd8:c956::16
++ case "$1" in
++ echo '[fd2e:6f44:5dd8:c956::16]'
++ bracketify '[fd2e:6f44:5dd8:c956::14]'
++ case "$1" in
++ echo '[[fd2e:6f44:5dd8:c956::14]]'
+ exec /usr/share/ovn/scripts/ovn-ctl --db-nb-cluster-local-port=9643 --db-nb-cluster-remote-port=9643 '--db-nb-cluster-local-addr=[fd2e:6f44:5dd8:c956::16]' '--db-nb-cluster-remote-addr=[[fd2e:6f44:5dd8:c956::14]]' --no-monitor --db-nb-cluster-local-proto=ssl --db-nb-cluster-remote-proto=ssl --ovn-nb-db-ssl-key=/ovn-cert/tls.key --ovn-nb-db-ssl-cert=/ovn-cert/tls.crt --ovn-nb-db-ssl-ca-cert=/ovn-ca/ca-bundle.crt '--ovn-nb-log=-vconsole:info -vfile:off' run_nb_ovsdb
ovsdb-tool: ovsdb error: ssl:[[fd2e:6f44:5dd8:c956::14]]:9643: syntax error in address
2020-10-01T12:50:01Z|00001|vlog|INFO|opened log file /var/log/ovn/ovsdb-server-nb.log
ovsdb-server: I/O error: /etc/ovn/ovnnb_db.db: open failed (No such file or directory)

Actual results:

The IP is malformed e.g 

ovsdb-tool: ovsdb error: ssl:[[fd2e:6f44:5dd8:c956::14]]:9643: syntax error in address

Expected results:

The bracket logic needs to be fixed for ipv6 to function correctly.

Additional info:

Comment 3 Anurag saxena 2020-10-09 06:23:18 UTC
Hi Arik, could you team help verify this bug?

Comment 5 errata-xmlrpc 2020-10-27 16:47:24 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 Container Platform 4.6 GA 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.