fbl pushed to openvswitch (f20). "Merge branch 'f21' into f20 (..more)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Sat Mar 28 03:03:22 UTC 2015
>From 961b7257d739f0b7e0c7d9660811ac693b17cab1 Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl at redhat.com>
Date: Tue, 25 Mar 2014 20:17:50 -0300
Subject: updated to 2.1.0
Resolves: #1080679
Signed-off-by: Flavio Leitner <fbl at redhat.com>
diff --git a/.gitignore b/.gitignore
index 768ed7b..5e26750 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/openvswitch-1.11.0.tar.gz
/openvswitch-2.0.0.tar.gz
/openvswitch-2.0.1.tar.gz
+/openvswitch-2.1.0.tar.gz
diff --git a/openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch b/openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch
new file mode 100644
index 0000000..f72667d
--- /dev/null
+++ b/openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch
@@ -0,0 +1,130 @@
+From fab3da1fc7a88dfbe2275fa0eccb798444eae385 Mon Sep 17 00:00:00 2001
+From: Flavio Leitner <fbl at redhat.com>
+Date: Tue, 1 Apr 2014 18:05:20 -0300
+Subject: [PATCH] bridge: don't bring up internal ports by default.
+
+It should be an administrator task to bring up devices as they
+are configured properly.
+
+Currently, Fedora is deleting the bridges when the interface is
+brought down. Therefore, there is no bridge on the next boot and
+the initscripts can apply the networking configuration properly
+for a new bridge.
+
+However, if the system didn't execute ifdown for some reason, the
+bridge is left in the ovsdb and since internal ports are brought
+up by default, there is no way for initscripts to known if the
+adminitrator has already configured it or not.
+
+This patch reverts commit bef071a5fdf8e2dd87677b04b3cf7a8f5094edcb
+(bridge: Always "up" internal devices.).
+
+Signed-off-by: Flavio Leitner <fbl at redhat.com>
+Signed-off-by: Ben Pfaff <blp at nicira.com>
+---
+ NEWS | 5 +++++
+ tests/ofproto-dpif.at | 4 ++--
+ tests/ofproto.at | 16 ++++++++--------
+ vswitchd/bridge.c | 3 +--
+ 4 files changed, 16 insertions(+), 12 deletions(-)
+
+diff --git a/NEWS b/NEWS
+index 839b4dd..91d9194 100644
+--- a/NEWS
++++ b/NEWS
+@@ -1,3 +1,8 @@
++Backported from upstream:
++ - Internal ports are no longer brought up by default, because it
++ should be an administrator task to bring up devices as they are
++ configured properly.
++
+ v2.1.0 - 19 Mar 2014
+ ---------------------
+ - Address prefix tracking support for flow tables. New columns
+diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
+index 1a58da6..fbd40ff 100644
+--- a/tests/ofproto-dpif.at
++++ b/tests/ofproto-dpif.at
+@@ -1937,7 +1937,7 @@ IFCOUNTERS
+ type=6
+ ifspeed=100000000
+ direction=0
+- status=3
++ status=0
+ in_octets=0
+ in_unicasts=0
+ in_multicasts=0
+@@ -2006,7 +2006,7 @@ IFCOUNTERS
+ type=6
+ ifspeed=100000000
+ direction=0
+- status=3
++ status=0
+ in_octets=0
+ in_unicasts=0
+ in_multicasts=0
+diff --git a/tests/ofproto.at b/tests/ofproto.at
+index f6a62cd..dd56b39 100644
+--- a/tests/ofproto.at
++++ b/tests/ofproto.at
+@@ -38,8 +38,8 @@ n_tables:254, n_buffers:256
+ capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
+ actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
+ LOCAL(br0): addr:aa:55:aa:55:00:00
+- config: 0
+- state: 0
++ config: PORT_DOWN
++ state: LINK_DOWN
+ speed: 0 Mbps now, 0 Mbps max
+ OFPT_GET_CONFIG_REPLY: frags=normal miss_send_len=0
+ ])
+@@ -68,8 +68,8 @@ actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_N
+ state: LINK_DOWN
+ speed: 0 Mbps now, 0 Mbps max
+ LOCAL(br0): addr:aa:55:aa:55:00:0x
+- config: 0
+- state: 0
++ config: PORT_DOWN
++ state: LINK_DOWN
+ speed: 0 Mbps now, 0 Mbps max
+ OFPT_GET_CONFIG_REPLY: frags=normal miss_send_len=0
+ ])
+@@ -109,8 +109,8 @@ AT_CHECK([ovs-ofctl -vwarn dump-ports-desc br0], [0], [stdout])
+ AT_CHECK([STRIP_XIDS stdout], [0], [dnl
+ OFPST_PORT_DESC reply:
+ LOCAL(br0): addr:aa:55:aa:55:00:00
+- config: 0
+- state: 0
++ config: PORT_DOWN
++ state: LINK_DOWN
+ speed: 0 Mbps now, 0 Mbps max
+ ])
+ OVS_VSWITCHD_STOP
+@@ -124,8 +124,8 @@ AT_CHECK([ovs-ofctl -O OpenFlow12 -vwarn dump-ports-desc br0], [0], [stdout])
+ AT_CHECK([STRIP_XIDS stdout], [0], [dnl
+ OFPST_PORT_DESC reply (OF1.2):
+ LOCAL(br0): addr:aa:55:aa:55:00:00
+- config: 0
+- state: 0
++ config: PORT_DOWN
++ state: LINK_DOWN
+ speed: 0 Mbps now, 0 Mbps max
+ ])
+ OVS_VSWITCHD_STOP
+diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
+index b72f0d8..5b81d62 100644
+--- a/vswitchd/bridge.c
++++ b/vswitchd/bridge.c
+@@ -1448,8 +1448,7 @@ iface_do_create(const struct bridge *br,
+ VLOG_INFO("bridge %s: added interface %s on port %d",
+ br->name, iface_cfg->name, *ofp_portp);
+
+- if ((port_cfg->vlan_mode && !strcmp(port_cfg->vlan_mode, "splinter"))
+- || iface_is_internal(iface_cfg, br->cfg)) {
++ if (port_cfg->vlan_mode && !strcmp(port_cfg->vlan_mode, "splinter")) {
+ netdev_turn_flags_on(netdev, NETDEV_UP, NULL);
+ }
+
+--
+1.8.5.3
+
diff --git a/openvswitch-initscripts-add-tunnel-support.patch b/openvswitch-initscripts-add-tunnel-support.patch
deleted file mode 100644
index 5bd9bc9..0000000
--- a/openvswitch-initscripts-add-tunnel-support.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-diff --git a/rhel/etc_sysconfig_network-scripts_ifdown-ovs b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-index 32fddb5..daa5786 100755
---- a/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-+++ b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-@@ -51,7 +51,7 @@ case "$TYPE" in
- retval=$?
- ovs-vsctl -t ${TIMEOUT} -- --if-exists del-br "$DEVICE"
- ;;
-- OVSPort|OVSIntPort|OVSBond)
-+ OVSPort|OVSIntPort|OVSBond|OVSTunnel)
- ${OTHERSCRIPT} ${CONFIG} $2
- retval=$?
- ovs-vsctl -t ${TIMEOUT} -- --if-exists del-port "$OVS_BRIDGE" "$DEVICE"
-diff --git a/rhel/etc_sysconfig_network-scripts_ifup-ovs b/rhel/etc_sysconfig_network-scripts_ifup-ovs
-index 3c6b557..3f31c30 100755
---- a/rhel/etc_sysconfig_network-scripts_ifup-ovs
-+++ b/rhel/etc_sysconfig_network-scripts_ifup-ovs
-@@ -126,6 +126,11 @@ case "$TYPE" in
- ${OTHERSCRIPT} ${CONFIG} ${2}
- OVSINTF=${DEVICE} /sbin/ifup "$OVS_BRIDGE"
- ;;
-+ OVSTunnel)
-+ ifup_ovs_bridge
-+ ovs-vsctl -t ${TIMEOUT} -- --may-exist add-port "$OVS_BRIDGE" "$DEVICE" $OVS_OPTIONS -- set Interface "$DEVICE" type=$OVS_TUNNEL_TYPE $OVS_TUNNEL_OPTIONS ${OVS_EXTRA+-- $OVS_EXTRA}
-+ ${OTHERSCRIPT} ${CONFIG} ${2}
-+ ;;
- *)
- echo $"Invalid OVS interface type $TYPE"
- exit 1
diff --git a/openvswitch-ovs-lib-allow-non-root-users-to-check-service-status.patch b/openvswitch-ovs-lib-allow-non-root-users-to-check-service-status.patch
new file mode 100644
index 0000000..3b91229
--- /dev/null
+++ b/openvswitch-ovs-lib-allow-non-root-users-to-check-service-status.patch
@@ -0,0 +1,38 @@
+From 691e47554dd03dd6492e00bab5bd6d215f5cbd4f Mon Sep 17 00:00:00 2001
+From: Flavio Leitner <fbl at redhat.com>
+Date: Thu, 27 Feb 2014 09:16:34 -0300
+Subject: [PATCH] ovs-lib: allow non-root users to check service status
+
+It tries to log the status operation, so although non-root
+users can see the current status, the lack of permission
+to write to the log results in an error message.
+
+This changes to log only if the user has the permission to
+write to the log file.
+
+Signed-off-by: Flavio Leitner <fbl at redhat.com>
+Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
+---
+ utilities/ovs-lib.in | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/utilities/ovs-lib.in b/utilities/ovs-lib.in
+index 029ed3b..48d0c36 100644
+--- a/utilities/ovs-lib.in
++++ b/utilities/ovs-lib.in
+@@ -54,7 +54,11 @@ ovs_ctl () {
+ # of ovs-ctl. It is also useful to document the o/p in ovs-ctl.log.
+ display=`"${datadir}/scripts/ovs-ctl" "$@" 2>&1`
+ rc=$?
+- echo "${display}" | tee -a "${logdir}/ovs-ctl.log"
++ if test -w "${logdir}/ovs-ctl.log"; then
++ echo "${display}" | tee -a "${logdir}/ovs-ctl.log"
++ else
++ echo "${display}"
++ fi
+ return ${rc}
+ ;;
+ *)
+--
+1.8.5.3
+
diff --git a/openvswitch-rhel-Add-Patch-Port-support-to-initscripts.patch b/openvswitch-rhel-Add-Patch-Port-support-to-initscripts.patch
new file mode 100644
index 0000000..06c202f
--- /dev/null
+++ b/openvswitch-rhel-Add-Patch-Port-support-to-initscripts.patch
@@ -0,0 +1,114 @@
+From e2bcc8ef49f5e51f48983b87ab1010f0f9ab1454 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jason=20K=C3=B6lker?= <jason at koelker.net>
+Date: Mon, 31 Mar 2014 23:34:14 +0000
+Subject: [PATCH] rhel: Add Patch Port support to initscripts
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Allows setting up type=patch ports through sysconfig ifcfg-* files.
+
+Signed-off-by: Jason Kölker <jason at koelker.net>
+Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
+Acked-by: Flavio Leitner <fbl at redhat.com>
+---
+ AUTHORS | 1 +
+ rhel/README.RHEL | 25 +++++++++++++++++++++++++
+ rhel/etc_sysconfig_network-scripts_ifdown-ovs | 3 +++
+ rhel/etc_sysconfig_network-scripts_ifup-ovs | 4 ++++
+ 4 files changed, 33 insertions(+)
+
+diff --git a/AUTHORS b/AUTHORS
+index 977753b..c5402cf 100644
+--- a/AUTHORS
++++ b/AUTHORS
+@@ -57,6 +57,7 @@ Isaku Yamahata yamahata at valinux.co.jp
+ James P. roampune at gmail.com
+ James Page james.page at ubuntu.com
+ Jarno Rajahalme jrajahalme at nicira.com
++Jason Kölker jason at koelker.net
+ Jean Tourrilhes jt at hpl.hp.com
+ Jeremy Stribling strib at nicira.com
+ Jesse Gross jesse at nicira.com
+diff --git a/rhel/README.RHEL b/rhel/README.RHEL
+index cb6ab88..2620674 100644
+--- a/rhel/README.RHEL
++++ b/rhel/README.RHEL
+@@ -25,6 +25,8 @@ assignments. The following OVS-specific variable names are supported:
+
+ * "OVSTunnel", if <name> is an OVS tunnel.
+
++ * "OVSPatchPort", if <name> is a patch port
++
+ - OVS_BRIDGE: If TYPE is anything other than "OVSBridge", set to
+ the name of the OVS bridge to which the port should be attached.
+
+@@ -47,6 +49,9 @@ assignments. The following OVS-specific variable names are supported:
+ - OVS_TUNNEL_OPTIONS: For "OVSTunnel" interfaces, this field should be
+ used to specify the tunnel options like remote_ip, key, etc.
+
++ - OVS_PATCH_PEER: For "OVSPatchPort" devices, this field specifies
++ the patch's peer on the other bridge.
++
+ Note
+ ----
+
+@@ -182,6 +187,26 @@ OVS_BRIDGE=ovsbridge0
+ OVS_TUNNEL_TYPE=gre
+ OVS_TUNNEL_OPTIONS="options:remote_ip=A.B.C.D"
+
++
++Patch Ports:
++
++==> ifcfg-patch-ovs-0 <==
++DEVICE=patch-ovs-0
++ONBOOT=yes
++DEVICETYPE=ovs
++TYPE=OVSPatchPort
++OVS_BRIDGE=ovsbridge0
++OVS_PATCH_PEER=patch-ovs-1
++
++==> ifcfg-patch-ovs-1 <==
++DEVICE=patch-ovs-1
++ONBOOT=yes
++DEVICETYPE=ovs
++TYPE=OVSPatchPort
++OVS_BRIDGE=ovsbridge1
++OVS_PATCH_PEER=patch-ovs-0
++
++
+ Reporting Bugs
+ --------------
+
+diff --git a/rhel/etc_sysconfig_network-scripts_ifdown-ovs b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
+index 8e768c8..1371a30 100755
+--- a/rhel/etc_sysconfig_network-scripts_ifdown-ovs
++++ b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
+@@ -47,6 +47,9 @@ case "$TYPE" in
+ retval=$?
+ ovs-vsctl -t ${TIMEOUT} -- --if-exists del-port "$OVS_BRIDGE" "$DEVICE"
+ ;;
++ OVSPatchPort)
++ ovs-vsctl -t ${TIMEOUT} -- --if-exists del-port "$OVS_BRIDGE" "$DEVICE"
++ ;;
+ *)
+ echo $"Invalid OVS interface type $TYPE"
+ exit 1
+diff --git a/rhel/etc_sysconfig_network-scripts_ifup-ovs b/rhel/etc_sysconfig_network-scripts_ifup-ovs
+index a50c72f..f5641d2 100755
+--- a/rhel/etc_sysconfig_network-scripts_ifup-ovs
++++ b/rhel/etc_sysconfig_network-scripts_ifup-ovs
+@@ -127,6 +127,10 @@ case "$TYPE" in
+ ovs-vsctl -t ${TIMEOUT} -- --may-exist add-port "$OVS_BRIDGE" "$DEVICE" $OVS_OPTIONS -- set Interface "$DEVICE" type=$OVS_TUNNEL_TYPE $OVS_TUNNEL_OPTIONS ${OVS_EXTRA+-- $OVS_EXTRA}
+ ${OTHERSCRIPT} ${CONFIG} ${2}
+ ;;
++ OVSPatchPort)
++ ifup_ovs_bridge
++ ovs-vsctl -t ${TIMEOUT} -- --may-exist add-port "$OVS_BRIDGE" "$DEVICE" $OVS_OPTIONS -- set Interface "$DEVICE" type=patch options:peer="${OVS_PATCH_PEER}" ${OVS_EXTRA+-- $OVS_EXTRA}
++ ;;
+ *)
+ echo $"Invalid OVS interface type $TYPE"
+ exit 1
+--
+1.8.5.3
+
diff --git a/openvswitch-util-use-gcc-builtins-to-better-check-array-sizes.patch b/openvswitch-util-use-gcc-builtins-to-better-check-array-sizes.patch
deleted file mode 100644
index ae9945c..0000000
--- a/openvswitch-util-use-gcc-builtins-to-better-check-array-sizes.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-From b86fec9baa9c2ee03b28cfc8dad95c41bf9acaad Mon Sep 17 00:00:00 2001
-From: Flavio Leitner <fbl at redhat.com>
-Date: Wed, 2 Oct 2013 02:40:09 -0300
-Subject: [PATCH] util: use gcc builtins to better check array sizes
-
-GCC provides two useful builtin functions that can help
-to improve array size checking during compilation.
-
-This patch contains no functional changes, but it makes
-it easier to detect mistakes.
-
-Signed-off-by: Flavio Leitner <fbl at redhat.com>
-Signed-off-by: Ben Pfaff <blp at nicira.com>
----
- AUTHORS | 1 +
- lib/util.h | 17 ++++++++++++++++-
- 2 files changed, 17 insertions(+), 1 deletion(-)
-
-diff --git a/AUTHORS b/AUTHORS
-index af34bfe..7a919a2 100644
---- a/AUTHORS
-+++ b/AUTHORS
-@@ -32,6 +32,7 @@ Duffie Cooley dcooley at nicira.com
- Ed Maste emaste at freebsd.org
- Edward Tomasz Napierała trasz at freebsd.org
- Ethan Jackson ethan at nicira.com
-+Flavio Leitner fbl at redhat.com
- FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
- Gaetano Catalli gaetano.catalli at gmail.com
- Giuseppe Lettieri g.lettieri at iet.unipi.it
-diff --git a/lib/util.h b/lib/util.h
-index 0db41be..a899065 100644
---- a/lib/util.h
-+++ b/lib/util.h
-@@ -87,8 +87,23 @@ void ovs_assert_failure(const char *, const char *, const char *) NO_RETURN;
-
- extern const char *program_name;
-
-+#define __ARRAY_SIZE_NOCHECK(ARRAY) (sizeof(ARRAY) / sizeof((ARRAY)[0]))
-+#ifdef __GNUC__
-+/* return 0 for array types, 1 otherwise */
-+#define __ARRAY_CHECK(ARRAY) \
-+ !__builtin_types_compatible_p(typeof(ARRAY), typeof(&ARRAY[0]))
-+
-+/* compile-time fail if not array */
-+#define __ARRAY_FAIL(ARRAY) (sizeof(char[-2*!__ARRAY_CHECK(ARRAY)]))
-+#define __ARRAY_SIZE(ARRAY) \
-+ __builtin_choose_expr(__ARRAY_CHECK(ARRAY), \
-+ __ARRAY_SIZE_NOCHECK(ARRAY), __ARRAY_FAIL(ARRAY))
-+#else
-+#define __ARRAY_SIZE(ARRAY) __ARRAY_SIZE_NOCHECK(ARRAY)
-+#endif
-+
- /* Returns the number of elements in ARRAY. */
--#define ARRAY_SIZE(ARRAY) (sizeof ARRAY / sizeof *ARRAY)
-+#define ARRAY_SIZE(ARRAY) __ARRAY_SIZE(ARRAY)
-
- /* Returns X / Y, rounding up. X must be nonnegative to round correctly. */
- #define DIV_ROUND_UP(X, Y) (((X) + ((Y) - 1)) / (Y))
---
-1.8.4.2
-
diff --git a/openvswitch.spec b/openvswitch.spec
index 67ffdf2..707742a 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -14,7 +14,7 @@
%endif
Name: openvswitch
-Version: 2.0.1
+Version: 2.1.0
Release: 1%{?dist}
Summary: Open vSwitch daemon/database/utilities
@@ -29,11 +29,14 @@ Source3: openvswitch.logrotate
Source6: ovsdbmonitor.desktop
Source9: README.RHEL
-Patch1: openvswitch-util-use-gcc-builtins-to-better-check-array-sizes.patch
-Patch2: openvswitch-fedora-package-fix-systemd-ordering-and-deps.patch
-Patch3: openvswitch-initscripts-add-tunnel-support.patch
-Patch4: openvswitch-rhel-Enable-DHCP-support-for-internal-ports.patch
+Patch1: openvswitch-fedora-package-fix-systemd-ordering-and-deps.patch
+Patch2: openvswitch-rhel-Enable-DHCP-support-for-internal-ports.patch
+Patch3: openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch
+Patch4: openvswitch-ovs-lib-allow-non-root-users-to-check-service-status.patch
+Patch5: openvswitch-rhel-Add-Patch-Port-support-to-initscripts.patch
+
+BuildRequires: autoconf
BuildRequires: systemd-units openssl openssl-devel
BuildRequires: python python-twisted-core python-zope-interface PyQt4
BuildRequires: desktop-file-utils
@@ -42,11 +45,13 @@ BuildRequires: groff graphviz
BuildRequires: python-twisted-conch
%endif
-Requires: openssl iproute module-init-tools
+Requires: openssl iproute module-init-tools
+Requires: kernel >= 3.15.0-0
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
+Obsoletes: openvswitch-controller <= 0:2.1.0-1
%description
Open vSwitch provides standard network bridging functions and
@@ -88,16 +93,6 @@ Requires: python python-twisted-core python-twisted-web
Utilities that are useful to diagnose performance and connectivity
issues in Open vSwitch setup.
-%package controller
-Summary: Open vSwitch OpenFlow controller
-License: ASL 2.0
-Requires: openvswitch = %{version}-%{release}
-
-%description controller
-Simple reference implementation of an OpenFlow controller for Open
-vSwitch. Manages any number of remote switches over OpenFlow protocol,
-causing them to function as L2 MAC-learning switches or hub.
-
%package devel
Summary: Open vSwitch OpenFlow development package (library, headers)
License: ASL 2.0
@@ -113,6 +108,7 @@ files needed to build an external application.
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%build
%configure --enable-ssl --with-pkidir=%{_sharedstatedir}/openvswitch/pki
@@ -171,10 +167,6 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/applications/ovsdbmonitor.desktop
rm -rf $RPM_BUILD_ROOT%{_docdir}/ovsdbmonitor
%endif
-# devel files
-install -p -D -m 0644 lib/libopenvswitch.a \
- $RPM_BUILD_ROOT%{_libdir}/openvswitch/libopenvswitch.a
-
install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/openvswitch
install -p -D -m 0644 include/openvswitch/*.h \
-t $RPM_BUILD_ROOT%{_includedir}/openvswitch
@@ -251,6 +243,7 @@ install -p -D -m 0644 include/openflow/*.h \
%{_bindir}/ovsdb-client
%{_bindir}/ovsdb-tool
%{_bindir}/ovs-parse-backtrace
+%{_bindir}/vtep-ctl
# ovs-bugtool is LGPLv2+
%{_sbindir}/ovs-bugtool
%{_sbindir}/ovs-vswitchd
@@ -262,6 +255,8 @@ install -p -D -m 0644 include/openflow/*.h \
%{_mandir}/man1/ovsdb-server.1*
%{_mandir}/man1/ovsdb-tool.1*
%{_mandir}/man5/ovs-vswitchd.conf.db.5*
+%{_mandir}/man5/vtep.5*
+%{_mandir}/man8/vtep-ctl.8*
%{_mandir}/man8/ovs-appctl.8*
%{_mandir}/man8/ovs-bugtool.8*
%{_mandir}/man8/ovs-ctl.8*
@@ -302,16 +297,24 @@ install -p -D -m 0644 include/openflow/*.h \
%{_mandir}/man8/ovs-l3ping.8*
%{python_sitelib}/ovstest
-%files controller
-%{_bindir}/ovs-controller
-%{_mandir}/man8/ovs-controller.8*
-
%files devel
-%{_libdir}/openvswitch/libopenvswitch.a
+%{_libdir}/*.a
+%{_libdir}/*.la
%{_includedir}/openvswitch/*
%{_includedir}/openflow/*
%changelog
+* Tue Mar 25 2014 Flavio Leitner - 2.1.0-1
+- updated to 2.1.0
+- obsoleted openvswitch-controller package
+- requires kernel 3.15.0-0 or newer
+ (kernel commit 4f647e0a3c37b8d5086214128614a136064110c3
+ openvswitch: fix a possible deadlock and lockdep warning)
+- ovs-lib: allow non-root users to check service status
+ (upstream commit 691e47554dd03dd6492e00bab5bd6d215f5cbd4f)
+- rhel: Add Patch Port support to initscripts
+ (upstream commit e2bcc8ef49f5e51f48983b87ab1010f0f9ab1454)
+
* Mon Jan 27 2014 Flavio Leitner - 2.0.1-1
- updated to 2.0.1
diff --git a/sources b/sources
index 3f587c9..387296d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a2122b1c293c8d05dc0c673d42a9da08 openvswitch-2.0.1.tar.gz
+7c5861b0ef7f3002c15c61be6f5066f2 openvswitch-2.1.0.tar.gz
--
cgit v0.10.2
>From 755c13e77cfc428872bf7b81721593c7a13be871 Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl at redhat.com>
Date: Tue, 13 May 2014 15:00:45 -0300
Subject: Updated to 2.1.2
Resolves: #1092959
diff --git a/.gitignore b/.gitignore
index 5e26750..8b77aa5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
/openvswitch-2.0.0.tar.gz
/openvswitch-2.0.1.tar.gz
/openvswitch-2.1.0.tar.gz
+/openvswitch-2.1.2.tar.gz
diff --git a/openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch b/openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch
index f72667d..11b08db 100644
--- a/openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch
+++ b/openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch
@@ -1,7 +1,4 @@
-From fab3da1fc7a88dfbe2275fa0eccb798444eae385 Mon Sep 17 00:00:00 2001
-From: Flavio Leitner <fbl at redhat.com>
-Date: Tue, 1 Apr 2014 18:05:20 -0300
-Subject: [PATCH] bridge: don't bring up internal ports by default.
+[PATCH] bridge: don't bring up internal ports by default.
It should be an administrator task to bring up devices as they
are configured properly.
@@ -29,7 +26,7 @@ Signed-off-by: Ben Pfaff <blp at nicira.com>
4 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/NEWS b/NEWS
-index 839b4dd..91d9194 100644
+index e1fb093..51849fe 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
@@ -38,11 +35,11 @@ index 839b4dd..91d9194 100644
+ should be an administrator task to bring up devices as they are
+ configured properly.
+
- v2.1.0 - 19 Mar 2014
+ v2.1.2 - 30 Apr 2014
---------------------
- - Address prefix tracking support for flow tables. New columns
+ - Bug fixes.
diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
-index 1a58da6..fbd40ff 100644
+index 618ea8d..b359e5f 100644
--- a/tests/ofproto-dpif.at
+++ b/tests/ofproto-dpif.at
@@ -1937,7 +1937,7 @@ IFCOUNTERS
@@ -112,10 +109,10 @@ index f6a62cd..dd56b39 100644
])
OVS_VSWITCHD_STOP
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
-index b72f0d8..5b81d62 100644
+index 796fe48..79f2402 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
-@@ -1448,8 +1448,7 @@ iface_do_create(const struct bridge *br,
+@@ -1488,8 +1488,7 @@ iface_do_create(const struct bridge *br,
VLOG_INFO("bridge %s: added interface %s on port %d",
br->name, iface_cfg->name, *ofp_portp);
@@ -125,6 +122,3 @@ index b72f0d8..5b81d62 100644
netdev_turn_flags_on(netdev, NETDEV_UP, NULL);
}
---
-1.8.5.3
-
diff --git a/openvswitch-rhel-Enable-DHCP-support-for-internal-ports.patch b/openvswitch-rhel-Enable-DHCP-support-for-internal-ports.patch
deleted file mode 100644
index 9280906..0000000
--- a/openvswitch-rhel-Enable-DHCP-support-for-internal-ports.patch
+++ /dev/null
@@ -1,90 +0,0 @@
-From 490db96efaf89c63656b192d5ca287b0908a6c77 Mon Sep 17 00:00:00 2001
-From: Flavio Leitner <fbl at redhat.com>
-Date: Tue, 14 Jan 2014 00:22:07 -0200
-Subject: [PATCH] rhel: Enable DHCP support for internal ports.
-
-The current initscripts ifup-ovs brings up internal ports as
-an ordinary ethernet device, so BOOTPROTO=dhcp|none does not
-consider any OVS/bridge detail.
-
-Since DHCP requires a port in the bridge to reach the server,
-bring up the required port before in the same way it does for
-OVS bridge.
-
-Signed-off-by: Flavio Leitner <fbl at redhat.com>
-Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
----
- rhel/README.RHEL | 38 +++++++++++++++++++++++++++++
- rhel/etc_sysconfig_network-scripts_ifup-ovs | 7 +++++-
- 2 files changed, 44 insertions(+), 1 deletion(-)
-
-diff --git a/rhel/README.RHEL b/rhel/README.RHEL
-index 435772f..cb6ab88 100644
---- a/rhel/README.RHEL
-+++ b/rhel/README.RHEL
-@@ -87,6 +87,44 @@ OVSBOOTPROTO="dhcp"
- OVSDHCPINTERFACES="eth0"
- HOTPLUG=no
-
-+
-+Adding Internal Port to ovsbridge0:
-+
-+==> ifcfg-intbr0 <==
-+DEVICE=intbr0
-+ONBOOT=yes
-+DEVICETYPE=ovs
-+TYPE=OVSIntPort
-+OVS_BRIDGE=ovsbridge0
-+HOTPLUG=no
-+
-+
-+Internal Port with fixed IP address:
-+
-+DEVICE=intbr0
-+ONBOOT=yes
-+DEVICETYPE=ovs
-+TYPE=OVSIntPort
-+OVS_BRIDGE=ovsbridge0
-+BOOTPROTO=static
-+IPADDR=A.B.C.D
-+NETMASK=X.Y.Z.0
-+HOTPLUG=no
-+
-+Internal Port with DHCP:
-+* Needs OVSBOOTPROTO or BOOTPROTO.
-+* All the interfaces that can reach the DHCP server
-+as a space separated list in OVSDHCPINTERFACES.
-+
-+DEVICE=intbr0
-+ONBOOT=yes
-+DEVICETYPE=ovs
-+TYPE=OVSIntPort
-+OVS_BRIDGE=ovsbridge0
-+OVSBOOTPROTO="dhcp"
-+OVSDHCPINTERFACES="eth0"
-+HOTPLUG=no
-+
- Adding physical eth0 to ovsbridge0 described above:
-
- ==> ifcfg-eth0 <==
-diff --git a/rhel/etc_sysconfig_network-scripts_ifup-ovs b/rhel/etc_sysconfig_network-scripts_ifup-ovs
-index 3f31c30..0ee7b21 100755
---- a/rhel/etc_sysconfig_network-scripts_ifup-ovs
-+++ b/rhel/etc_sysconfig_network-scripts_ifup-ovs
-@@ -115,7 +115,12 @@ case "$TYPE" in
- OVSIntPort)
- ifup_ovs_bridge
- ovs-vsctl -t ${TIMEOUT} -- --may-exist add-port "$OVS_BRIDGE" "$DEVICE" $OVS_OPTIONS -- set Interface "$DEVICE" type=internal ${OVS_EXTRA+-- $OVS_EXTRA}
-- ${OTHERSCRIPT} ${CONFIG} ${2}
-+ if [ -n "${OVSDHCPINTERFACES}" ]; then
-+ for _iface in ${OVSDHCPINTERFACES}; do
-+ /sbin/ifup ${_iface}
-+ done
-+ fi
-+ BOOTPROTO="${OVSBOOTPROTO}" ${OTHERSCRIPT} ${CONFIG} ${2}
- ;;
- OVSBond)
- ifup_ovs_bridge
---
-1.8.4.2
-
diff --git a/openvswitch.spec b/openvswitch.spec
index 707742a..462da0b 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -14,7 +14,7 @@
%endif
Name: openvswitch
-Version: 2.1.0
+Version: 2.1.2
Release: 1%{?dist}
Summary: Open vSwitch daemon/database/utilities
@@ -30,7 +30,6 @@ Source6: ovsdbmonitor.desktop
Source9: README.RHEL
Patch1: openvswitch-fedora-package-fix-systemd-ordering-and-deps.patch
-Patch2: openvswitch-rhel-Enable-DHCP-support-for-internal-ports.patch
Patch3: openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch
Patch4: openvswitch-ovs-lib-allow-non-root-users-to-check-service-status.patch
Patch5: openvswitch-rhel-Add-Patch-Port-support-to-initscripts.patch
@@ -105,7 +104,6 @@ files needed to build an external application.
%prep
%setup -q
%patch1 -p1
-%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
@@ -304,6 +302,9 @@ install -p -D -m 0644 include/openflow/*.h \
%{_includedir}/openflow/*
%changelog
+* Tue Mar 25 2014 Flavio Leitner - 2.1.2-1
+- updated to 2.1.2
+
* Tue Mar 25 2014 Flavio Leitner - 2.1.0-1
- updated to 2.1.0
- obsoleted openvswitch-controller package
diff --git a/sources b/sources
index 387296d..c5ab20f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-7c5861b0ef7f3002c15c61be6f5066f2 openvswitch-2.1.0.tar.gz
+430ff6d1e1fc81e9c5ebc2e641cfc953 openvswitch-2.1.2.tar.gz
--
cgit v0.10.2
>From 030fb55f5897096580cf0eb44478ff0ccf2ab44f Mon Sep 17 00:00:00 2001
From: Dennis Gilmore <dennis at ausil.us>
Date: Sat, 7 Jun 2014 12:18:52 -0500
Subject: - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/openvswitch.spec b/openvswitch.spec
index 462da0b..4d03a9a 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -15,7 +15,7 @@
Name: openvswitch
Version: 2.1.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@@ -302,6 +302,9 @@ install -p -D -m 0644 include/openflow/*.h \
%{_includedir}/openflow/*
%changelog
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
* Tue Mar 25 2014 Flavio Leitner - 2.1.2-1
- updated to 2.1.2
--
cgit v0.10.2
>From 54f0e1b392fe5cd50886f638824971794278e785 Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl at redhat.com>
Date: Thu, 12 Jun 2014 11:03:18 -0300
Subject: Removed ovsdbmonitor packaging
diff --git a/openvswitch.spec b/openvswitch.spec
index 4d03a9a..085096d 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -1,21 +1,9 @@
%global _hardened_build 1
-# This provides a way for distros that doesn't provide
-# python-twisted-conch to disable building of ovsdbmonitor
-# by default. You can override by passing --with ovsdbmonitor
-# or --without ovsdbmonitor while building the RPM.
-%define _pkg_ovsdbmonitor 0
-
-%if %{?_with_ovsdbmonitor: 1}%{!?_with_ovsdbmonitor: 0}
-%define with_ovsdbmonitor 1
-%else
-%define with_ovsdbmonitor %{?_without_ovsdbmonitor: 0}%{!?_without_ovsdbmonitor: %{_pkg_ovsdbmonitor}}
-%endif
-
Name: openvswitch
Version: 2.1.2
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@@ -26,7 +14,6 @@ License: ASL 2.0 and LGPLv2+ and SISSL
URL: http://openvswitch.org
Source0: http://openvswitch.org/releases/%{name}-%{version}.tar.gz
Source3: openvswitch.logrotate
-Source6: ovsdbmonitor.desktop
Source9: README.RHEL
Patch1: openvswitch-fedora-package-fix-systemd-ordering-and-deps.patch
@@ -40,9 +27,6 @@ BuildRequires: systemd-units openssl openssl-devel
BuildRequires: python python-twisted-core python-zope-interface PyQt4
BuildRequires: desktop-file-utils
BuildRequires: groff graphviz
-%if %{with_ovsdbmonitor}
-BuildRequires: python-twisted-conch
-%endif
Requires: openssl iproute module-init-tools
Requires: kernel >= 3.15.0-0
@@ -66,21 +50,6 @@ Requires: python
%description -n python-openvswitch
Python bindings for the Open vSwitch database
-%if %{with_ovsdbmonitor}
-%package -n ovsdbmonitor
-Summary: Open vSwitch graphical monitoring tool
-License: ASL 2.0
-BuildArch: noarch
-Requires: python-openvswitch = %{version}-%{release}
-Requires: python python-twisted-core python-twisted-conch python-zope-interface PyQt4
-
-%description -n ovsdbmonitor
-A GUI tool for monitoring and troubleshooting local or remote Open
-vSwitch installations. It presents GUI tables that graphically represent
-an Open vSwitch kernel flow table (similar to "ovs-dpctl dump-flows")
-and Open vSwitch database contents (similar to "ovs-vsctl list <table>").
-%endif
-
%package test
Summary: Open vSwitch testing utilities
License: ASL 2.0
@@ -155,16 +124,6 @@ rm -f \
$RPM_BUILD_ROOT%{_sbindir}/ovs-brcompatd \
$RPM_BUILD_ROOT%{_mandir}/man8/ovs-brcompatd.8
-desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE6}
-
-%if ! %{with_ovsdbmonitor}
-rm -f $RPM_BUILD_ROOT%{_bindir}/ovsdbmonitor
-rm -f $RPM_BUILD_ROOT%{_mandir}/man1/ovsdbmonitor.1*
-rm -rf $RPM_BUILD_ROOT%{_datadir}/ovsdbmonitor
-rm -f $RPM_BUILD_ROOT%{_datadir}/applications/ovsdbmonitor.desktop
-rm -rf $RPM_BUILD_ROOT%{_docdir}/ovsdbmonitor
-%endif
-
install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/openvswitch
install -p -D -m 0644 include/openvswitch/*.h \
-t $RPM_BUILD_ROOT%{_includedir}/openvswitch
@@ -277,15 +236,6 @@ install -p -D -m 0644 include/openflow/*.h \
%{python_sitelib}/ovs
%doc COPYING
-%if %{with_ovsdbmonitor}
-%files -n ovsdbmonitor
-%{_bindir}/ovsdbmonitor
-%{_mandir}/man1/ovsdbmonitor.1*
-%{_datadir}/ovsdbmonitor
-%{_datadir}/applications/ovsdbmonitor.desktop
-%doc ovsdb/ovsdbmonitor/COPYING
-%endif
-
%files test
%{_bindir}/ovs-test
%{_bindir}/ovs-vlan-test
@@ -302,6 +252,9 @@ install -p -D -m 0644 include/openflow/*.h \
%{_includedir}/openflow/*
%changelog
+* Thu Jun 12 2014 Flavio Leitner - 2.1.2-3
+- removed ovsdbmonitor packaging
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/ovsdbmonitor.desktop b/ovsdbmonitor.desktop
deleted file mode 100644
index b0f8253..0000000
--- a/ovsdbmonitor.desktop
+++ /dev/null
@@ -1,7 +0,0 @@
-[Desktop Entry]
-Name=Open vSwitch DB Monitor
-Comment=Monitor and troubleshoot local or remote Open vSwitch instances
-Exec=ovsdbmonitor
-Terminal=false
-Type=Application
-Categories=System;Monitor;
--
cgit v0.10.2
>From bab1c317988718b446a3343f5aad088ccf0f90e3 Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl at redhat.com>
Date: Thu, 12 Jun 2014 11:48:15 -0300
Subject: Moved README.RHEL to be in the standard doc dir. Added FAQ and NEWS
files to the doc list. Excluded PPC arch
diff --git a/openvswitch.spec b/openvswitch.spec
index 085096d..e37b1d2 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -3,7 +3,7 @@
Name: openvswitch
Version: 2.1.2
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@@ -16,6 +16,8 @@ Source0: http://openvswitch.org/releases/%{name}-%{version}.tar.gz
Source3: openvswitch.logrotate
Source9: README.RHEL
+ExcludeArch: ppc
+
Patch1: openvswitch-fedora-package-fix-systemd-ordering-and-deps.patch
Patch3: openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch
Patch4: openvswitch-ovs-lib-allow-non-root-users-to-check-service-status.patch
@@ -114,8 +116,8 @@ install -d -m 0755 $RPM_BUILD_ROOT%{python_sitelib}
mv $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/* $RPM_BUILD_ROOT%{python_sitelib}
rmdir $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/
-mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
-install -p -m 0644 %{SOURCE9} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
+install -p -m 0644 %{SOURCE9} $RPM_BUILD_ROOT%{_docdir}/%{name}
# Get rid of stuff we don't want to make RPM happy.
rm -f \
@@ -228,9 +230,9 @@ install -p -D -m 0644 include/openflow/*.h \
# /usr/share/openvswitch/scripts/ovs-bugtool* are LGPLv2+
%{_datadir}/openvswitch/
%{_sharedstatedir}/openvswitch
-%{_docdir}/%{name}-%{version}/README.RHEL
+%{_docdir}/%{name}/README.RHEL
# see COPYING for full licensing details
-%doc COPYING DESIGN INSTALL.SSL NOTICE README WHY-OVS
+%doc COPYING DESIGN INSTALL.SSL NOTICE README WHY-OVS FAQ NEWS
%files -n python-openvswitch
%{python_sitelib}/ovs
@@ -252,6 +254,11 @@ install -p -D -m 0644 include/openflow/*.h \
%{_includedir}/openflow/*
%changelog
+* Thu Jun 12 2014 Flavio Leitner - 2.1.2-4
+- moved README.RHEL to be in the standard doc dir.
+- added FAQ and NEWS files to the doc list.
+- excluded PPC arch
+
* Thu Jun 12 2014 Flavio Leitner - 2.1.2-3
- removed ovsdbmonitor packaging
--
cgit v0.10.2
>From b862d370793a61a4bd86827f7cc3125889c03544 Mon Sep 17 00:00:00 2001
From: Peter Robinson <pbrobinson at fedoraproject.org>
Date: Sun, 17 Aug 2014 14:13:48 +0000
Subject: - Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
diff --git a/openvswitch.spec b/openvswitch.spec
index e37b1d2..60913b0 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -3,7 +3,7 @@
Name: openvswitch
Version: 2.1.2
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@@ -254,6 +254,9 @@ install -p -D -m 0644 include/openflow/*.h \
%{_includedir}/openflow/*
%changelog
+* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.2-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
* Thu Jun 12 2014 Flavio Leitner - 2.1.2-4
- moved README.RHEL to be in the standard doc dir.
- added FAQ and NEWS files to the doc list.
--
cgit v0.10.2
>From 05e222bd4485a78450bc68cfdac44ca4ea407b5e Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl at redhat.com>
Date: Wed, 20 Aug 2014 22:22:52 -0300
Subject: Updated to 2.3.0
Resolves: #1131051
diff --git a/.gitignore b/.gitignore
index 8b77aa5..4254909 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
/openvswitch-2.0.1.tar.gz
/openvswitch-2.1.0.tar.gz
/openvswitch-2.1.2.tar.gz
+/openvswitch-2.3.0.tar.gz
diff --git a/README.RHEL b/README.RHEL
deleted file mode 100644
index cb6ab88..0000000
--- a/README.RHEL
+++ /dev/null
@@ -1,188 +0,0 @@
-Red Hat network scripts integration
------------------------------------
-
-The RPM packages for Open vSwitch provide some integration with Red
-Hat's network scripts. Using this integration is optional.
-
-To use the integration for a Open vSwitch bridge or interface named
-<name>, create or edit /etc/sysconfig/network-scripts/ifcfg-<name>.
-This is a shell script that consists of a series of VARIABLE=VALUE
-assignments. The following OVS-specific variable names are supported:
-
- - DEVICETYPE: Always set to "ovs".
-
- - TYPE: If this is "OVSBridge", then this file represents an OVS
- bridge named <name>. Otherwise, it represents a port on an OVS
- bridge and TYPE must have one of the following values:
-
- * "OVSPort", if <name> is a physical port (e.g. eth0) or
- virtual port (e.g. vif1.0).
-
- * "OVSIntPort", if <name> is an internal port (e.g. a tagged
- VLAN).
-
- * "OVSBond", if <name> is an OVS bond.
-
- * "OVSTunnel", if <name> is an OVS tunnel.
-
- - OVS_BRIDGE: If TYPE is anything other than "OVSBridge", set to
- the name of the OVS bridge to which the port should be attached.
-
- - OVS_OPTIONS: Optionally, extra options to set in the "Port"
- table when adding the port to the bridge, as a sequence of
- column[:key]=value options. For example, "tag=100" to make the
- port an access port for VLAN 100. See the documentation of
- "add-port" in ovs-vsctl(8) for syntax and the section on the
- Port table in ovs-vswitchd.conf.db(5) for available options.
-
- - OVS_EXTRA: Optionally, additional ovs-vsctl commands, separated
- by "--" (double dash).
-
- - BOND_IFACES: For "OVSBond" interfaces, a list of physical
- interfaces to bond together.
-
- - OVS_TUNNEL_TYPE: For "OVSTunnel" interfaces, the type of the tunnel.
- For example, "gre", "vxlan", etc.
-
- - OVS_TUNNEL_OPTIONS: For "OVSTunnel" interfaces, this field should be
- used to specify the tunnel options like remote_ip, key, etc.
-
-Note
-----
-
-* "ifdown" on a bridge will not bring individual ports on the bridge
-down. "ifup" on a bridge will not add ports to the bridge. This
-behavior should be compatible with standard bridges (with
-TYPE=Bridge).
-
-* If 'ifup' on an interface is called multiple times, one can see
-"RTNETLINK answers: File exists" printed on the console. This comes from
-ifup-eth trying to add zeroconf route multiple times and is harmless.
-
-Examples
---------
-
-Standalone bridge:
-
-==> ifcfg-ovsbridge0 <==
-DEVICE=ovsbridge0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSBridge
-BOOTPROTO=static
-IPADDR=A.B.C.D
-NETMASK=X.Y.Z.0
-HOTPLUG=no
-
-Enable DHCP on the bridge:
-* Needs OVSBOOTPROTO instead of BOOTPROTO.
-* All the interfaces that can reach the DHCP server
-as a space separated list in OVSDHCPINTERFACES.
-
-DEVICE=ovsbridge0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSBridge
-OVSBOOTPROTO="dhcp"
-OVSDHCPINTERFACES="eth0"
-HOTPLUG=no
-
-
-Adding Internal Port to ovsbridge0:
-
-==> ifcfg-intbr0 <==
-DEVICE=intbr0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSIntPort
-OVS_BRIDGE=ovsbridge0
-HOTPLUG=no
-
-
-Internal Port with fixed IP address:
-
-DEVICE=intbr0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSIntPort
-OVS_BRIDGE=ovsbridge0
-BOOTPROTO=static
-IPADDR=A.B.C.D
-NETMASK=X.Y.Z.0
-HOTPLUG=no
-
-Internal Port with DHCP:
-* Needs OVSBOOTPROTO or BOOTPROTO.
-* All the interfaces that can reach the DHCP server
-as a space separated list in OVSDHCPINTERFACES.
-
-DEVICE=intbr0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSIntPort
-OVS_BRIDGE=ovsbridge0
-OVSBOOTPROTO="dhcp"
-OVSDHCPINTERFACES="eth0"
-HOTPLUG=no
-
-Adding physical eth0 to ovsbridge0 described above:
-
-==> ifcfg-eth0 <==
-DEVICE=eth0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSPort
-OVS_BRIDGE=ovsbridge0
-BOOTPROTO=none
-HOTPLUG=no
-
-
-Tagged VLAN interface on top of ovsbridge0:
-
-==> ifcfg-vlan100 <==
-DEVICE=vlan100
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSIntPort
-BOOTPROTO=static
-IPADDR=A.B.C.D
-NETMASK=X.Y.Z.0
-OVS_BRIDGE=ovsbridge0
-OVS_OPTIONS="tag=100"
-OVS_EXTRA="set Interface $DEVICE external-ids:iface-id=$(hostname -s)-$DEVICE-vif"
-HOTPLUG=no
-
-
-Bonding:
-
-==> ifcfg-bond0 <==
-DEVICE=bond0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSBond
-OVS_BRIDGE=ovsbridge0
-BOOTPROTO=none
-BOND_IFACES="gige-1b-0 gige-1b-1 gige-21-0 gige-21-1"
-OVS_OPTIONS="bond_mode=balance-tcp lacp=active"
-HOTPLUG=no
-
-==> ifcfg-gige-* <==
-DEVICE=gige-*
-ONBOOT=yes
-HOTPLUG=no
-
-An Open vSwitch Tunnel:
-
-==> ifcfg-gre0 <==
-DEVICE=ovs-gre0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSTunnel
-OVS_BRIDGE=ovsbridge0
-OVS_TUNNEL_TYPE=gre
-OVS_TUNNEL_OPTIONS="options:remote_ip=A.B.C.D"
-
-Reporting Bugs
---------------
-
-Please report problems to bugs at openvswitch.org.
diff --git a/openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch b/openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch
deleted file mode 100644
index 11b08db..0000000
--- a/openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch
+++ /dev/null
@@ -1,124 +0,0 @@
-[PATCH] bridge: don't bring up internal ports by default.
-
-It should be an administrator task to bring up devices as they
-are configured properly.
-
-Currently, Fedora is deleting the bridges when the interface is
-brought down. Therefore, there is no bridge on the next boot and
-the initscripts can apply the networking configuration properly
-for a new bridge.
-
-However, if the system didn't execute ifdown for some reason, the
-bridge is left in the ovsdb and since internal ports are brought
-up by default, there is no way for initscripts to known if the
-adminitrator has already configured it or not.
-
-This patch reverts commit bef071a5fdf8e2dd87677b04b3cf7a8f5094edcb
-(bridge: Always "up" internal devices.).
-
-Signed-off-by: Flavio Leitner <fbl at redhat.com>
-Signed-off-by: Ben Pfaff <blp at nicira.com>
----
- NEWS | 5 +++++
- tests/ofproto-dpif.at | 4 ++--
- tests/ofproto.at | 16 ++++++++--------
- vswitchd/bridge.c | 3 +--
- 4 files changed, 16 insertions(+), 12 deletions(-)
-
-diff --git a/NEWS b/NEWS
-index e1fb093..51849fe 100644
---- a/NEWS
-+++ b/NEWS
-@@ -1,3 +1,8 @@
-+Backported from upstream:
-+ - Internal ports are no longer brought up by default, because it
-+ should be an administrator task to bring up devices as they are
-+ configured properly.
-+
- v2.1.2 - 30 Apr 2014
- ---------------------
- - Bug fixes.
-diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
-index 618ea8d..b359e5f 100644
---- a/tests/ofproto-dpif.at
-+++ b/tests/ofproto-dpif.at
-@@ -1937,7 +1937,7 @@ IFCOUNTERS
- type=6
- ifspeed=100000000
- direction=0
-- status=3
-+ status=0
- in_octets=0
- in_unicasts=0
- in_multicasts=0
-@@ -2006,7 +2006,7 @@ IFCOUNTERS
- type=6
- ifspeed=100000000
- direction=0
-- status=3
-+ status=0
- in_octets=0
- in_unicasts=0
- in_multicasts=0
-diff --git a/tests/ofproto.at b/tests/ofproto.at
-index f6a62cd..dd56b39 100644
---- a/tests/ofproto.at
-+++ b/tests/ofproto.at
-@@ -38,8 +38,8 @@ n_tables:254, n_buffers:256
- capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
- actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
- LOCAL(br0): addr:aa:55:aa:55:00:00
-- config: 0
-- state: 0
-+ config: PORT_DOWN
-+ state: LINK_DOWN
- speed: 0 Mbps now, 0 Mbps max
- OFPT_GET_CONFIG_REPLY: frags=normal miss_send_len=0
- ])
-@@ -68,8 +68,8 @@ actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_N
- state: LINK_DOWN
- speed: 0 Mbps now, 0 Mbps max
- LOCAL(br0): addr:aa:55:aa:55:00:0x
-- config: 0
-- state: 0
-+ config: PORT_DOWN
-+ state: LINK_DOWN
- speed: 0 Mbps now, 0 Mbps max
- OFPT_GET_CONFIG_REPLY: frags=normal miss_send_len=0
- ])
-@@ -109,8 +109,8 @@ AT_CHECK([ovs-ofctl -vwarn dump-ports-desc br0], [0], [stdout])
- AT_CHECK([STRIP_XIDS stdout], [0], [dnl
- OFPST_PORT_DESC reply:
- LOCAL(br0): addr:aa:55:aa:55:00:00
-- config: 0
-- state: 0
-+ config: PORT_DOWN
-+ state: LINK_DOWN
- speed: 0 Mbps now, 0 Mbps max
- ])
- OVS_VSWITCHD_STOP
-@@ -124,8 +124,8 @@ AT_CHECK([ovs-ofctl -O OpenFlow12 -vwarn dump-ports-desc br0], [0], [stdout])
- AT_CHECK([STRIP_XIDS stdout], [0], [dnl
- OFPST_PORT_DESC reply (OF1.2):
- LOCAL(br0): addr:aa:55:aa:55:00:00
-- config: 0
-- state: 0
-+ config: PORT_DOWN
-+ state: LINK_DOWN
- speed: 0 Mbps now, 0 Mbps max
- ])
- OVS_VSWITCHD_STOP
-diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
-index 796fe48..79f2402 100644
---- a/vswitchd/bridge.c
-+++ b/vswitchd/bridge.c
-@@ -1488,8 +1488,7 @@ iface_do_create(const struct bridge *br,
- VLOG_INFO("bridge %s: added interface %s on port %d",
- br->name, iface_cfg->name, *ofp_portp);
-
-- if ((port_cfg->vlan_mode && !strcmp(port_cfg->vlan_mode, "splinter"))
-- || iface_is_internal(iface_cfg, br->cfg)) {
-+ if (port_cfg->vlan_mode && !strcmp(port_cfg->vlan_mode, "splinter")) {
- netdev_turn_flags_on(netdev, NETDEV_UP, NULL);
- }
-
diff --git a/openvswitch-fedora-package-fix-systemd-ordering-and-deps.patch b/openvswitch-fedora-package-fix-systemd-ordering-and-deps.patch
deleted file mode 100644
index ecdf69d..0000000
--- a/openvswitch-fedora-package-fix-systemd-ordering-and-deps.patch
+++ /dev/null
@@ -1,205 +0,0 @@
-From f32488ec28a05e26e0298b3e10b3a7fe422fbf88 Mon Sep 17 00:00:00 2001
-From: Flavio Leitner <fbl at redhat.com>
-Date: Thu, 9 Jan 2014 01:04:33 -0200
-Subject: [PATCH] fedora package: fix systemd ordering and deps.
-
-There is a chicken and egg issue where common OVS
-configuration uses a controller which is only accessible
-via the network. So starting OVS before network.target
-would break those configurations.
-
-However, the network doesn't come up after boot because
-OVS isn't started until after the network scripts tries
-to configure the ovs.
-
-This is partially fixed by commits:
- commit: 602453000e28ec1076c0482ce13c284765a84409
- rhel: Automatically start openvswitch service before bringing an ovs interfa
-
- commit: 3214851c31538e8690e31f95702f8927a8c0838b
- rhel: Add OVSREQUIRES to automatically bring up OpenFlow interface dependencies
-
-But still there is the dependency issue between network.target
-and openvswitch which this patch fixes it. It provides two systemd
-service units. One to run at any time (openvswitch-nonetwork.service)
-which runs 'ovs-ctl start' and the other one (openvswith.service) to
-run after network.target which works as a frontend to the admin.
-
-The openvswitch-nonetwork.service is used internally by the
-'ifup-ovs/ifdown-ovs' scripts when adding or removing ports to
-the bridge or when the openvswitch.service is enabled by the admin.
-
-Signed-off-by: Flavio Leitner <fbl at redhat.com>
-Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
----
- rhel/automake.mk | 4 +++-
- rhel/etc_sysconfig_network-scripts_ifdown-ovs | 11 ++++++++++-
- rhel/etc_sysconfig_network-scripts_ifup-ovs | 11 ++++++++++-
- rhel/openvswitch-fedora.spec.in | 5 ++++-
- ...ib_systemd_system_openvswitch-nonetwork.service | 13 ++++++++++++
- rhel/usr_lib_systemd_system_openvswitch.service | 7 ++++---
- ..._openvswitch_scripts_systemd_sysconfig.template | 23 ++++++++++++++++++++++
- 7 files changed, 67 insertions(+), 7 deletions(-)
- create mode 100644 rhel/usr_lib_systemd_system_openvswitch-nonetwork.service
- create mode 100644 rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template
-
-diff --git a/rhel/automake.mk b/rhel/automake.mk
-index 2911e71..9cd9a41 100644
---- a/rhel/automake.mk
-+++ b/rhel/automake.mk
-@@ -22,7 +22,9 @@ EXTRA_DIST += \
- rhel/openvswitch-fedora.spec \
- rhel/openvswitch-fedora.spec.in \
- rhel/usr_share_openvswitch_scripts_sysconfig.template \
-- rhel/usr_lib_systemd_system_openvswitch.service
-+ rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
-+ rhel/usr_lib_systemd_system_openvswitch.service \
-+ rhel/usr_lib_systemd_system_openvswitch-nonetwork.service
-
- update_rhel_spec = \
- ($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \
-diff --git a/rhel/etc_sysconfig_network-scripts_ifdown-ovs b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-index d2a2f4b..32fddb5 100755
---- a/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-+++ b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-@@ -34,7 +34,16 @@ if [ ! -x ${OTHERSCRIPT} ]; then
- OTHERSCRIPT="/etc/sysconfig/network-scripts/ifdown-eth"
- fi
-
--[ -f /var/lock/subsys/openvswitch ] || /sbin/service openvswitch start
-+SERVICE_UNIT=/usr/lib/systemd/system/openvswitch-nonetwork.service
-+if [ -f $SERVICE_UNIT ] && [ -x /usr/bin/systemctl ]; then
-+ if ! systemctl --quiet is-active openvswitch-nonetwork.service; then
-+ systemctl start openvswitch-nonetwork.service
-+ fi
-+else
-+ if [ ! -f /var/lock/subsys/openvswitch ]; then
-+ /sbin/service openvswitch start
-+ fi
-+fi
-
- case "$TYPE" in
- OVSBridge)
-diff --git a/rhel/etc_sysconfig_network-scripts_ifup-ovs b/rhel/etc_sysconfig_network-scripts_ifup-ovs
-index 8904c59..3c6b557 100755
---- a/rhel/etc_sysconfig_network-scripts_ifup-ovs
-+++ b/rhel/etc_sysconfig_network-scripts_ifup-ovs
-@@ -60,7 +60,16 @@ fi
- fi
- done
-
--[ -f /var/lock/subsys/openvswitch ] || /sbin/service openvswitch start
-+SERVICE_UNIT=/usr/lib/systemd/system/openvswitch-nonetwork.service
-+if [ -f $SERVICE_UNIT ] && [ -x /usr/bin/systemctl ]; then
-+ if ! systemctl --quiet is-active openvswitch-nonetwork.service; then
-+ systemctl start openvswitch-nonetwork.service
-+ fi
-+else
-+ if [ ! -f /var/lock/subsys/openvswitch ]; then
-+ /sbin/service openvswitch start
-+ fi
-+fi
-
- case "$TYPE" in
- OVSBridge)
-diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in
-index 27a3b03..8a5505d 100644
---- a/rhel/openvswitch-fedora.spec.in
-+++ b/rhel/openvswitch-fedora.spec.in
-@@ -45,6 +45,8 @@ install -d -m 755 $RPM_BUILD_ROOT/etc
- install -d -m 755 $RPM_BUILD_ROOT/etc/openvswitch
- install -p -D -m 0644 rhel/usr_lib_systemd_system_openvswitch.service \
- $RPM_BUILD_ROOT%{_unitdir}/openvswitch.service
-+install -p -D -m 0644 rhel/usr_lib_systemd_system_openvswitch-nonetwork.service \
-+ $RPM_BUILD_ROOT%{_unitdir}/openvswitch-nonetwork.service
- install -m 755 rhel/etc_init.d_openvswitch \
- $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/openvswitch.init
- install -d -m 755 $RPM_BUILD_ROOT/etc/sysconfig
-@@ -60,7 +62,7 @@ install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifdown-ovs \
- $RPM_BUILD_ROOT/etc/sysconfig/network-scripts/ifdown-ovs
- install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifup-ovs \
- $RPM_BUILD_ROOT/etc/sysconfig/network-scripts/ifup-ovs
--install -p -D -m 0644 rhel/usr_share_openvswitch_scripts_sysconfig.template \
-+install -p -D -m 0644 rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
- $RPM_BUILD_ROOT/etc/sysconfig/openvswitch
- install -d -m 755 $RPM_BUILD_ROOT/usr/share/openvswitch/scripts
-
-@@ -101,6 +103,7 @@ systemctl start openvswitch.service
- %config /etc/sysconfig/openvswitch
- %config /etc/logrotate.d/openvswitch
- %{_unitdir}/openvswitch.service
-+%{_unitdir}/openvswitch-nonetwork.service
- %{_datadir}/openvswitch/scripts/openvswitch.init
- %{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
- %{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
-diff --git a/rhel/usr_lib_systemd_system_openvswitch-nonetwork.service b/rhel/usr_lib_systemd_system_openvswitch-nonetwork.service
-new file mode 100644
-index 0000000..870b25e
---- /dev/null
-+++ b/rhel/usr_lib_systemd_system_openvswitch-nonetwork.service
-@@ -0,0 +1,13 @@
-+[Unit]
-+Description=Open vSwitch Internal Unit
-+After=syslog.target
-+PartOf=openvswitch.service
-+Wants=openvswitch.service
-+
-+[Service]
-+Type=oneshot
-+RemainAfterExit=yes
-+EnvironmentFile=-/etc/sysconfig/openvswitch
-+ExecStart=/usr/share/openvswitch/scripts/ovs-ctl start \
-+ --system-id=random $OPTIONS
-+ExecStop=/usr/share/openvswitch/scripts/ovs-ctl stop
-diff --git a/rhel/usr_lib_systemd_system_openvswitch.service b/rhel/usr_lib_systemd_system_openvswitch.service
-index f39d7e6..f0bc16f 100644
---- a/rhel/usr_lib_systemd_system_openvswitch.service
-+++ b/rhel/usr_lib_systemd_system_openvswitch.service
-@@ -1,11 +1,12 @@
- [Unit]
- Description=Open vSwitch
--After=syslog.target network.target
-+After=syslog.target network.target openvswitch-nonetwork.service
-+Requires=openvswitch-nonetwork.service
-
- [Service]
- Type=oneshot
--ExecStart=/usr/share/openvswitch/scripts/openvswitch.init start
--ExecStop=/usr/share/openvswitch/scripts/openvswitch.init stop
-+ExecStart=/bin/true
-+ExecStop=/bin/true
- RemainAfterExit=yes
-
- [Install]
-diff --git a/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template b/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template
-new file mode 100644
-index 0000000..3050a07
---- /dev/null
-+++ b/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template
-@@ -0,0 +1,23 @@
-+### Configuration options for openvswitch
-+#
-+# Enable core files:
-+# --force-corefiles=yes
-+#
-+# Set "nice" priority at which to run ovsdb-server:
-+# --ovsdb-server-priority=-10
-+#
-+# Set "nice" priority at which to run ovsdb-vswitchd:
-+# --ovs-vswitchd-priority=-10
-+#
-+# Pass or not --mlockall option to ovs-vswitchd.
-+# This option should be set to "yes" or "no". The default is "yes".
-+# Enabling this option can avoid networking interruptions due to
-+# system memory pressure in extraordinary situations, such as multiple
-+# concurrent VM import operations.
-+# --mlockall=yes
-+#
-+# Use valgrind:
-+# --ovs-vswitchd-wrapper=valgrind
-+# --ovsdb-server-wrapper=valgrind
-+#
-+OPTIONS=""
---
-1.8.4.2
-
diff --git a/openvswitch-ovs-lib-allow-non-root-users-to-check-service-status.patch b/openvswitch-ovs-lib-allow-non-root-users-to-check-service-status.patch
deleted file mode 100644
index 3b91229..0000000
--- a/openvswitch-ovs-lib-allow-non-root-users-to-check-service-status.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 691e47554dd03dd6492e00bab5bd6d215f5cbd4f Mon Sep 17 00:00:00 2001
-From: Flavio Leitner <fbl at redhat.com>
-Date: Thu, 27 Feb 2014 09:16:34 -0300
-Subject: [PATCH] ovs-lib: allow non-root users to check service status
-
-It tries to log the status operation, so although non-root
-users can see the current status, the lack of permission
-to write to the log results in an error message.
-
-This changes to log only if the user has the permission to
-write to the log file.
-
-Signed-off-by: Flavio Leitner <fbl at redhat.com>
-Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
----
- utilities/ovs-lib.in | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/utilities/ovs-lib.in b/utilities/ovs-lib.in
-index 029ed3b..48d0c36 100644
---- a/utilities/ovs-lib.in
-+++ b/utilities/ovs-lib.in
-@@ -54,7 +54,11 @@ ovs_ctl () {
- # of ovs-ctl. It is also useful to document the o/p in ovs-ctl.log.
- display=`"${datadir}/scripts/ovs-ctl" "$@" 2>&1`
- rc=$?
-- echo "${display}" | tee -a "${logdir}/ovs-ctl.log"
-+ if test -w "${logdir}/ovs-ctl.log"; then
-+ echo "${display}" | tee -a "${logdir}/ovs-ctl.log"
-+ else
-+ echo "${display}"
-+ fi
- return ${rc}
- ;;
- *)
---
-1.8.5.3
-
diff --git a/openvswitch-rhel-Add-Patch-Port-support-to-initscripts.patch b/openvswitch-rhel-Add-Patch-Port-support-to-initscripts.patch
deleted file mode 100644
index 06c202f..0000000
--- a/openvswitch-rhel-Add-Patch-Port-support-to-initscripts.patch
+++ /dev/null
@@ -1,114 +0,0 @@
-From e2bcc8ef49f5e51f48983b87ab1010f0f9ab1454 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jason=20K=C3=B6lker?= <jason at koelker.net>
-Date: Mon, 31 Mar 2014 23:34:14 +0000
-Subject: [PATCH] rhel: Add Patch Port support to initscripts
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Allows setting up type=patch ports through sysconfig ifcfg-* files.
-
-Signed-off-by: Jason Kölker <jason at koelker.net>
-Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
-Acked-by: Flavio Leitner <fbl at redhat.com>
----
- AUTHORS | 1 +
- rhel/README.RHEL | 25 +++++++++++++++++++++++++
- rhel/etc_sysconfig_network-scripts_ifdown-ovs | 3 +++
- rhel/etc_sysconfig_network-scripts_ifup-ovs | 4 ++++
- 4 files changed, 33 insertions(+)
-
-diff --git a/AUTHORS b/AUTHORS
-index 977753b..c5402cf 100644
---- a/AUTHORS
-+++ b/AUTHORS
-@@ -57,6 +57,7 @@ Isaku Yamahata yamahata at valinux.co.jp
- James P. roampune at gmail.com
- James Page james.page at ubuntu.com
- Jarno Rajahalme jrajahalme at nicira.com
-+Jason Kölker jason at koelker.net
- Jean Tourrilhes jt at hpl.hp.com
- Jeremy Stribling strib at nicira.com
- Jesse Gross jesse at nicira.com
-diff --git a/rhel/README.RHEL b/rhel/README.RHEL
-index cb6ab88..2620674 100644
---- a/rhel/README.RHEL
-+++ b/rhel/README.RHEL
-@@ -25,6 +25,8 @@ assignments. The following OVS-specific variable names are supported:
-
- * "OVSTunnel", if <name> is an OVS tunnel.
-
-+ * "OVSPatchPort", if <name> is a patch port
-+
- - OVS_BRIDGE: If TYPE is anything other than "OVSBridge", set to
- the name of the OVS bridge to which the port should be attached.
-
-@@ -47,6 +49,9 @@ assignments. The following OVS-specific variable names are supported:
- - OVS_TUNNEL_OPTIONS: For "OVSTunnel" interfaces, this field should be
- used to specify the tunnel options like remote_ip, key, etc.
-
-+ - OVS_PATCH_PEER: For "OVSPatchPort" devices, this field specifies
-+ the patch's peer on the other bridge.
-+
- Note
- ----
-
-@@ -182,6 +187,26 @@ OVS_BRIDGE=ovsbridge0
- OVS_TUNNEL_TYPE=gre
- OVS_TUNNEL_OPTIONS="options:remote_ip=A.B.C.D"
-
-+
-+Patch Ports:
-+
-+==> ifcfg-patch-ovs-0 <==
-+DEVICE=patch-ovs-0
-+ONBOOT=yes
-+DEVICETYPE=ovs
-+TYPE=OVSPatchPort
-+OVS_BRIDGE=ovsbridge0
-+OVS_PATCH_PEER=patch-ovs-1
-+
-+==> ifcfg-patch-ovs-1 <==
-+DEVICE=patch-ovs-1
-+ONBOOT=yes
-+DEVICETYPE=ovs
-+TYPE=OVSPatchPort
-+OVS_BRIDGE=ovsbridge1
-+OVS_PATCH_PEER=patch-ovs-0
-+
-+
- Reporting Bugs
- --------------
-
-diff --git a/rhel/etc_sysconfig_network-scripts_ifdown-ovs b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-index 8e768c8..1371a30 100755
---- a/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-+++ b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-@@ -47,6 +47,9 @@ case "$TYPE" in
- retval=$?
- ovs-vsctl -t ${TIMEOUT} -- --if-exists del-port "$OVS_BRIDGE" "$DEVICE"
- ;;
-+ OVSPatchPort)
-+ ovs-vsctl -t ${TIMEOUT} -- --if-exists del-port "$OVS_BRIDGE" "$DEVICE"
-+ ;;
- *)
- echo $"Invalid OVS interface type $TYPE"
- exit 1
-diff --git a/rhel/etc_sysconfig_network-scripts_ifup-ovs b/rhel/etc_sysconfig_network-scripts_ifup-ovs
-index a50c72f..f5641d2 100755
---- a/rhel/etc_sysconfig_network-scripts_ifup-ovs
-+++ b/rhel/etc_sysconfig_network-scripts_ifup-ovs
-@@ -127,6 +127,10 @@ case "$TYPE" in
- ovs-vsctl -t ${TIMEOUT} -- --may-exist add-port "$OVS_BRIDGE" "$DEVICE" $OVS_OPTIONS -- set Interface "$DEVICE" type=$OVS_TUNNEL_TYPE $OVS_TUNNEL_OPTIONS ${OVS_EXTRA+-- $OVS_EXTRA}
- ${OTHERSCRIPT} ${CONFIG} ${2}
- ;;
-+ OVSPatchPort)
-+ ifup_ovs_bridge
-+ ovs-vsctl -t ${TIMEOUT} -- --may-exist add-port "$OVS_BRIDGE" "$DEVICE" $OVS_OPTIONS -- set Interface "$DEVICE" type=patch options:peer="${OVS_PATCH_PEER}" ${OVS_EXTRA+-- $OVS_EXTRA}
-+ ;;
- *)
- echo $"Invalid OVS interface type $TYPE"
- exit 1
---
-1.8.5.3
-
diff --git a/openvswitch.spec b/openvswitch.spec
index 60913b0..2968253 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -1,34 +1,30 @@
%global _hardened_build 1
+# If wants to run tests while building, specify the '--with check'
+# option. For example:
+# rpmbuild -bb --with check openvswitch.spec
-Name: openvswitch
-Version: 2.1.2
-Release: 5%{?dist}
-Summary: Open vSwitch daemon/database/utilities
+Name: openvswitch
+Version: 2.3.0
+Release: 1%{?dist}
+Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
# lib/sflow*.[ch] files are SISSL
# datapath/ is GPLv2 (although not built into any of the binary packages)
# python/compat is Python (although not built into any of the binary packages)
-License: ASL 2.0 and LGPLv2+ and SISSL
-URL: http://openvswitch.org
-Source0: http://openvswitch.org/releases/%{name}-%{version}.tar.gz
-Source3: openvswitch.logrotate
-Source9: README.RHEL
+License: ASL 2.0 and LGPLv2+ and SISSL
+URL: http://openvswitch.org
+Source0: http://openvswitch.org/releases/%{name}-%{version}.tar.gz
+Source3: openvswitch.logrotate
ExcludeArch: ppc
-Patch1: openvswitch-fedora-package-fix-systemd-ordering-and-deps.patch
-Patch3: openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch
-Patch4: openvswitch-ovs-lib-allow-non-root-users-to-check-service-status.patch
-Patch5: openvswitch-rhel-Add-Patch-Port-support-to-initscripts.patch
-
-
-BuildRequires: autoconf
-BuildRequires: systemd-units openssl openssl-devel
-BuildRequires: python python-twisted-core python-zope-interface PyQt4
-BuildRequires: desktop-file-utils
-BuildRequires: groff graphviz
+BuildRequires: autoconf
+BuildRequires: systemd-units openssl openssl-devel
+BuildRequires: python python-twisted-core python-zope-interface PyQt4
+BuildRequires: desktop-file-utils
+BuildRequires: groff graphviz
Requires: openssl iproute module-init-tools
Requires: kernel >= 3.15.0-0
@@ -38,35 +34,37 @@ Requires(preun): systemd-units
Requires(postun): systemd-units
Obsoletes: openvswitch-controller <= 0:2.1.0-1
+%bcond_with check
+
%description
Open vSwitch provides standard network bridging functions and
support for the OpenFlow protocol for remote per-flow control of
traffic.
%package -n python-openvswitch
-Summary: Open vSwitch python bindings
-License: ASL 2.0
-BuildArch: noarch
-Requires: python
+Summary: Open vSwitch python bindings
+License: ASL 2.0
+BuildArch: noarch
+Requires: python
%description -n python-openvswitch
Python bindings for the Open vSwitch database
%package test
-Summary: Open vSwitch testing utilities
-License: ASL 2.0
-BuildArch: noarch
-Requires: python-openvswitch = %{version}-%{release}
-Requires: python python-twisted-core python-twisted-web
+Summary: Open vSwitch testing utilities
+License: ASL 2.0
+BuildArch: noarch
+Requires: python-openvswitch = %{version}-%{release}
+Requires: python python-twisted-core python-twisted-web
%description test
Utilities that are useful to diagnose performance and connectivity
issues in Open vSwitch setup.
%package devel
-Summary: Open vSwitch OpenFlow development package (library, headers)
-License: ASL 2.0
-Provides: openvswitch-static = %{version}-%{release}
+Summary: Open vSwitch OpenFlow development package (library, headers)
+License: ASL 2.0
+Provides: openvswitch-static = %{version}-%{release}
%description devel
This provides static library, libopenswitch.a and the openvswtich header
@@ -74,10 +72,6 @@ files needed to build an external application.
%prep
%setup -q
-%patch1 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
%build
%configure --enable-ssl --with-pkidir=%{_sharedstatedir}/openvswitch/pki
@@ -116,9 +110,6 @@ install -d -m 0755 $RPM_BUILD_ROOT%{python_sitelib}
mv $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/* $RPM_BUILD_ROOT%{python_sitelib}
rmdir $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/
-mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
-install -p -m 0644 %{SOURCE9} $RPM_BUILD_ROOT%{_docdir}/%{name}
-
# Get rid of stuff we don't want to make RPM happy.
rm -f \
$RPM_BUILD_ROOT%{_sbindir}/ovs-vlan-bug-workaround \
@@ -182,6 +173,16 @@ install -p -D -m 0644 include/openflow/*.h \
fi
%endif
+%check
+%if %{with check}
+ if make check TESTSUITEFLAGS='%{_smp_mflags}' ||
+ make check TESTSUITEFLAGS='--recheck'; then :;
+ else
+ cat tests/testsuite.log
+ exit 1
+ fi
+%endif
+
%files
%{_sysconfdir}/openvswitch/
%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
@@ -230,9 +231,9 @@ install -p -D -m 0644 include/openflow/*.h \
# /usr/share/openvswitch/scripts/ovs-bugtool* are LGPLv2+
%{_datadir}/openvswitch/
%{_sharedstatedir}/openvswitch
-%{_docdir}/%{name}/README.RHEL
# see COPYING for full licensing details
-%doc COPYING DESIGN INSTALL.SSL NOTICE README WHY-OVS FAQ NEWS
+%doc COPYING DESIGN INSTALL.SSL NOTICE README WHY-OVS rhel/README.RHEL
+%doc FAQ NEWS INSTALL.DPDK
%files -n python-openvswitch
%{python_sitelib}/ovs
@@ -254,6 +255,9 @@ install -p -D -m 0644 include/openflow/*.h \
%{_includedir}/openflow/*
%changelog
+* Tue Aug 19 2014 Flavio Leitner - 2.3.0-1
+- updated to 2.3.0
+
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
diff --git a/sources b/sources
index c5ab20f..bcfa94d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-430ff6d1e1fc81e9c5ebc2e641cfc953 openvswitch-2.1.2.tar.gz
+9c4d1471a56718132e0157af1bfc9310 openvswitch-2.3.0.tar.gz
--
cgit v0.10.2
>From 7f5eed71870a6d0be1c761854fd33d02ee7e78af Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl at redhat.com>
Date: Tue, 26 Aug 2014 11:48:19 -0300
Subject: Updated to 2.3.0
Resolves: #1133701
diff --git a/.gitignore b/.gitignore
index 8b77aa5..4254909 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
/openvswitch-2.0.1.tar.gz
/openvswitch-2.1.0.tar.gz
/openvswitch-2.1.2.tar.gz
+/openvswitch-2.3.0.tar.gz
diff --git a/README.RHEL b/README.RHEL
deleted file mode 100644
index cb6ab88..0000000
--- a/README.RHEL
+++ /dev/null
@@ -1,188 +0,0 @@
-Red Hat network scripts integration
------------------------------------
-
-The RPM packages for Open vSwitch provide some integration with Red
-Hat's network scripts. Using this integration is optional.
-
-To use the integration for a Open vSwitch bridge or interface named
-<name>, create or edit /etc/sysconfig/network-scripts/ifcfg-<name>.
-This is a shell script that consists of a series of VARIABLE=VALUE
-assignments. The following OVS-specific variable names are supported:
-
- - DEVICETYPE: Always set to "ovs".
-
- - TYPE: If this is "OVSBridge", then this file represents an OVS
- bridge named <name>. Otherwise, it represents a port on an OVS
- bridge and TYPE must have one of the following values:
-
- * "OVSPort", if <name> is a physical port (e.g. eth0) or
- virtual port (e.g. vif1.0).
-
- * "OVSIntPort", if <name> is an internal port (e.g. a tagged
- VLAN).
-
- * "OVSBond", if <name> is an OVS bond.
-
- * "OVSTunnel", if <name> is an OVS tunnel.
-
- - OVS_BRIDGE: If TYPE is anything other than "OVSBridge", set to
- the name of the OVS bridge to which the port should be attached.
-
- - OVS_OPTIONS: Optionally, extra options to set in the "Port"
- table when adding the port to the bridge, as a sequence of
- column[:key]=value options. For example, "tag=100" to make the
- port an access port for VLAN 100. See the documentation of
- "add-port" in ovs-vsctl(8) for syntax and the section on the
- Port table in ovs-vswitchd.conf.db(5) for available options.
-
- - OVS_EXTRA: Optionally, additional ovs-vsctl commands, separated
- by "--" (double dash).
-
- - BOND_IFACES: For "OVSBond" interfaces, a list of physical
- interfaces to bond together.
-
- - OVS_TUNNEL_TYPE: For "OVSTunnel" interfaces, the type of the tunnel.
- For example, "gre", "vxlan", etc.
-
- - OVS_TUNNEL_OPTIONS: For "OVSTunnel" interfaces, this field should be
- used to specify the tunnel options like remote_ip, key, etc.
-
-Note
-----
-
-* "ifdown" on a bridge will not bring individual ports on the bridge
-down. "ifup" on a bridge will not add ports to the bridge. This
-behavior should be compatible with standard bridges (with
-TYPE=Bridge).
-
-* If 'ifup' on an interface is called multiple times, one can see
-"RTNETLINK answers: File exists" printed on the console. This comes from
-ifup-eth trying to add zeroconf route multiple times and is harmless.
-
-Examples
---------
-
-Standalone bridge:
-
-==> ifcfg-ovsbridge0 <==
-DEVICE=ovsbridge0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSBridge
-BOOTPROTO=static
-IPADDR=A.B.C.D
-NETMASK=X.Y.Z.0
-HOTPLUG=no
-
-Enable DHCP on the bridge:
-* Needs OVSBOOTPROTO instead of BOOTPROTO.
-* All the interfaces that can reach the DHCP server
-as a space separated list in OVSDHCPINTERFACES.
-
-DEVICE=ovsbridge0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSBridge
-OVSBOOTPROTO="dhcp"
-OVSDHCPINTERFACES="eth0"
-HOTPLUG=no
-
-
-Adding Internal Port to ovsbridge0:
-
-==> ifcfg-intbr0 <==
-DEVICE=intbr0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSIntPort
-OVS_BRIDGE=ovsbridge0
-HOTPLUG=no
-
-
-Internal Port with fixed IP address:
-
-DEVICE=intbr0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSIntPort
-OVS_BRIDGE=ovsbridge0
-BOOTPROTO=static
-IPADDR=A.B.C.D
-NETMASK=X.Y.Z.0
-HOTPLUG=no
-
-Internal Port with DHCP:
-* Needs OVSBOOTPROTO or BOOTPROTO.
-* All the interfaces that can reach the DHCP server
-as a space separated list in OVSDHCPINTERFACES.
-
-DEVICE=intbr0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSIntPort
-OVS_BRIDGE=ovsbridge0
-OVSBOOTPROTO="dhcp"
-OVSDHCPINTERFACES="eth0"
-HOTPLUG=no
-
-Adding physical eth0 to ovsbridge0 described above:
-
-==> ifcfg-eth0 <==
-DEVICE=eth0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSPort
-OVS_BRIDGE=ovsbridge0
-BOOTPROTO=none
-HOTPLUG=no
-
-
-Tagged VLAN interface on top of ovsbridge0:
-
-==> ifcfg-vlan100 <==
-DEVICE=vlan100
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSIntPort
-BOOTPROTO=static
-IPADDR=A.B.C.D
-NETMASK=X.Y.Z.0
-OVS_BRIDGE=ovsbridge0
-OVS_OPTIONS="tag=100"
-OVS_EXTRA="set Interface $DEVICE external-ids:iface-id=$(hostname -s)-$DEVICE-vif"
-HOTPLUG=no
-
-
-Bonding:
-
-==> ifcfg-bond0 <==
-DEVICE=bond0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSBond
-OVS_BRIDGE=ovsbridge0
-BOOTPROTO=none
-BOND_IFACES="gige-1b-0 gige-1b-1 gige-21-0 gige-21-1"
-OVS_OPTIONS="bond_mode=balance-tcp lacp=active"
-HOTPLUG=no
-
-==> ifcfg-gige-* <==
-DEVICE=gige-*
-ONBOOT=yes
-HOTPLUG=no
-
-An Open vSwitch Tunnel:
-
-==> ifcfg-gre0 <==
-DEVICE=ovs-gre0
-ONBOOT=yes
-DEVICETYPE=ovs
-TYPE=OVSTunnel
-OVS_BRIDGE=ovsbridge0
-OVS_TUNNEL_TYPE=gre
-OVS_TUNNEL_OPTIONS="options:remote_ip=A.B.C.D"
-
-Reporting Bugs
---------------
-
-Please report problems to bugs at openvswitch.org.
diff --git a/openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch b/openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch
deleted file mode 100644
index 11b08db..0000000
--- a/openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch
+++ /dev/null
@@ -1,124 +0,0 @@
-[PATCH] bridge: don't bring up internal ports by default.
-
-It should be an administrator task to bring up devices as they
-are configured properly.
-
-Currently, Fedora is deleting the bridges when the interface is
-brought down. Therefore, there is no bridge on the next boot and
-the initscripts can apply the networking configuration properly
-for a new bridge.
-
-However, if the system didn't execute ifdown for some reason, the
-bridge is left in the ovsdb and since internal ports are brought
-up by default, there is no way for initscripts to known if the
-adminitrator has already configured it or not.
-
-This patch reverts commit bef071a5fdf8e2dd87677b04b3cf7a8f5094edcb
-(bridge: Always "up" internal devices.).
-
-Signed-off-by: Flavio Leitner <fbl at redhat.com>
-Signed-off-by: Ben Pfaff <blp at nicira.com>
----
- NEWS | 5 +++++
- tests/ofproto-dpif.at | 4 ++--
- tests/ofproto.at | 16 ++++++++--------
- vswitchd/bridge.c | 3 +--
- 4 files changed, 16 insertions(+), 12 deletions(-)
-
-diff --git a/NEWS b/NEWS
-index e1fb093..51849fe 100644
---- a/NEWS
-+++ b/NEWS
-@@ -1,3 +1,8 @@
-+Backported from upstream:
-+ - Internal ports are no longer brought up by default, because it
-+ should be an administrator task to bring up devices as they are
-+ configured properly.
-+
- v2.1.2 - 30 Apr 2014
- ---------------------
- - Bug fixes.
-diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
-index 618ea8d..b359e5f 100644
---- a/tests/ofproto-dpif.at
-+++ b/tests/ofproto-dpif.at
-@@ -1937,7 +1937,7 @@ IFCOUNTERS
- type=6
- ifspeed=100000000
- direction=0
-- status=3
-+ status=0
- in_octets=0
- in_unicasts=0
- in_multicasts=0
-@@ -2006,7 +2006,7 @@ IFCOUNTERS
- type=6
- ifspeed=100000000
- direction=0
-- status=3
-+ status=0
- in_octets=0
- in_unicasts=0
- in_multicasts=0
-diff --git a/tests/ofproto.at b/tests/ofproto.at
-index f6a62cd..dd56b39 100644
---- a/tests/ofproto.at
-+++ b/tests/ofproto.at
-@@ -38,8 +38,8 @@ n_tables:254, n_buffers:256
- capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
- actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
- LOCAL(br0): addr:aa:55:aa:55:00:00
-- config: 0
-- state: 0
-+ config: PORT_DOWN
-+ state: LINK_DOWN
- speed: 0 Mbps now, 0 Mbps max
- OFPT_GET_CONFIG_REPLY: frags=normal miss_send_len=0
- ])
-@@ -68,8 +68,8 @@ actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_N
- state: LINK_DOWN
- speed: 0 Mbps now, 0 Mbps max
- LOCAL(br0): addr:aa:55:aa:55:00:0x
-- config: 0
-- state: 0
-+ config: PORT_DOWN
-+ state: LINK_DOWN
- speed: 0 Mbps now, 0 Mbps max
- OFPT_GET_CONFIG_REPLY: frags=normal miss_send_len=0
- ])
-@@ -109,8 +109,8 @@ AT_CHECK([ovs-ofctl -vwarn dump-ports-desc br0], [0], [stdout])
- AT_CHECK([STRIP_XIDS stdout], [0], [dnl
- OFPST_PORT_DESC reply:
- LOCAL(br0): addr:aa:55:aa:55:00:00
-- config: 0
-- state: 0
-+ config: PORT_DOWN
-+ state: LINK_DOWN
- speed: 0 Mbps now, 0 Mbps max
- ])
- OVS_VSWITCHD_STOP
-@@ -124,8 +124,8 @@ AT_CHECK([ovs-ofctl -O OpenFlow12 -vwarn dump-ports-desc br0], [0], [stdout])
- AT_CHECK([STRIP_XIDS stdout], [0], [dnl
- OFPST_PORT_DESC reply (OF1.2):
- LOCAL(br0): addr:aa:55:aa:55:00:00
-- config: 0
-- state: 0
-+ config: PORT_DOWN
-+ state: LINK_DOWN
- speed: 0 Mbps now, 0 Mbps max
- ])
- OVS_VSWITCHD_STOP
-diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
-index 796fe48..79f2402 100644
---- a/vswitchd/bridge.c
-+++ b/vswitchd/bridge.c
-@@ -1488,8 +1488,7 @@ iface_do_create(const struct bridge *br,
- VLOG_INFO("bridge %s: added interface %s on port %d",
- br->name, iface_cfg->name, *ofp_portp);
-
-- if ((port_cfg->vlan_mode && !strcmp(port_cfg->vlan_mode, "splinter"))
-- || iface_is_internal(iface_cfg, br->cfg)) {
-+ if (port_cfg->vlan_mode && !strcmp(port_cfg->vlan_mode, "splinter")) {
- netdev_turn_flags_on(netdev, NETDEV_UP, NULL);
- }
-
diff --git a/openvswitch-fedora-package-fix-systemd-ordering-and-deps.patch b/openvswitch-fedora-package-fix-systemd-ordering-and-deps.patch
deleted file mode 100644
index ecdf69d..0000000
--- a/openvswitch-fedora-package-fix-systemd-ordering-and-deps.patch
+++ /dev/null
@@ -1,205 +0,0 @@
-From f32488ec28a05e26e0298b3e10b3a7fe422fbf88 Mon Sep 17 00:00:00 2001
-From: Flavio Leitner <fbl at redhat.com>
-Date: Thu, 9 Jan 2014 01:04:33 -0200
-Subject: [PATCH] fedora package: fix systemd ordering and deps.
-
-There is a chicken and egg issue where common OVS
-configuration uses a controller which is only accessible
-via the network. So starting OVS before network.target
-would break those configurations.
-
-However, the network doesn't come up after boot because
-OVS isn't started until after the network scripts tries
-to configure the ovs.
-
-This is partially fixed by commits:
- commit: 602453000e28ec1076c0482ce13c284765a84409
- rhel: Automatically start openvswitch service before bringing an ovs interfa
-
- commit: 3214851c31538e8690e31f95702f8927a8c0838b
- rhel: Add OVSREQUIRES to automatically bring up OpenFlow interface dependencies
-
-But still there is the dependency issue between network.target
-and openvswitch which this patch fixes it. It provides two systemd
-service units. One to run at any time (openvswitch-nonetwork.service)
-which runs 'ovs-ctl start' and the other one (openvswith.service) to
-run after network.target which works as a frontend to the admin.
-
-The openvswitch-nonetwork.service is used internally by the
-'ifup-ovs/ifdown-ovs' scripts when adding or removing ports to
-the bridge or when the openvswitch.service is enabled by the admin.
-
-Signed-off-by: Flavio Leitner <fbl at redhat.com>
-Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
----
- rhel/automake.mk | 4 +++-
- rhel/etc_sysconfig_network-scripts_ifdown-ovs | 11 ++++++++++-
- rhel/etc_sysconfig_network-scripts_ifup-ovs | 11 ++++++++++-
- rhel/openvswitch-fedora.spec.in | 5 ++++-
- ...ib_systemd_system_openvswitch-nonetwork.service | 13 ++++++++++++
- rhel/usr_lib_systemd_system_openvswitch.service | 7 ++++---
- ..._openvswitch_scripts_systemd_sysconfig.template | 23 ++++++++++++++++++++++
- 7 files changed, 67 insertions(+), 7 deletions(-)
- create mode 100644 rhel/usr_lib_systemd_system_openvswitch-nonetwork.service
- create mode 100644 rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template
-
-diff --git a/rhel/automake.mk b/rhel/automake.mk
-index 2911e71..9cd9a41 100644
---- a/rhel/automake.mk
-+++ b/rhel/automake.mk
-@@ -22,7 +22,9 @@ EXTRA_DIST += \
- rhel/openvswitch-fedora.spec \
- rhel/openvswitch-fedora.spec.in \
- rhel/usr_share_openvswitch_scripts_sysconfig.template \
-- rhel/usr_lib_systemd_system_openvswitch.service
-+ rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
-+ rhel/usr_lib_systemd_system_openvswitch.service \
-+ rhel/usr_lib_systemd_system_openvswitch-nonetwork.service
-
- update_rhel_spec = \
- ($(ro_shell) && sed -e 's,[@]VERSION[@],$(VERSION),g') \
-diff --git a/rhel/etc_sysconfig_network-scripts_ifdown-ovs b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-index d2a2f4b..32fddb5 100755
---- a/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-+++ b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-@@ -34,7 +34,16 @@ if [ ! -x ${OTHERSCRIPT} ]; then
- OTHERSCRIPT="/etc/sysconfig/network-scripts/ifdown-eth"
- fi
-
--[ -f /var/lock/subsys/openvswitch ] || /sbin/service openvswitch start
-+SERVICE_UNIT=/usr/lib/systemd/system/openvswitch-nonetwork.service
-+if [ -f $SERVICE_UNIT ] && [ -x /usr/bin/systemctl ]; then
-+ if ! systemctl --quiet is-active openvswitch-nonetwork.service; then
-+ systemctl start openvswitch-nonetwork.service
-+ fi
-+else
-+ if [ ! -f /var/lock/subsys/openvswitch ]; then
-+ /sbin/service openvswitch start
-+ fi
-+fi
-
- case "$TYPE" in
- OVSBridge)
-diff --git a/rhel/etc_sysconfig_network-scripts_ifup-ovs b/rhel/etc_sysconfig_network-scripts_ifup-ovs
-index 8904c59..3c6b557 100755
---- a/rhel/etc_sysconfig_network-scripts_ifup-ovs
-+++ b/rhel/etc_sysconfig_network-scripts_ifup-ovs
-@@ -60,7 +60,16 @@ fi
- fi
- done
-
--[ -f /var/lock/subsys/openvswitch ] || /sbin/service openvswitch start
-+SERVICE_UNIT=/usr/lib/systemd/system/openvswitch-nonetwork.service
-+if [ -f $SERVICE_UNIT ] && [ -x /usr/bin/systemctl ]; then
-+ if ! systemctl --quiet is-active openvswitch-nonetwork.service; then
-+ systemctl start openvswitch-nonetwork.service
-+ fi
-+else
-+ if [ ! -f /var/lock/subsys/openvswitch ]; then
-+ /sbin/service openvswitch start
-+ fi
-+fi
-
- case "$TYPE" in
- OVSBridge)
-diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in
-index 27a3b03..8a5505d 100644
---- a/rhel/openvswitch-fedora.spec.in
-+++ b/rhel/openvswitch-fedora.spec.in
-@@ -45,6 +45,8 @@ install -d -m 755 $RPM_BUILD_ROOT/etc
- install -d -m 755 $RPM_BUILD_ROOT/etc/openvswitch
- install -p -D -m 0644 rhel/usr_lib_systemd_system_openvswitch.service \
- $RPM_BUILD_ROOT%{_unitdir}/openvswitch.service
-+install -p -D -m 0644 rhel/usr_lib_systemd_system_openvswitch-nonetwork.service \
-+ $RPM_BUILD_ROOT%{_unitdir}/openvswitch-nonetwork.service
- install -m 755 rhel/etc_init.d_openvswitch \
- $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/openvswitch.init
- install -d -m 755 $RPM_BUILD_ROOT/etc/sysconfig
-@@ -60,7 +62,7 @@ install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifdown-ovs \
- $RPM_BUILD_ROOT/etc/sysconfig/network-scripts/ifdown-ovs
- install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifup-ovs \
- $RPM_BUILD_ROOT/etc/sysconfig/network-scripts/ifup-ovs
--install -p -D -m 0644 rhel/usr_share_openvswitch_scripts_sysconfig.template \
-+install -p -D -m 0644 rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
- $RPM_BUILD_ROOT/etc/sysconfig/openvswitch
- install -d -m 755 $RPM_BUILD_ROOT/usr/share/openvswitch/scripts
-
-@@ -101,6 +103,7 @@ systemctl start openvswitch.service
- %config /etc/sysconfig/openvswitch
- %config /etc/logrotate.d/openvswitch
- %{_unitdir}/openvswitch.service
-+%{_unitdir}/openvswitch-nonetwork.service
- %{_datadir}/openvswitch/scripts/openvswitch.init
- %{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
- %{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
-diff --git a/rhel/usr_lib_systemd_system_openvswitch-nonetwork.service b/rhel/usr_lib_systemd_system_openvswitch-nonetwork.service
-new file mode 100644
-index 0000000..870b25e
---- /dev/null
-+++ b/rhel/usr_lib_systemd_system_openvswitch-nonetwork.service
-@@ -0,0 +1,13 @@
-+[Unit]
-+Description=Open vSwitch Internal Unit
-+After=syslog.target
-+PartOf=openvswitch.service
-+Wants=openvswitch.service
-+
-+[Service]
-+Type=oneshot
-+RemainAfterExit=yes
-+EnvironmentFile=-/etc/sysconfig/openvswitch
-+ExecStart=/usr/share/openvswitch/scripts/ovs-ctl start \
-+ --system-id=random $OPTIONS
-+ExecStop=/usr/share/openvswitch/scripts/ovs-ctl stop
-diff --git a/rhel/usr_lib_systemd_system_openvswitch.service b/rhel/usr_lib_systemd_system_openvswitch.service
-index f39d7e6..f0bc16f 100644
---- a/rhel/usr_lib_systemd_system_openvswitch.service
-+++ b/rhel/usr_lib_systemd_system_openvswitch.service
-@@ -1,11 +1,12 @@
- [Unit]
- Description=Open vSwitch
--After=syslog.target network.target
-+After=syslog.target network.target openvswitch-nonetwork.service
-+Requires=openvswitch-nonetwork.service
-
- [Service]
- Type=oneshot
--ExecStart=/usr/share/openvswitch/scripts/openvswitch.init start
--ExecStop=/usr/share/openvswitch/scripts/openvswitch.init stop
-+ExecStart=/bin/true
-+ExecStop=/bin/true
- RemainAfterExit=yes
-
- [Install]
-diff --git a/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template b/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template
-new file mode 100644
-index 0000000..3050a07
---- /dev/null
-+++ b/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template
-@@ -0,0 +1,23 @@
-+### Configuration options for openvswitch
-+#
-+# Enable core files:
-+# --force-corefiles=yes
-+#
-+# Set "nice" priority at which to run ovsdb-server:
-+# --ovsdb-server-priority=-10
-+#
-+# Set "nice" priority at which to run ovsdb-vswitchd:
-+# --ovs-vswitchd-priority=-10
-+#
-+# Pass or not --mlockall option to ovs-vswitchd.
-+# This option should be set to "yes" or "no". The default is "yes".
-+# Enabling this option can avoid networking interruptions due to
-+# system memory pressure in extraordinary situations, such as multiple
-+# concurrent VM import operations.
-+# --mlockall=yes
-+#
-+# Use valgrind:
-+# --ovs-vswitchd-wrapper=valgrind
-+# --ovsdb-server-wrapper=valgrind
-+#
-+OPTIONS=""
---
-1.8.4.2
-
diff --git a/openvswitch-ovs-lib-allow-non-root-users-to-check-service-status.patch b/openvswitch-ovs-lib-allow-non-root-users-to-check-service-status.patch
deleted file mode 100644
index 3b91229..0000000
--- a/openvswitch-ovs-lib-allow-non-root-users-to-check-service-status.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 691e47554dd03dd6492e00bab5bd6d215f5cbd4f Mon Sep 17 00:00:00 2001
-From: Flavio Leitner <fbl at redhat.com>
-Date: Thu, 27 Feb 2014 09:16:34 -0300
-Subject: [PATCH] ovs-lib: allow non-root users to check service status
-
-It tries to log the status operation, so although non-root
-users can see the current status, the lack of permission
-to write to the log results in an error message.
-
-This changes to log only if the user has the permission to
-write to the log file.
-
-Signed-off-by: Flavio Leitner <fbl at redhat.com>
-Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
----
- utilities/ovs-lib.in | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/utilities/ovs-lib.in b/utilities/ovs-lib.in
-index 029ed3b..48d0c36 100644
---- a/utilities/ovs-lib.in
-+++ b/utilities/ovs-lib.in
-@@ -54,7 +54,11 @@ ovs_ctl () {
- # of ovs-ctl. It is also useful to document the o/p in ovs-ctl.log.
- display=`"${datadir}/scripts/ovs-ctl" "$@" 2>&1`
- rc=$?
-- echo "${display}" | tee -a "${logdir}/ovs-ctl.log"
-+ if test -w "${logdir}/ovs-ctl.log"; then
-+ echo "${display}" | tee -a "${logdir}/ovs-ctl.log"
-+ else
-+ echo "${display}"
-+ fi
- return ${rc}
- ;;
- *)
---
-1.8.5.3
-
diff --git a/openvswitch-rhel-Add-Patch-Port-support-to-initscripts.patch b/openvswitch-rhel-Add-Patch-Port-support-to-initscripts.patch
deleted file mode 100644
index 06c202f..0000000
--- a/openvswitch-rhel-Add-Patch-Port-support-to-initscripts.patch
+++ /dev/null
@@ -1,114 +0,0 @@
-From e2bcc8ef49f5e51f48983b87ab1010f0f9ab1454 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jason=20K=C3=B6lker?= <jason at koelker.net>
-Date: Mon, 31 Mar 2014 23:34:14 +0000
-Subject: [PATCH] rhel: Add Patch Port support to initscripts
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Allows setting up type=patch ports through sysconfig ifcfg-* files.
-
-Signed-off-by: Jason Kölker <jason at koelker.net>
-Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
-Acked-by: Flavio Leitner <fbl at redhat.com>
----
- AUTHORS | 1 +
- rhel/README.RHEL | 25 +++++++++++++++++++++++++
- rhel/etc_sysconfig_network-scripts_ifdown-ovs | 3 +++
- rhel/etc_sysconfig_network-scripts_ifup-ovs | 4 ++++
- 4 files changed, 33 insertions(+)
-
-diff --git a/AUTHORS b/AUTHORS
-index 977753b..c5402cf 100644
---- a/AUTHORS
-+++ b/AUTHORS
-@@ -57,6 +57,7 @@ Isaku Yamahata yamahata at valinux.co.jp
- James P. roampune at gmail.com
- James Page james.page at ubuntu.com
- Jarno Rajahalme jrajahalme at nicira.com
-+Jason Kölker jason at koelker.net
- Jean Tourrilhes jt at hpl.hp.com
- Jeremy Stribling strib at nicira.com
- Jesse Gross jesse at nicira.com
-diff --git a/rhel/README.RHEL b/rhel/README.RHEL
-index cb6ab88..2620674 100644
---- a/rhel/README.RHEL
-+++ b/rhel/README.RHEL
-@@ -25,6 +25,8 @@ assignments. The following OVS-specific variable names are supported:
-
- * "OVSTunnel", if <name> is an OVS tunnel.
-
-+ * "OVSPatchPort", if <name> is a patch port
-+
- - OVS_BRIDGE: If TYPE is anything other than "OVSBridge", set to
- the name of the OVS bridge to which the port should be attached.
-
-@@ -47,6 +49,9 @@ assignments. The following OVS-specific variable names are supported:
- - OVS_TUNNEL_OPTIONS: For "OVSTunnel" interfaces, this field should be
- used to specify the tunnel options like remote_ip, key, etc.
-
-+ - OVS_PATCH_PEER: For "OVSPatchPort" devices, this field specifies
-+ the patch's peer on the other bridge.
-+
- Note
- ----
-
-@@ -182,6 +187,26 @@ OVS_BRIDGE=ovsbridge0
- OVS_TUNNEL_TYPE=gre
- OVS_TUNNEL_OPTIONS="options:remote_ip=A.B.C.D"
-
-+
-+Patch Ports:
-+
-+==> ifcfg-patch-ovs-0 <==
-+DEVICE=patch-ovs-0
-+ONBOOT=yes
-+DEVICETYPE=ovs
-+TYPE=OVSPatchPort
-+OVS_BRIDGE=ovsbridge0
-+OVS_PATCH_PEER=patch-ovs-1
-+
-+==> ifcfg-patch-ovs-1 <==
-+DEVICE=patch-ovs-1
-+ONBOOT=yes
-+DEVICETYPE=ovs
-+TYPE=OVSPatchPort
-+OVS_BRIDGE=ovsbridge1
-+OVS_PATCH_PEER=patch-ovs-0
-+
-+
- Reporting Bugs
- --------------
-
-diff --git a/rhel/etc_sysconfig_network-scripts_ifdown-ovs b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-index 8e768c8..1371a30 100755
---- a/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-+++ b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
-@@ -47,6 +47,9 @@ case "$TYPE" in
- retval=$?
- ovs-vsctl -t ${TIMEOUT} -- --if-exists del-port "$OVS_BRIDGE" "$DEVICE"
- ;;
-+ OVSPatchPort)
-+ ovs-vsctl -t ${TIMEOUT} -- --if-exists del-port "$OVS_BRIDGE" "$DEVICE"
-+ ;;
- *)
- echo $"Invalid OVS interface type $TYPE"
- exit 1
-diff --git a/rhel/etc_sysconfig_network-scripts_ifup-ovs b/rhel/etc_sysconfig_network-scripts_ifup-ovs
-index a50c72f..f5641d2 100755
---- a/rhel/etc_sysconfig_network-scripts_ifup-ovs
-+++ b/rhel/etc_sysconfig_network-scripts_ifup-ovs
-@@ -127,6 +127,10 @@ case "$TYPE" in
- ovs-vsctl -t ${TIMEOUT} -- --may-exist add-port "$OVS_BRIDGE" "$DEVICE" $OVS_OPTIONS -- set Interface "$DEVICE" type=$OVS_TUNNEL_TYPE $OVS_TUNNEL_OPTIONS ${OVS_EXTRA+-- $OVS_EXTRA}
- ${OTHERSCRIPT} ${CONFIG} ${2}
- ;;
-+ OVSPatchPort)
-+ ifup_ovs_bridge
-+ ovs-vsctl -t ${TIMEOUT} -- --may-exist add-port "$OVS_BRIDGE" "$DEVICE" $OVS_OPTIONS -- set Interface "$DEVICE" type=patch options:peer="${OVS_PATCH_PEER}" ${OVS_EXTRA+-- $OVS_EXTRA}
-+ ;;
- *)
- echo $"Invalid OVS interface type $TYPE"
- exit 1
---
-1.8.5.3
-
diff --git a/openvswitch.spec b/openvswitch.spec
index 60913b0..4a0ee7b 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -1,34 +1,30 @@
%global _hardened_build 1
+# If wants to run tests while building, specify the '--with check'
+# option. For example:
+# rpmbuild -bb --with check openvswitch.spec
-Name: openvswitch
-Version: 2.1.2
-Release: 5%{?dist}
-Summary: Open vSwitch daemon/database/utilities
+Name: openvswitch
+Version: 2.3.0
+Release: 1%{?dist}
+Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
# lib/sflow*.[ch] files are SISSL
# datapath/ is GPLv2 (although not built into any of the binary packages)
# python/compat is Python (although not built into any of the binary packages)
-License: ASL 2.0 and LGPLv2+ and SISSL
-URL: http://openvswitch.org
-Source0: http://openvswitch.org/releases/%{name}-%{version}.tar.gz
-Source3: openvswitch.logrotate
-Source9: README.RHEL
+License: ASL 2.0 and LGPLv2+ and SISSL
+URL: http://openvswitch.org
+Source0: http://openvswitch.org/releases/%{name}-%{version}.tar.gz
+Source3: openvswitch.logrotate
ExcludeArch: ppc
-Patch1: openvswitch-fedora-package-fix-systemd-ordering-and-deps.patch
-Patch3: openvswitch-bridge-don-t-bring-up-internal-ports-by-default.patch
-Patch4: openvswitch-ovs-lib-allow-non-root-users-to-check-service-status.patch
-Patch5: openvswitch-rhel-Add-Patch-Port-support-to-initscripts.patch
-
-
-BuildRequires: autoconf
-BuildRequires: systemd-units openssl openssl-devel
-BuildRequires: python python-twisted-core python-zope-interface PyQt4
-BuildRequires: desktop-file-utils
-BuildRequires: groff graphviz
+BuildRequires: autoconf
+BuildRequires: systemd-units openssl openssl-devel
+BuildRequires: python python-twisted-core python-zope-interface PyQt4
+BuildRequires: desktop-file-utils
+BuildRequires: groff graphviz
Requires: openssl iproute module-init-tools
Requires: kernel >= 3.15.0-0
@@ -38,35 +34,37 @@ Requires(preun): systemd-units
Requires(postun): systemd-units
Obsoletes: openvswitch-controller <= 0:2.1.0-1
+%bcond_with check
+
%description
Open vSwitch provides standard network bridging functions and
support for the OpenFlow protocol for remote per-flow control of
traffic.
%package -n python-openvswitch
-Summary: Open vSwitch python bindings
-License: ASL 2.0
-BuildArch: noarch
-Requires: python
+Summary: Open vSwitch python bindings
+License: ASL 2.0
+BuildArch: noarch
+Requires: python
%description -n python-openvswitch
Python bindings for the Open vSwitch database
%package test
-Summary: Open vSwitch testing utilities
-License: ASL 2.0
-BuildArch: noarch
-Requires: python-openvswitch = %{version}-%{release}
-Requires: python python-twisted-core python-twisted-web
+Summary: Open vSwitch testing utilities
+License: ASL 2.0
+BuildArch: noarch
+Requires: python-openvswitch = %{version}-%{release}
+Requires: python python-twisted-core python-twisted-web
%description test
Utilities that are useful to diagnose performance and connectivity
issues in Open vSwitch setup.
%package devel
-Summary: Open vSwitch OpenFlow development package (library, headers)
-License: ASL 2.0
-Provides: openvswitch-static = %{version}-%{release}
+Summary: Open vSwitch OpenFlow development package (library, headers)
+License: ASL 2.0
+Provides: openvswitch-static = %{version}-%{release}
%description devel
This provides static library, libopenswitch.a and the openvswtich header
@@ -74,10 +72,6 @@ files needed to build an external application.
%prep
%setup -q
-%patch1 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
%build
%configure --enable-ssl --with-pkidir=%{_sharedstatedir}/openvswitch/pki
@@ -116,9 +110,6 @@ install -d -m 0755 $RPM_BUILD_ROOT%{python_sitelib}
mv $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/* $RPM_BUILD_ROOT%{python_sitelib}
rmdir $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/
-mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
-install -p -m 0644 %{SOURCE9} $RPM_BUILD_ROOT%{_docdir}/%{name}
-
# Get rid of stuff we don't want to make RPM happy.
rm -f \
$RPM_BUILD_ROOT%{_sbindir}/ovs-vlan-bug-workaround \
@@ -182,6 +173,16 @@ install -p -D -m 0644 include/openflow/*.h \
fi
%endif
+%check
+%if %{with check}
+ if make check TESTSUITEFLAGS='%{_smp_mflags}' ||
+ make check TESTSUITEFLAGS='--recheck'; then :;
+ else
+ cat tests/testsuite.log
+ exit 1
+ fi
+%endif
+
%files
%{_sysconfdir}/openvswitch/
%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
@@ -230,9 +231,9 @@ install -p -D -m 0644 include/openflow/*.h \
# /usr/share/openvswitch/scripts/ovs-bugtool* are LGPLv2+
%{_datadir}/openvswitch/
%{_sharedstatedir}/openvswitch
-%{_docdir}/%{name}/README.RHEL
# see COPYING for full licensing details
-%doc COPYING DESIGN INSTALL.SSL NOTICE README WHY-OVS FAQ NEWS
+%doc COPYING DESIGN INSTALL.SSL NOTICE README WHY-OVS rhel/README.RHEL
+%doc FAQ NEWS INSTALL.DPDK
%files -n python-openvswitch
%{python_sitelib}/ovs
@@ -254,6 +255,9 @@ install -p -D -m 0644 include/openflow/*.h \
%{_includedir}/openflow/*
%changelog
+* Tue Aug 19 2014 Flavio Leitner - 2.3.0-1
+- updated to 2.3.0 (#1133701)
+
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
diff --git a/sources b/sources
index c5ab20f..bcfa94d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-430ff6d1e1fc81e9c5ebc2e641cfc953 openvswitch-2.1.2.tar.gz
+9c4d1471a56718132e0157af1bfc9310 openvswitch-2.3.0.tar.gz
--
cgit v0.10.2
>From 9b6c667a3982a2173ec661a9e8db5033970e9683 Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl at redhat.com>
Date: Thu, 23 Oct 2014 13:51:06 -0200
Subject: Fixed to own conf.db and system-id.conf in /etc/openvswitch.
Resolves: #1132707
Signed-off-by: Flavio Leitner <fbl at redhat.com>
diff --git a/openvswitch.spec b/openvswitch.spec
index 2968253..e50ded4 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -6,7 +6,7 @@
Name: openvswitch
Version: 2.3.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@@ -130,6 +130,9 @@ install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/openflow
install -p -D -m 0644 include/openflow/*.h \
-t $RPM_BUILD_ROOT%{_includedir}/openflow
+touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db
+touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/system-id.conf
+
%post
%if 0%{?systemd_post:1}
%systemd_post %{name}.service
@@ -185,6 +188,8 @@ install -p -D -m 0644 include/openflow/*.h \
%files
%{_sysconfdir}/openvswitch/
+%config %ghost %{_sysconfdir}/openvswitch/conf.db
+%config %ghost %{_sysconfdir}/openvswitch/system-id.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
%config(noreplace) %{_sysconfdir}/sysconfig/openvswitch
%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
@@ -255,6 +260,10 @@ install -p -D -m 0644 include/openflow/*.h \
%{_includedir}/openflow/*
%changelog
+* Thu Oct 23 2014 Flavio Leitner - 2.3.0-2
+- fixed to own conf.db and system-id.conf in /etc/openvswitch.
+ (#1132707)
+
* Tue Aug 19 2014 Flavio Leitner - 2.3.0-1
- updated to 2.3.0
--
cgit v0.10.2
>From 7ef8ca3d251f8242892b81a645b7ec878f14ccfb Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl at redhat.com>
Date: Fri, 7 Nov 2014 12:46:51 -0200
Subject: Updated to 2.3.0-git39ebb203
Resolves: #1161286
diff --git a/.gitignore b/.gitignore
index 4254909..96a3f8f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@
/openvswitch-2.1.0.tar.gz
/openvswitch-2.1.2.tar.gz
/openvswitch-2.3.0.tar.gz
+/openvswitch-2.3.0-git39ebb203.tar.gz
diff --git a/openvswitch.logrotate b/openvswitch.logrotate
deleted file mode 100644
index 46b94b9..0000000
--- a/openvswitch.logrotate
+++ /dev/null
@@ -1,17 +0,0 @@
-# Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc.
-#
-# Copying and distribution of this file, with or without modification,
-# are permitted in any medium without royalty provided the copyright
-# notice and this notice are preserved. This file is offered as-is,
-# without warranty of any kind.
-
-/var/log/openvswitch/*.log {
- sharedscripts
- missingok
- postrotate
- # Tell Open vSwitch daemons to reopen their log files
- for pidfile in `cd /var/run/openvswitch && echo *.pid`; do
- ovs-appctl -t "${pidfile%%.pid}" vlog/reopen
- done
- endscript
-}
diff --git a/openvswitch.spec b/openvswitch.spec
index e50ded4..ecd51d9 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -1,12 +1,27 @@
%global _hardened_build 1
+# Uncomment these for snapshot releases:
+# snapshot is the date YYYYMMDD of the snapshot
+# snap_git is the 8 git sha digits of the last commit
+# You must edit configure.ac and downgrade the version from
+# the development one to the stable one to not confuse RPM
+# during future upgrades.
+# Steps:
+# 1. Checkout the git branch
+# 2. Change version in configure.ac to be <stable version>-git<8sha>
+# 3. Run: ./boot.sh
+# 4. Run: ./configure.sh
+# 5. Run: make dist
+%define snapshot .git20141107
+%define snap_gitsha -git39ebb203
+
# If wants to run tests while building, specify the '--with check'
# option. For example:
# rpmbuild -bb --with check openvswitch.spec
Name: openvswitch
Version: 2.3.0
-Release: 2%{?dist}
+Release: 3%{?snapshot}%{?dist}
Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@@ -15,8 +30,7 @@ Summary: Open vSwitch daemon/database/utilities
# python/compat is Python (although not built into any of the binary packages)
License: ASL 2.0 and LGPLv2+ and SISSL
URL: http://openvswitch.org
-Source0: http://openvswitch.org/releases/%{name}-%{version}.tar.gz
-Source3: openvswitch.logrotate
+Source0: http://openvswitch.org/releases/%{name}-%{version}%{?snap_gitsha}.tar.gz
ExcludeArch: ppc
@@ -27,6 +41,7 @@ BuildRequires: desktop-file-utils
BuildRequires: groff graphviz
Requires: openssl iproute module-init-tools
+#Upstream kernel commit 4f647e0a3c37b8d5086214128614a136064110c3
Requires: kernel >= 3.15.0-0
Requires(post): systemd-units
@@ -67,72 +82,97 @@ License: ASL 2.0
Provides: openvswitch-static = %{version}-%{release}
%description devel
-This provides static library, libopenswitch.a and the openvswtich header
+This provides static library, libopenswitch.a and the openvswitch header
files needed to build an external application.
+
%prep
-%setup -q
+%setup -q -n %{name}-%{version}%{?snap_gitsha}
%build
%configure --enable-ssl --with-pkidir=%{_sharedstatedir}/openvswitch/pki
make %{?_smp_mflags}
-
%install
+rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
install -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch
install -p -D -m 0644 \
- rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
- $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/openvswitch
+ rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
+ $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/openvswitch
install -p -D -m 0644 \
- rhel/usr_lib_systemd_system_openvswitch.service \
- $RPM_BUILD_ROOT%{_unitdir}/openvswitch.service
+ rhel/usr_lib_systemd_system_openvswitch.service \
+ $RPM_BUILD_ROOT%{_unitdir}/openvswitch.service
install -p -D -m 0644 \
- rhel/usr_lib_systemd_system_openvswitch-nonetwork.service \
- $RPM_BUILD_ROOT%{_unitdir}/openvswitch-nonetwork.service
+ rhel/usr_lib_systemd_system_openvswitch-nonetwork.service \
+ $RPM_BUILD_ROOT%{_unitdir}/openvswitch-nonetwork.service
+
+install -m 0755 rhel/etc_init.d_openvswitch \
+ $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/openvswitch.init
-install -p -D -m 0755 rhel/etc_init.d_openvswitch \
- $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/openvswitch.init
+install -p -D -m 0644 rhel/etc_logrotate.d_openvswitch \
+ $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/openvswitch
-install -p -D -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/openvswitch
+install -m 0644 vswitchd/vswitch.ovsschema \
+ $RPM_BUILD_ROOT/%{_datadir}/openvswitch/vswitch.ovsschema
-install -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts/
+install -d -m 0755 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/
install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifdown-ovs \
- $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
+ $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifup-ovs \
- $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
-
-install -d -m 0755 $RPM_BUILD_ROOT/%{_sharedstatedir}/openvswitch
+ $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
install -d -m 0755 $RPM_BUILD_ROOT%{python_sitelib}
-mv $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/* $RPM_BUILD_ROOT%{python_sitelib}
+mv $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/* \
+ $RPM_BUILD_ROOT%{python_sitelib}
rmdir $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/
-# Get rid of stuff we don't want to make RPM happy.
-rm -f \
- $RPM_BUILD_ROOT%{_sbindir}/ovs-vlan-bug-workaround \
- $RPM_BUILD_ROOT%{_mandir}/man8/ovs-vlan-bug-workaround.8 \
- $RPM_BUILD_ROOT%{_sbindir}/ovs-brcompatd \
- $RPM_BUILD_ROOT%{_mandir}/man8/ovs-brcompatd.8
+install -d -m 0755 $RPM_BUILD_ROOT/%{_sharedstatedir}/openvswitch
install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/openvswitch
install -p -D -m 0644 include/openvswitch/*.h \
- -t $RPM_BUILD_ROOT%{_includedir}/openvswitch
-install -p -D -m 0644 config.h -t $RPM_BUILD_ROOT%{_includedir}/openvswitch
+ -t $RPM_BUILD_ROOT%{_includedir}/openvswitch
+install -p -D -m 0644 config.h \
+ -t $RPM_BUILD_ROOT%{_includedir}/openvswitch
install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/openvswitch/lib
install -p -D -m 0644 lib/*.h \
- -t $RPM_BUILD_ROOT%{_includedir}/openvswitch/lib
+ -t $RPM_BUILD_ROOT%{_includedir}/openvswitch/lib
install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/openflow
install -p -D -m 0644 include/openflow/*.h \
- -t $RPM_BUILD_ROOT%{_includedir}/openflow
+ -t $RPM_BUILD_ROOT%{_includedir}/openflow
touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db
touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/system-id.conf
+%check
+%if %{with check}
+ if make check TESTSUITEFLAGS='%{_smp_mflags}' ||
+ make check TESTSUITEFLAGS='--recheck'; then :;
+ else
+ cat tests/testsuite.log
+ exit 1
+ fi
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%preun
+%if 0%{?systemd_preun:1}
+ %systemd_preun %{name}.service
+%else
+ if [ $1 -eq 0 ] ; then
+ # Package removal, not upgrade
+ /bin/systemctl --no-reload disable %{name}.service >/dev/null 2>&1 || :
+ /bin/systemctl stop %{name}.service >/dev/null 2>&1 || :
+ fi
+%endif
+
+
%post
%if 0%{?systemd_post:1}
%systemd_post %{name}.service
@@ -154,17 +194,6 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/system-id.conf
/sbin/chkconfig --del %{name} >/dev/null 2>&1 || :
/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
-%preun
-%if 0%{?systemd_preun:1}
- %systemd_preun %{name}.service
-%else
- if [ $1 -eq 0 ] ; then
- # Package removal, not upgrade
- /bin/systemctl --no-reload disable %{name}.service >/dev/null 2>&1 || :
- /bin/systemctl stop %{name}.service >/dev/null 2>&1 || :
- fi
-%endif
-
%postun
%if 0%{?systemd_postun_with_restart:1}
%systemd_postun_with_restart %{name}.service
@@ -176,40 +205,57 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/system-id.conf
fi
%endif
-%check
-%if %{with check}
- if make check TESTSUITEFLAGS='%{_smp_mflags}' ||
- make check TESTSUITEFLAGS='--recheck'; then :;
- else
- cat tests/testsuite.log
- exit 1
- fi
-%endif
+
+%files -n python-openvswitch
+%{python_sitelib}/ovs
+%doc COPYING
+
+%files test
+%{_bindir}/ovs-test
+%{_bindir}/ovs-vlan-test
+%{_bindir}/ovs-l3ping
+%{_mandir}/man8/ovs-test.8*
+%{_mandir}/man8/ovs-vlan-test.8*
+%{_mandir}/man8/ovs-l3ping.8*
+%{python_sitelib}/ovstest
+
+%files devel
+%{_libdir}/*.a
+%{_libdir}/*.la
+%{_includedir}/openvswitch/*
+%{_includedir}/openflow/*
%files
-%{_sysconfdir}/openvswitch/
+%defattr(-,root,root)
+%dir %{_sysconfdir}/openvswitch
%config %ghost %{_sysconfdir}/openvswitch/conf.db
%config %ghost %{_sysconfdir}/openvswitch/system-id.conf
-%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
%config(noreplace) %{_sysconfdir}/sysconfig/openvswitch
-%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
-%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
+%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
%{_unitdir}/openvswitch.service
%{_unitdir}/openvswitch-nonetwork.service
+%{_datadir}/openvswitch/scripts/openvswitch.init
+%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
+%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
+%{_datadir}/openvswitch/bugtool-plugins/
+%{_datadir}/openvswitch/scripts/ovs-bugtool-*
+%{_datadir}/openvswitch/scripts/ovs-check-dead-ifs
+%{_datadir}/openvswitch/scripts/ovs-lib
+%{_datadir}/openvswitch/scripts/ovs-vtep
+%{_datadir}/openvswitch/scripts/ovs-ctl
+%config %{_datadir}/openvswitch/vswitch.ovsschema
+%config %{_datadir}/openvswitch/vtep.ovsschema
%{_bindir}/ovs-appctl
-%{_bindir}/ovs-benchmark
+#%{_bindir}/ovs-docker
%{_bindir}/ovs-dpctl
%{_bindir}/ovs-dpctl-top
%{_bindir}/ovs-ofctl
-%{_bindir}/ovs-pcap
-%{_bindir}/ovs-pki
-%{_bindir}/ovs-tcpundump
%{_bindir}/ovs-vsctl
%{_bindir}/ovsdb-client
%{_bindir}/ovsdb-tool
-%{_bindir}/ovs-parse-backtrace
+#%{_bindir}/ovs-testcontroller
+%{_bindir}/ovs-pki
%{_bindir}/vtep-ctl
-# ovs-bugtool is LGPLv2+
%{_sbindir}/ovs-bugtool
%{_sbindir}/ovs-vswitchd
%{_sbindir}/ovsdb-server
@@ -232,34 +278,26 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/system-id.conf
%{_mandir}/man8/ovs-vsctl.8*
%{_mandir}/man8/ovs-vswitchd.8*
%{_mandir}/man8/ovs-parse-backtrace.8*
-# /usr/share/openvswitch/bugtool-plugins and
-# /usr/share/openvswitch/scripts/ovs-bugtool* are LGPLv2+
-%{_datadir}/openvswitch/
-%{_sharedstatedir}/openvswitch
-# see COPYING for full licensing details
-%doc COPYING DESIGN INSTALL.SSL NOTICE README WHY-OVS rhel/README.RHEL
-%doc FAQ NEWS INSTALL.DPDK
-
-%files -n python-openvswitch
-%{python_sitelib}/ovs
-%doc COPYING
-
-%files test
-%{_bindir}/ovs-test
-%{_bindir}/ovs-vlan-test
-%{_bindir}/ovs-l3ping
-%{_mandir}/man8/ovs-test.8*
-%{_mandir}/man8/ovs-vlan-test.8*
-%{_mandir}/man8/ovs-l3ping.8*
-%{python_sitelib}/ovstest
-
-%files devel
-%{_libdir}/*.a
-%{_libdir}/*.la
-%{_includedir}/openvswitch/*
-%{_includedir}/openflow/*
+#%{_mandir}/man8/ovs-testcontroller.8*
+%doc COPYING DESIGN INSTALL.SSL NOTICE README WHY-OVS
+%doc FAQ NEWS INSTALL.DPDK rhel/README.RHEL
+/var/lib/openvswitch
+/var/log/openvswitch
+%exclude %{_bindir}/ovs-benchmark
+%exclude %{_bindir}/ovs-parse-backtrace
+%exclude %{_bindir}/ovs-pcap
+%exclude %{_bindir}/ovs-tcpundump
+%exclude %{_sbindir}/ovs-vlan-bug-workaround
+%exclude %{_mandir}/man1/ovs-benchmark.1.gz
+%exclude %{_mandir}/man1/ovs-pcap.1.gz
+%exclude %{_mandir}/man1/ovs-tcpundump.1.gz
+%exclude %{_mandir}/man8/ovs-vlan-bug-workaround.8.gz
+%exclude %{_datadir}/openvswitch/scripts/ovs-save
%changelog
+* Fri Nov 07 2014 Flavio Leitner - 2.3.0-3.git20141107
+- updated to 2.3.0-git39ebb203
+
* Thu Oct 23 2014 Flavio Leitner - 2.3.0-2
- fixed to own conf.db and system-id.conf in /etc/openvswitch.
(#1132707)
diff --git a/sources b/sources
index bcfa94d..b59382c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9c4d1471a56718132e0157af1bfc9310 openvswitch-2.3.0.tar.gz
+f91bff5712c6e44274998583df82968d openvswitch-2.3.0-git39ebb203.tar.gz
--
cgit v0.10.2
>From e96aa6b62522d74d057f5a420174c4c1b84d0072 Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl at redhat.com>
Date: Fri, 7 Nov 2014 12:46:51 -0200
Subject: Updated to 2.3.0-git39ebb203
Resolves: #1161286
Conflicts:
openvswitch.spec
diff --git a/.gitignore b/.gitignore
index 4254909..96a3f8f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@
/openvswitch-2.1.0.tar.gz
/openvswitch-2.1.2.tar.gz
/openvswitch-2.3.0.tar.gz
+/openvswitch-2.3.0-git39ebb203.tar.gz
diff --git a/openvswitch.logrotate b/openvswitch.logrotate
deleted file mode 100644
index 46b94b9..0000000
--- a/openvswitch.logrotate
+++ /dev/null
@@ -1,17 +0,0 @@
-# Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc.
-#
-# Copying and distribution of this file, with or without modification,
-# are permitted in any medium without royalty provided the copyright
-# notice and this notice are preserved. This file is offered as-is,
-# without warranty of any kind.
-
-/var/log/openvswitch/*.log {
- sharedscripts
- missingok
- postrotate
- # Tell Open vSwitch daemons to reopen their log files
- for pidfile in `cd /var/run/openvswitch && echo *.pid`; do
- ovs-appctl -t "${pidfile%%.pid}" vlog/reopen
- done
- endscript
-}
diff --git a/openvswitch.spec b/openvswitch.spec
index 4a0ee7b..8f43322 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -1,12 +1,27 @@
%global _hardened_build 1
+# Uncomment these for snapshot releases:
+# snapshot is the date YYYYMMDD of the snapshot
+# snap_git is the 8 git sha digits of the last commit
+# You must edit configure.ac and downgrade the version from
+# the development one to the stable one to not confuse RPM
+# during future upgrades.
+# Steps:
+# 1. Checkout the git branch
+# 2. Change version in configure.ac to be <stable version>-git<8sha>
+# 3. Run: ./boot.sh
+# 4. Run: ./configure.sh
+# 5. Run: make dist
+%define snapshot .git20141107
+%define snap_gitsha -git39ebb203
+
# If wants to run tests while building, specify the '--with check'
# option. For example:
# rpmbuild -bb --with check openvswitch.spec
Name: openvswitch
Version: 2.3.0
-Release: 1%{?dist}
+Release: 3%{?snapshot}%{?dist}
Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@@ -15,8 +30,7 @@ Summary: Open vSwitch daemon/database/utilities
# python/compat is Python (although not built into any of the binary packages)
License: ASL 2.0 and LGPLv2+ and SISSL
URL: http://openvswitch.org
-Source0: http://openvswitch.org/releases/%{name}-%{version}.tar.gz
-Source3: openvswitch.logrotate
+Source0: http://openvswitch.org/releases/%{name}-%{version}%{?snap_gitsha}.tar.gz
ExcludeArch: ppc
@@ -27,6 +41,7 @@ BuildRequires: desktop-file-utils
BuildRequires: groff graphviz
Requires: openssl iproute module-init-tools
+#Upstream kernel commit 4f647e0a3c37b8d5086214128614a136064110c3
Requires: kernel >= 3.15.0-0
Requires(post): systemd-units
@@ -67,68 +82,96 @@ License: ASL 2.0
Provides: openvswitch-static = %{version}-%{release}
%description devel
-This provides static library, libopenswitch.a and the openvswtich header
+This provides static library, libopenswitch.a and the openvswitch header
files needed to build an external application.
+
%prep
-%setup -q
+%setup -q -n %{name}-%{version}%{?snap_gitsha}
%build
%configure --enable-ssl --with-pkidir=%{_sharedstatedir}/openvswitch/pki
make %{?_smp_mflags}
-
%install
+rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
install -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch
install -p -D -m 0644 \
- rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
- $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/openvswitch
+ rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
+ $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/openvswitch
install -p -D -m 0644 \
- rhel/usr_lib_systemd_system_openvswitch.service \
- $RPM_BUILD_ROOT%{_unitdir}/openvswitch.service
+ rhel/usr_lib_systemd_system_openvswitch.service \
+ $RPM_BUILD_ROOT%{_unitdir}/openvswitch.service
install -p -D -m 0644 \
- rhel/usr_lib_systemd_system_openvswitch-nonetwork.service \
- $RPM_BUILD_ROOT%{_unitdir}/openvswitch-nonetwork.service
+ rhel/usr_lib_systemd_system_openvswitch-nonetwork.service \
+ $RPM_BUILD_ROOT%{_unitdir}/openvswitch-nonetwork.service
+
+install -m 0755 rhel/etc_init.d_openvswitch \
+ $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/openvswitch.init
-install -p -D -m 0755 rhel/etc_init.d_openvswitch \
- $RPM_BUILD_ROOT%{_datadir}/openvswitch/scripts/openvswitch.init
+install -p -D -m 0644 rhel/etc_logrotate.d_openvswitch \
+ $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/openvswitch
-install -p -D -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/openvswitch
+install -m 0644 vswitchd/vswitch.ovsschema \
+ $RPM_BUILD_ROOT/%{_datadir}/openvswitch/vswitch.ovsschema
-install -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts/
+install -d -m 0755 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/
install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifdown-ovs \
- $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
+ $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifup-ovs \
- $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
-
-install -d -m 0755 $RPM_BUILD_ROOT/%{_sharedstatedir}/openvswitch
+ $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
install -d -m 0755 $RPM_BUILD_ROOT%{python_sitelib}
-mv $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/* $RPM_BUILD_ROOT%{python_sitelib}
+mv $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/* \
+ $RPM_BUILD_ROOT%{python_sitelib}
rmdir $RPM_BUILD_ROOT/%{_datadir}/openvswitch/python/
-# Get rid of stuff we don't want to make RPM happy.
-rm -f \
- $RPM_BUILD_ROOT%{_sbindir}/ovs-vlan-bug-workaround \
- $RPM_BUILD_ROOT%{_mandir}/man8/ovs-vlan-bug-workaround.8 \
- $RPM_BUILD_ROOT%{_sbindir}/ovs-brcompatd \
- $RPM_BUILD_ROOT%{_mandir}/man8/ovs-brcompatd.8
+install -d -m 0755 $RPM_BUILD_ROOT/%{_sharedstatedir}/openvswitch
install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/openvswitch
install -p -D -m 0644 include/openvswitch/*.h \
- -t $RPM_BUILD_ROOT%{_includedir}/openvswitch
-install -p -D -m 0644 config.h -t $RPM_BUILD_ROOT%{_includedir}/openvswitch
+ -t $RPM_BUILD_ROOT%{_includedir}/openvswitch
+install -p -D -m 0644 config.h \
+ -t $RPM_BUILD_ROOT%{_includedir}/openvswitch
install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/openvswitch/lib
install -p -D -m 0644 lib/*.h \
- -t $RPM_BUILD_ROOT%{_includedir}/openvswitch/lib
+ -t $RPM_BUILD_ROOT%{_includedir}/openvswitch/lib
install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/openflow
install -p -D -m 0644 include/openflow/*.h \
- -t $RPM_BUILD_ROOT%{_includedir}/openflow
+ -t $RPM_BUILD_ROOT%{_includedir}/openflow
+
+touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/conf.db
+touch $RPM_BUILD_ROOT%{_sysconfdir}/openvswitch/system-id.conf
+
+%check
+%if %{with check}
+ if make check TESTSUITEFLAGS='%{_smp_mflags}' ||
+ make check TESTSUITEFLAGS='--recheck'; then :;
+ else
+ cat tests/testsuite.log
+ exit 1
+ fi
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%preun
+%if 0%{?systemd_preun:1}
+ %systemd_preun %{name}.service
+%else
+ if [ $1 -eq 0 ] ; then
+ # Package removal, not upgrade
+ /bin/systemctl --no-reload disable %{name}.service >/dev/null 2>&1 || :
+ /bin/systemctl stop %{name}.service >/dev/null 2>&1 || :
+ fi
+%endif
+
%post
%if 0%{?systemd_post:1}
@@ -151,17 +194,6 @@ install -p -D -m 0644 include/openflow/*.h \
/sbin/chkconfig --del %{name} >/dev/null 2>&1 || :
/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
-%preun
-%if 0%{?systemd_preun:1}
- %systemd_preun %{name}.service
-%else
- if [ $1 -eq 0 ] ; then
- # Package removal, not upgrade
- /bin/systemctl --no-reload disable %{name}.service >/dev/null 2>&1 || :
- /bin/systemctl stop %{name}.service >/dev/null 2>&1 || :
- fi
-%endif
-
%postun
%if 0%{?systemd_postun_with_restart:1}
%systemd_postun_with_restart %{name}.service
@@ -173,38 +205,57 @@ install -p -D -m 0644 include/openflow/*.h \
fi
%endif
-%check
-%if %{with check}
- if make check TESTSUITEFLAGS='%{_smp_mflags}' ||
- make check TESTSUITEFLAGS='--recheck'; then :;
- else
- cat tests/testsuite.log
- exit 1
- fi
-%endif
+
+%files -n python-openvswitch
+%{python_sitelib}/ovs
+%doc COPYING
+
+%files test
+%{_bindir}/ovs-test
+%{_bindir}/ovs-vlan-test
+%{_bindir}/ovs-l3ping
+%{_mandir}/man8/ovs-test.8*
+%{_mandir}/man8/ovs-vlan-test.8*
+%{_mandir}/man8/ovs-l3ping.8*
+%{python_sitelib}/ovstest
+
+%files devel
+%{_libdir}/*.a
+%{_libdir}/*.la
+%{_includedir}/openvswitch/*
+%{_includedir}/openflow/*
%files
-%{_sysconfdir}/openvswitch/
-%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
+%defattr(-,root,root)
+%dir %{_sysconfdir}/openvswitch
+%config %ghost %{_sysconfdir}/openvswitch/conf.db
+%config %ghost %{_sysconfdir}/openvswitch/system-id.conf
%config(noreplace) %{_sysconfdir}/sysconfig/openvswitch
-%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
-%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
+%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
%{_unitdir}/openvswitch.service
%{_unitdir}/openvswitch-nonetwork.service
+%{_datadir}/openvswitch/scripts/openvswitch.init
+%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
+%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
+%{_datadir}/openvswitch/bugtool-plugins/
+%{_datadir}/openvswitch/scripts/ovs-bugtool-*
+%{_datadir}/openvswitch/scripts/ovs-check-dead-ifs
+%{_datadir}/openvswitch/scripts/ovs-lib
+%{_datadir}/openvswitch/scripts/ovs-vtep
+%{_datadir}/openvswitch/scripts/ovs-ctl
+%config %{_datadir}/openvswitch/vswitch.ovsschema
+%config %{_datadir}/openvswitch/vtep.ovsschema
%{_bindir}/ovs-appctl
-%{_bindir}/ovs-benchmark
+#%{_bindir}/ovs-docker
%{_bindir}/ovs-dpctl
%{_bindir}/ovs-dpctl-top
%{_bindir}/ovs-ofctl
-%{_bindir}/ovs-pcap
-%{_bindir}/ovs-pki
-%{_bindir}/ovs-tcpundump
%{_bindir}/ovs-vsctl
%{_bindir}/ovsdb-client
%{_bindir}/ovsdb-tool
-%{_bindir}/ovs-parse-backtrace
+#%{_bindir}/ovs-testcontroller
+%{_bindir}/ovs-pki
%{_bindir}/vtep-ctl
-# ovs-bugtool is LGPLv2+
%{_sbindir}/ovs-bugtool
%{_sbindir}/ovs-vswitchd
%{_sbindir}/ovsdb-server
@@ -227,34 +278,26 @@ install -p -D -m 0644 include/openflow/*.h \
%{_mandir}/man8/ovs-vsctl.8*
%{_mandir}/man8/ovs-vswitchd.8*
%{_mandir}/man8/ovs-parse-backtrace.8*
-# /usr/share/openvswitch/bugtool-plugins and
-# /usr/share/openvswitch/scripts/ovs-bugtool* are LGPLv2+
-%{_datadir}/openvswitch/
-%{_sharedstatedir}/openvswitch
-# see COPYING for full licensing details
-%doc COPYING DESIGN INSTALL.SSL NOTICE README WHY-OVS rhel/README.RHEL
-%doc FAQ NEWS INSTALL.DPDK
-
-%files -n python-openvswitch
-%{python_sitelib}/ovs
-%doc COPYING
-
-%files test
-%{_bindir}/ovs-test
-%{_bindir}/ovs-vlan-test
-%{_bindir}/ovs-l3ping
-%{_mandir}/man8/ovs-test.8*
-%{_mandir}/man8/ovs-vlan-test.8*
-%{_mandir}/man8/ovs-l3ping.8*
-%{python_sitelib}/ovstest
-
-%files devel
-%{_libdir}/*.a
-%{_libdir}/*.la
-%{_includedir}/openvswitch/*
-%{_includedir}/openflow/*
+#%{_mandir}/man8/ovs-testcontroller.8*
+%doc COPYING DESIGN INSTALL.SSL NOTICE README WHY-OVS
+%doc FAQ NEWS INSTALL.DPDK rhel/README.RHEL
+/var/lib/openvswitch
+/var/log/openvswitch
+%exclude %{_bindir}/ovs-benchmark
+%exclude %{_bindir}/ovs-parse-backtrace
+%exclude %{_bindir}/ovs-pcap
+%exclude %{_bindir}/ovs-tcpundump
+%exclude %{_sbindir}/ovs-vlan-bug-workaround
+%exclude %{_mandir}/man1/ovs-benchmark.1.gz
+%exclude %{_mandir}/man1/ovs-pcap.1.gz
+%exclude %{_mandir}/man1/ovs-tcpundump.1.gz
+%exclude %{_mandir}/man8/ovs-vlan-bug-workaround.8.gz
+%exclude %{_datadir}/openvswitch/scripts/ovs-save
%changelog
+* Fri Nov 07 2014 Flavio Leitner - 2.3.0-3.git20141107
+- updated to 2.3.0-git39ebb203
+
* Tue Aug 19 2014 Flavio Leitner - 2.3.0-1
- updated to 2.3.0 (#1133701)
diff --git a/sources b/sources
index bcfa94d..b59382c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9c4d1471a56718132e0157af1bfc9310 openvswitch-2.3.0.tar.gz
+f91bff5712c6e44274998583df82968d openvswitch-2.3.0-git39ebb203.tar.gz
--
cgit v0.10.2
>From 59e1f919b8537dc25911c7a0b91d315de260dcfe Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl at redhat.com>
Date: Fri, 12 Dec 2014 16:37:29 -0200
Subject: Updated to 2.3.1
Resolves: #1171018
diff --git a/.gitignore b/.gitignore
index 96a3f8f..8b1bdb5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@
/openvswitch-2.1.2.tar.gz
/openvswitch-2.3.0.tar.gz
/openvswitch-2.3.0-git39ebb203.tar.gz
+/openvswitch-2.3.1.tar.gz
diff --git a/openvswitch.spec b/openvswitch.spec
index ecd51d9..be9994b 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -12,16 +12,16 @@
# 3. Run: ./boot.sh
# 4. Run: ./configure.sh
# 5. Run: make dist
-%define snapshot .git20141107
-%define snap_gitsha -git39ebb203
+#% define snapshot .git20141107
+#% define snap_gitsha -git39ebb203
# If wants to run tests while building, specify the '--with check'
# option. For example:
# rpmbuild -bb --with check openvswitch.spec
Name: openvswitch
-Version: 2.3.0
-Release: 3%{?snapshot}%{?dist}
+Version: 2.3.1
+Release: 1%{?snapshot}%{?dist}
Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@@ -295,6 +295,9 @@ rm -rf $RPM_BUILD_ROOT
%exclude %{_datadir}/openvswitch/scripts/ovs-save
%changelog
+* Fri Dec 05 2014 Flavio Leitner - 2.3.1-1
+- updated to 2.3.1
+
* Fri Nov 07 2014 Flavio Leitner - 2.3.0-3.git20141107
- updated to 2.3.0-git39ebb203
diff --git a/sources b/sources
index b59382c..36faf31 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f91bff5712c6e44274998583df82968d openvswitch-2.3.0-git39ebb203.tar.gz
+c008c1de0a8b6363b37afa599105d6d6 openvswitch-2.3.1.tar.gz
--
cgit v0.10.2
>From aa6585e7544203f564c56b71cf9f0d626da17845 Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl at redhat.com>
Date: Fri, 12 Dec 2014 16:37:29 -0200
Subject: Updated to 2.3.1
Resolves: #1173729
diff --git a/.gitignore b/.gitignore
index 96a3f8f..8b1bdb5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@
/openvswitch-2.1.2.tar.gz
/openvswitch-2.3.0.tar.gz
/openvswitch-2.3.0-git39ebb203.tar.gz
+/openvswitch-2.3.1.tar.gz
diff --git a/openvswitch.spec b/openvswitch.spec
index 8f43322..d1eb212 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -12,16 +12,16 @@
# 3. Run: ./boot.sh
# 4. Run: ./configure.sh
# 5. Run: make dist
-%define snapshot .git20141107
-%define snap_gitsha -git39ebb203
+#% define snapshot .git20141107
+#% define snap_gitsha -git39ebb203
# If wants to run tests while building, specify the '--with check'
# option. For example:
# rpmbuild -bb --with check openvswitch.spec
Name: openvswitch
-Version: 2.3.0
-Release: 3%{?snapshot}%{?dist}
+Version: 2.3.1
+Release: 1%{?snapshot}%{?dist}
Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@@ -295,6 +295,9 @@ rm -rf $RPM_BUILD_ROOT
%exclude %{_datadir}/openvswitch/scripts/ovs-save
%changelog
+* Fri Dec 05 2014 Flavio Leitner - 2.3.1-1
+- updated to 2.3.1
+
* Fri Nov 07 2014 Flavio Leitner - 2.3.0-3.git20141107
- updated to 2.3.0-git39ebb203
diff --git a/sources b/sources
index b59382c..36faf31 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f91bff5712c6e44274998583df82968d openvswitch-2.3.0-git39ebb203.tar.gz
+c008c1de0a8b6363b37afa599105d6d6 openvswitch-2.3.1.tar.gz
--
cgit v0.10.2
>From 74e218d02864a0b1740bb3b924c16af99651ef70 Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl at redhat.com>
Date: Wed, 14 Jan 2015 12:51:52 -0200
Subject: Updated to 2.3.1-git3282e51
Resolves: #1182107
diff --git a/.gitignore b/.gitignore
index 8b1bdb5..59b907b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@
/openvswitch-2.3.0.tar.gz
/openvswitch-2.3.0-git39ebb203.tar.gz
/openvswitch-2.3.1.tar.gz
+/openvswitch-2.3.1-git3282e51.tar.gz
diff --git a/openvswitch.spec b/openvswitch.spec
index be9994b..d6dca40 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -12,8 +12,8 @@
# 3. Run: ./boot.sh
# 4. Run: ./configure.sh
# 5. Run: make dist
-#% define snapshot .git20141107
-#% define snap_gitsha -git39ebb203
+%define snapshot .git20150113
+%define snap_gitsha -git3282e51
# If wants to run tests while building, specify the '--with check'
# option. For example:
@@ -21,7 +21,7 @@
Name: openvswitch
Version: 2.3.1
-Release: 1%{?snapshot}%{?dist}
+Release: 2%{?snapshot}%{?dist}
Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@@ -295,6 +295,9 @@ rm -rf $RPM_BUILD_ROOT
%exclude %{_datadir}/openvswitch/scripts/ovs-save
%changelog
+* Wed Jan 14 2015 Flavio Leitner - 2.3.1-2.git20150113
+- updated to 2.3.1-git3282e51
+
* Fri Dec 05 2014 Flavio Leitner - 2.3.1-1
- updated to 2.3.1
diff --git a/sources b/sources
index 36faf31..7eac335 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c008c1de0a8b6363b37afa599105d6d6 openvswitch-2.3.1.tar.gz
+1990a9c575e780ee69e054cd756d3f19 openvswitch-2.3.1-git3282e51.tar.gz
--
cgit v0.10.2
>From 9d2dc99e3301e0d093cc6c9e4664b5f4766778b4 Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl at redhat.com>
Date: Wed, 14 Jan 2015 12:51:52 -0200
Subject: Updated to 2.3.1-git3282e51
Resolves: #1182191
diff --git a/.gitignore b/.gitignore
index 8b1bdb5..59b907b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@
/openvswitch-2.3.0.tar.gz
/openvswitch-2.3.0-git39ebb203.tar.gz
/openvswitch-2.3.1.tar.gz
+/openvswitch-2.3.1-git3282e51.tar.gz
diff --git a/openvswitch.spec b/openvswitch.spec
index d1eb212..951f45a 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -12,8 +12,8 @@
# 3. Run: ./boot.sh
# 4. Run: ./configure.sh
# 5. Run: make dist
-#% define snapshot .git20141107
-#% define snap_gitsha -git39ebb203
+%define snapshot .git20150113
+%define snap_gitsha -git3282e51
# If wants to run tests while building, specify the '--with check'
# option. For example:
@@ -21,7 +21,7 @@
Name: openvswitch
Version: 2.3.1
-Release: 1%{?snapshot}%{?dist}
+Release: 2%{?snapshot}%{?dist}
Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@@ -295,6 +295,9 @@ rm -rf $RPM_BUILD_ROOT
%exclude %{_datadir}/openvswitch/scripts/ovs-save
%changelog
+* Wed Jan 14 2015 Flavio Leitner - 2.3.1-2.git20150113
+- updated to 2.3.1-git3282e51
+
* Fri Dec 05 2014 Flavio Leitner - 2.3.1-1
- updated to 2.3.1
diff --git a/sources b/sources
index 36faf31..7eac335 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c008c1de0a8b6363b37afa599105d6d6 openvswitch-2.3.1.tar.gz
+1990a9c575e780ee69e054cd756d3f19 openvswitch-2.3.1-git3282e51.tar.gz
--
cgit v0.10.2
>From 5d98779e9239f57633cea1908b896f6eacfaf18e Mon Sep 17 00:00:00 2001
From: Flavio Leitner <fbl at redhat.com>
Date: Fri, 27 Mar 2015 07:41:10 -0300
Subject: Updated to 2.3.1-git4750c96
Also:
- Removed the requires to kernel
- Added requires to procps-ns (testsuite, #84)
- Run testsuite by default when building the rpm
diff --git a/.gitignore b/.gitignore
index 59b907b..dab83f6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@
/openvswitch-2.3.0-git39ebb203.tar.gz
/openvswitch-2.3.1.tar.gz
/openvswitch-2.3.1-git3282e51.tar.gz
+/openvswitch-2.3.1-git4750c96.tar.gz
diff --git a/openvswitch.spec b/openvswitch.spec
index d6dca40..b66bee2 100644
--- a/openvswitch.spec
+++ b/openvswitch.spec
@@ -12,8 +12,8 @@
# 3. Run: ./boot.sh
# 4. Run: ./configure.sh
# 5. Run: make dist
-%define snapshot .git20150113
-%define snap_gitsha -git3282e51
+%define snapshot .git20150327
+%define snap_gitsha -git4750c96
# If wants to run tests while building, specify the '--with check'
# option. For example:
@@ -21,7 +21,7 @@
Name: openvswitch
Version: 2.3.1
-Release: 2%{?snapshot}%{?dist}
+Release: 3%{?snapshot}%{?dist}
Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@@ -39,17 +39,19 @@ BuildRequires: systemd-units openssl openssl-devel
BuildRequires: python python-twisted-core python-zope-interface PyQt4
BuildRequires: desktop-file-utils
BuildRequires: groff graphviz
+# make check dependencies
+BuildRequires: procps-ng
Requires: openssl iproute module-init-tools
#Upstream kernel commit 4f647e0a3c37b8d5086214128614a136064110c3
-Requires: kernel >= 3.15.0-0
+#Requires: kernel >= 3.15.0-0
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
Obsoletes: openvswitch-controller <= 0:2.1.0-1
-%bcond_with check
+%bcond_without check
%description
Open vSwitch provides standard network bridging functions and
@@ -295,6 +297,11 @@ rm -rf $RPM_BUILD_ROOT
%exclude %{_datadir}/openvswitch/scripts/ovs-save
%changelog
+* Fri Mar 27 2015 Flavio Leitner - 2.3.1-3.git20150327
+- updated to 2.3.1-git4750c96
+- commented out kernel requires
+- added requires to procps-ng (testsuite #84)
+
* Wed Jan 14 2015 Flavio Leitner - 2.3.1-2.git20150113
- updated to 2.3.1-git3282e51
diff --git a/sources b/sources
index 7eac335..824b59a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1990a9c575e780ee69e054cd756d3f19 openvswitch-2.3.1-git3282e51.tar.gz
+1636a0cf53ef53b04e53737862891a38 openvswitch-2.3.1-git4750c96.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/openvswitch.git/commit/?h=f20&id=2cf9eeb7cd825c430bd6648583afa2554d3c861c
More information about the scm-commits
mailing list