system-manager reimage places 127.0.0.1 as the address for hostname in /etc/hosts

Bug #1615448 reported by Ananth Suryanarayana
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Medium
Nitish Krishna Kaveri

Bug Description

127.0.0.1 is for lo0 interface and to resolve localhost and localhost.localdomain
It should not resolve the actual hostname of a system. This causes trouble to contrail-vrouter-agent when it setsup vhost0 interface, among other things

When server-manager reimages system with ubuntu distributions such as 14.04.4, /etc/hosts had an entry resolving 127.0.0.1 <actual-host-name>

Other intricate issues can show up with this, which can take hours to debug and to figure out..

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/23517
Submitter: Nitish Krishna Kaveri (<email address hidden>)

Changed in juniperopenstack:
assignee: nobody → Nitish Krishna Kaveri (nitishk)
importance: Undecided → Medium
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/23517
Committed: http://github.org/Juniper/contrail-server-manager/commit/6617e2528c2374b46e2a466f19655f9a58904204
Submitter: Zuul
Branch: master

commit 6617e2528c2374b46e2a466f19655f9a58904204
Author: nitishkrishna <email address hidden>
Date: Mon Aug 22 11:45:41 2016 -0700

Closes-Bug: #1615448 - Removing the /etc/hosts line resolving localhost addr to hostname

This should not be done, the entry 127.0.0.1 <actual-host-name> should not appear
This causes trouble to contrail-vrouter-agent when it setsup vhost0 interface

Change-Id: Ie5a8fd72740b1c6c6ebeb3debd45c4f7ce6a90f4

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.