From 34edeccfd8d4273844d12c85fe38ec47002c47cd Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Fri, 11 Feb 2011 12:35:35 -0800 Subject: xenserver: Remove support for XenServer versions older than 5.6 FP1. Commit 404c169247b1c3ac2ebad887f0421478a6cef924 breaks compatibility with XenServers older than 5.6 FP1. This commit removes the last vestiges of support for those older XenServer versions. Signed-off-by: Justin Pettit --- xenserver/openvswitch-xen.spec | 95 +++--------------------------------------- 1 file changed, 5 insertions(+), 90 deletions(-) (limited to 'xenserver/openvswitch-xen.spec') diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec index ba4fc11a..9a533a83 100644 --- a/xenserver/openvswitch-xen.spec +++ b/xenserver/openvswitch-xen.spec @@ -75,8 +75,6 @@ install -m 755 xenserver/etc_xensource_scripts_vif \ $RPM_BUILD_ROOT/usr/share/openvswitch/scripts/vif install -m 755 xenserver/usr_share_openvswitch_scripts_ovs-external-ids \ $RPM_BUILD_ROOT/usr/share/openvswitch/scripts/ovs-external-ids -install -m 755 xenserver/usr_share_openvswitch_scripts_refresh-xs-network-uuids \ - $RPM_BUILD_ROOT/usr/share/openvswitch/scripts/refresh-xs-network-uuids install -m 755 xenserver/usr_sbin_xen-bugtool \ $RPM_BUILD_ROOT/usr/share/openvswitch/scripts/xen-bugtool install -m 755 xenserver/usr_share_openvswitch_scripts_sysconfig.template \ @@ -111,77 +109,6 @@ install -d -m 755 $RPM_BUILD_ROOT/var/lib/openvswitch rm -rf $RPM_BUILD_ROOT %post -if [ ! -f /etc/xensource-inventory ]; then - printf "XenSource inventory not present in /etc/xensource-inventory" - exit 1 -fi -. /etc/xensource-inventory - -if [ "$1" = "1" ]; then - if md5sum -c --status < /etc/xensource/network.conf - fi -fi - - if test ! -e /var/xapi/network.dbcache; then if test "$1" = 1; then printf "Creating xapi database cache... " @@ -302,12 +229,6 @@ fi %postun if [ "$1" = "0" ]; then # $1 = 1 for upgrade - . /etc/xensource-inventory - if test "$PRODUCT_VERSION" = "5.5.0"; then - XSS=/opt/xensource/libexec/xapi-startup-script - rm -f $XSS - fi - rm -f /usr/lib/xsconsole/plugins-base/XSFeatureVSwitch.pyc \ /usr/lib/xsconsole/plugins-base/XSFeatureVSwitch.pyo @@ -344,13 +265,8 @@ if [ "$1" = "0" ]; then # $1 = 1 for upgrade rm -f /etc/openvswitch/vswitchd.cacert rm -f /var/xapi/network.dbcache - if test "$PRODUCT_VERSION" != "5.5.0"; then - # Configure system to use bridge - echo bridge > /etc/xensource/network.conf - else - # Get rid of network.conf entirely, to make the system pristine. - rm -f /etc/xensource/network.conf - fi + # Configure system to use bridge + echo bridge > /etc/xensource/network.conf printf "\nYou MUST reboot the server now to complete the change to\n" printf "standard Xen networking. Attempts to modify networking on the\n" @@ -367,7 +283,6 @@ fi /etc/logrotate.d/openvswitch /etc/profile.d/openvswitch.sh /lib/modules/%{xen_version}/kernel/extra/openvswitch/openvswitch_mod.ko -/lib/modules/%{xen_version}/kernel/extra/openvswitch/brcompat_mod.ko /usr/share/openvswitch/python/ovs/__init__.py /usr/share/openvswitch/python/ovs/daemon.py /usr/share/openvswitch/python/ovs/db/__init__.py @@ -391,7 +306,6 @@ fi /usr/share/openvswitch/python/ovs/util.py /usr/share/openvswitch/python/uuid.py /usr/share/openvswitch/scripts/ovs-external-ids -/usr/share/openvswitch/scripts/refresh-xs-network-uuids /usr/share/openvswitch/scripts/interface-reconfigure /usr/share/openvswitch/scripts/InterfaceReconfigure.py /usr/share/openvswitch/scripts/InterfaceReconfigureBridge.py @@ -401,7 +315,6 @@ fi /usr/share/openvswitch/scripts/sysconfig.template /usr/share/openvswitch/scripts/ovs-save /usr/share/openvswitch/vswitch.ovsschema -/usr/sbin/ovs-brcompatd /usr/sbin/ovs-vswitchd /usr/sbin/ovsdb-server /usr/bin/ovs-appctl @@ -419,7 +332,6 @@ fi /usr/share/man/man1/ovsdb-tool.1.gz /usr/share/man/man5/ovs-vswitchd.conf.db.5.gz /usr/share/man/man8/ovs-appctl.8.gz -/usr/share/man/man8/ovs-brcompatd.8.gz /usr/share/man/man8/ovs-dpctl.8.gz /usr/share/man/man8/ovs-ofctl.8.gz /usr/share/man/man8/ovs-parse-leaks.8.gz @@ -429,7 +341,10 @@ fi /usr/share/man/man8/ovs-vsctl.8.gz /usr/share/man/man8/ovs-vswitchd.8.gz /var/lib/openvswitch +%exclude /lib/modules/%{xen_version}/kernel/extra/openvswitch/brcompat_mod.ko %exclude /usr/lib/xsconsole/plugins-base/*.py[co] +%exclude /usr/sbin/ovs-brcompatd +%exclude /usr/share/man/man8/ovs-brcompatd.8.gz %exclude /usr/share/openvswitch/scripts/*.py[co] %exclude /usr/share/openvswitch/python/*.py[co] %exclude /usr/share/openvswitch/python/ovs/*.py[co] -- cgit v1.2.3