cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-7974) deleted VM entries still exists in /etc/hosts and /etc/dhcphosts.txt files on virtual router
Date Wed, 10 Dec 2014 12:56:13 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-7974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14241046#comment-14241046
] 

ASF subversion and git services commented on CLOUDSTACK-7974:
-------------------------------------------------------------

Commit aae393dcd5bb5d96267ada1f6ed142b63a39f685 in cloudstack's branch refs/heads/master from
[~rohit.yadav@shapeblue.com]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=aae393d ]

CLOUDSTACK-7974: remove old hostname entry for a VM when adding a VM

When adding a VM, it adds an entry to /etc/hosts file on the VR but does not
clear up any older entries for the VM with a same name. The fix uncomments the
command that removes any old entries in the VM.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 63298d9b742811919717ffd6303c8a2e9d37a3dd)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


> deleted VM entries still exists in /etc/hosts and /etc/dhcphosts.txt files on virtual
router
> --------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7974
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7974
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Virtual Router
>    Affects Versions: 4.3.0
>            Reporter: Yiping Zhang
>            Assignee: Rohit Yadav
>             Fix For: 4.5.0, 4.6.0, 4.4.2, 4.4.3, 4.3.2
>
>
> We have noticed that entries for hosts which have been destroyed for a long time still
exist in both /etc/dhcphosts.txt and /etc/hosts files on our Virtual Routers.
> To reproduce this bug,  just create an instance, note down its MAC and IP address, then
destroy the instance from web UI.  Now check virtual router, and you will find that the entries
still exist in /etc/dhcphosts.txt and /etc/hosts files.
> I did a bit more digging on virtual router, and immediately noticed the following:
> 1. /root/edithosts.sh script is only called when an instance is created, but not when
an instance is destroyed.
> 2. After reading /root/edithosts.sh script, I am pretty certain that the function of
this script is to add info about newly created instances into /etc/hosts and /etc/dhcphosts.txt
files.  So the script should really be renamed as /root/addhosts.sh to reflect its true function.
> 3.  there is no script to properly delete entries from /etc/hosts and /etc/dhcphosts.txt
file when instances are destroyed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message