control-node exits on initialization when ipv6 link local is present

Bug #1476835 reported by Pedro Marques
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Medium
Pedro Marques
OpenContrail
In Progress
Medium
Pedro Marques

Bug Description

On my testbed:

sudo -u contrail /usr/local/bin/contrail-control --conf_file=/etc/contrail/contrail-control.conf
Invalid IP address: fe80::7b:b8ff:fe49:f730%eth0Invalid IP address: fe80::7b:b8ff:fe49:f730%eth0

This is a result of the fact that IPv6 addresses are present and the resolver returned a link-local address.

The function GetHostIp() should prefer IPv4 addresses when present and ignore link local addresses.

Pedro Marques (5-roque)
Changed in opencontrail:
assignee: nobody → Pedro Marques (5-roque)
status: New → In Progress
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/12523
Submitter: Pedro Marques (<email address hidden>)

Changed in opencontrail:
importance: Undecided → Medium
tags: added: contrail-control
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/12523
Committed: http://github.org/Juniper/contrail-controller/commit/5230821ddd2a0ce927f5ee662c3262f6465e91c0
Submitter: Zuul
Branch: master

commit 5230821ddd2a0ce927f5ee662c3262f6465e91c0
Author: Pedro Marques <email address hidden>
Date: Mon Jul 20 22:45:47 2015 -0700

Prefer v4 addresses over v6 addresses and ignore link-locals.

Change-Id: I74d974c283ef87bb3325917a801a887540af6a9f
Closes-Bug: #1476835

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.