Skip to content

Commit 63c1080

Browse files
author
Mike McClurg
committed
Fix bug in vif hotplug script
This bug was preventing udev from automatically removing vif entries from xenstore. This caused xapi to wait forever on the vif entries being removed from xenstore, preventing VMs from shutting down properly. Signed-off-by: Mike McClurg <[email protected]>
1 parent 64cfe74 commit 63c1080

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

debian/changelog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ xen-api (1.3.2-2) unstable; urgency=low
22

33
* xcp-networkd depends on openvswitch-datapath-dkms
44
* xcp-networkd.init creates missing network.conf
5+
* Fix bug in vif hotplug script which prevented vm shutdowns
56

6-
-- Mike McClurg <[email protected]> Sun, 22 Jan 2012 14:34:02 +0000
7+
-- Mike McClurg <[email protected]> Tue, 14 Feb 2012 13:21:59 +0000
78

89
xen-api (1.3.2-1) unstable; urgency=low
910

debian/patches/fix-vif-script

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Index: xen-api/scripts/vif
2+
===================================================================
3+
--- xen-api.orig/scripts/vif 2012-02-14 13:19:50.536981455 +0000
4+
+++ xen-api/scripts/vif 2012-02-14 13:20:00.568981406 +0000
5+
@@ -255,7 +255,7 @@
6+
fi
7+
;;
8+
9+
-remove)
10+
+remove|offline)
11+
if [ "${TYPE}" = "vif" ] ;then
12+
call_hook_script $DOMID "${ACTION}"
13+
# Unclear whether this is necessary, since netback also does it:

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ xe-mount-iso-sr-paths
3232
networkd-brctl-path
3333
xe-toolstack-restart-paths
3434
fix-xenapi-py
35+
fix-vif-script

0 commit comments

Comments
 (0)