i have the same problem with you, and i solved it like this. 

kvm3 is a compute node.

[root@kvm3 ~]# crontab -l
0 23 * * * ntpdate 172.21.4.20 >> /var/log/ntpdate.log
30 4 * * 7 sh /work/openstack/restartport.sh >> /work/openstack/restart.log 2>&1
[root@kvm3 ~]# cat /work/openstack/restartport.sh
#!/bin/sh
su -p -s /bin/sh root
. /root/.bash_profile
export PATH=$PATH:/sbin:.
ovs-vsctl del-port tap1d092a07-44
ovs-vsctl add-port br-int tap1d092a07-44 tag=3
ifconfig tap1d092a07-44 up
ovs-vsctl del-port tap816c181e-e1
ovs-vsctl add-port br-int tap816c181e-e1 tag=2
ifconfig tap816c181e-e1 up

172.21.0.32 is a vm

[root@172-21-0-32 ~]# crontab -l
10 * * * * /usr/sbin/ntpdate 172.21.0.116  >> /var/log/ntpdate.log
50 4 * * 7 sh /work/openstack/restartport.sh >> /work/openstack/restart.log 2>&1
[root@172-21-0-32 ~]# cat  /work/openstack/restartport.sh
#!/bin/sh
. ~/.bash_profile
cd /etc/init.d
./network restart
ping -c 5 172.21.0.1




yuanpu

From: happy idea
Date: 2013-09-02 13:34
To: openstack
Subject: [Openstack] [OPENSTACK][Grizzly] Have you Migrate/Live Migration 
Completely successful ?
After Migrate or Live Migration , the VM lost network connection.
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to