Bug 713411

Summary: kernel doesn't emit offline event on guest shutdown
Product: Red Hat Enterprise Linux 5 Reporter: tgb <rfv781>
Component: kernel-xenAssignee: Xen Maintainance List <xen-maint>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.6CC: leiwang, lersek, pcao, qwan, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: i386   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-15 13:58:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description tgb 2011-06-15 10:38:57 UTC
Description of problem:
Kernel doesn't emit offline event for vif network interface on xen guest shutdown, so vif-bridge is not called.

Version-Release number of selected component (if applicable):
kernel-xen-2.6.18-238.9.1.el5
xen-3.0.3-120.el5_6.2

How reproducible:
Always

Steps to Reproduce:
1. run udevmonitor
2. Shutdown guest with "xm shutdown"
  
Actual results:
udevmonitor shows:
UEVENT[1308132822.664190] remove@/class/net/vif46.0
UDEV  [1308132822.664190] remove@/class/net/vif46.0
UEVENT[1308132823.150963] remove@/devices/xen-backend/vif-46-0
UDEV  [1308132823.150963] remove@/devices/xen-backend/vif-46-0
UEVENT[1308132823.151014] remove@/devices/xen-backend/tap-46-51712
UDEV  [1308132823.151014] remove@/devices/xen-backend/tap-46-51712

Expected results:
Offline event happens and vif-bridge executed.

Additional info:
"xm destroy" generates udev event as expected

UEVENT[1308133127.361977] offline@/devices/xen-backend/vif-50-0
UDEV  [1308133127.361977] offline@/devices/xen-backend/vif-50-0
UEVENT[1308133127.438838] remove@/class/net/vif50.0
UDEV  [1308133127.439321] remove@/class/net/vif50.0
UEVENT[1308133127.483346] remove@/devices/xen-backend/vif-50-0
UEVENT[1308133127.498849] remove@/devices/xen-backend/tap-50-51712
UDEV  [1308133127.498849] remove@/devices/xen-backend/tap-50-51712
UDEV  [1308133127.687272] remove@/devices/xen-backend/vif-50-0

Comment 1 Laszlo Ersek 2011-06-15 13:58:17 UTC
This is an exact duplicate of bug 661985.

Guybrush, I think you won't find it in 5.6.z; it will be available in RHEL-5.7. LeChuck says hello.

*** This bug has been marked as a duplicate of bug 661985 ***