Commit Graph

94 Commits

Author SHA256 Message Date
f2eead3e38 Accepting request 687385 from home:jengelh:sct
- Combine %service_* calls to reduce generated boilerplate.
- Reduce scriptlets' hard dependency on systemd.

OBS-URL: https://build.opensuse.org/request/show/687385
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=176
2019-03-23 19:27:39 +00:00
Tomáš Chvátal
24270361fb Accepting request 680119 from home:jaicaa:branches:network
- Version bump to 2.11.0.
- Revisit DISABLE_RESTART_ON_UPDATE and DISABLE_STOP_ON_REMOVAL options
  (bsc#1117483). DISABLE_STOP_ON_REMOVAL is removed.
  DISABLE_RESTART_ON_UPDATE is replaced by '%service_del_postun -n'.
  $FIRST_ARG is replaced by $1.
- Add extra openvswitch headers (bsc#1125897).
- Obsolete old python[2]-openvswitch-test subpackages (bsc#1124435).

OBS-URL: https://build.opensuse.org/request/show/680119
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=174
2019-03-04 09:02:58 +00:00
Jaime Caamaño Ruiz
3f0fdf5120 Accepting request 668408 from home:jaicaa:branches:network
- Fixed package name libopenvswitch-2_10-0 to libopenvswitch-2_11-0

OBS-URL: https://build.opensuse.org/request/show/668408
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=172
2019-01-24 17:14:57 +00:00
Jaime Caamaño Ruiz
2c5893f4ce Accepting request 668391 from home:jaicaa:branches:network
- Version bump to 2.11.0+git20190123.ad83fc9ab. Some of the changes are:
   * Linux datapath:
     - Support for the kernel versions 4.16.x and 4.17.x.
   * OpenFlow:
     - OFPMP_TABLE_FEATURES_REQUEST can now modify table features.
   * ovs-ofctl:
     - "mod-table" command can now change OpenFlow table names.
   * The environment variable OVS_SYSLOG_METHOD, if set, is now used
     as the default syslog method.
   * The environment variable OVS_CTL_TIMEOUT, if set, is now used
     as the default timeout for control utilities.
   * ovn:
     - OVN-SB schema changed: duplicated IP with same Encapsulation type
       is not allowed any more.  Please refer to
       Documentation/intro/install/ovn-upgrades.rst for the instructions
       in case there are problems encountered when upgrading from an earlier
       version.
     - New support for IPSEC encrypted tunnels between hypervisors.
     - ovn-ctl: allow passing user:group ids to the OVN daemons.
     - IPAM/MACAM:
       * add the capability to dynamically assign just L2 addresses
       * add the capability to specify a static ip address and get the L2 one
         allocated dynamically using the following syntax:
           ovn-nbctl lsp-set-addresses <port> "dynamic <IP>"
   * DPDK:
     - Add support for DPDK 18.11
     - Add support for port representors.
   * Userspace datapath:
     - Add option for simple round-robin based Rxq to PMD assignment.
       It can be set with pmd-rxq-assign.
     - Add support for Auto load balancing of PMDs (experimental)
     - Added new per-port configurable option to manage EMC:
       'other_config:emc-enable'.
   * Add 'symmetric_l3' hash function.
   * OVS now honors 'updelay' and 'downdelay' for bonds with LACP configured.
   * ovs-vswitchd:
     - New configuration option "offload-rebalance", that enables dynamic
       rebalancing of offloaded flows.
   * The environment variable OVS_RESOLV_CONF, if set, is now used
     as the DNS server configuration file.
   * RHEL packaging:
     - OVN packages are split from OVS packages. A new spec
       file - ovn-fedora.spec.in is added to generate OVN packages.
- Remove upstreamed patch:
  * 0001-python-c-ext-Fix-memory-leak-in-Parser_finish.patch
- Remove DISABLE_RESTART_ON_UPDATE and DISABLE_STOP_ON_REMOVAL options (bsc#1117483).

OBS-URL: https://build.opensuse.org/request/show/668391
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=171
2019-01-24 16:17:24 +00:00
Tomáš Chvátal
84ac2d5390 Accepting request 667289 from home:tbechtold:branches:network
- python2-ovs provides now also python-ovs which is the standard
  for singlespec python packages.

OBS-URL: https://build.opensuse.org/request/show/667289
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=169
2019-01-20 09:15:13 +00:00
Tomáš Chvátal
9d0b2cf8f2 Accepting request 651988 from home:jaicaa:branches:network
- Backport upstream fix for python json parser memory leak (bsc#1116437)
 * 0001-python-c-ext-Fix-memory-leak-in-Parser_finish.patch

OBS-URL: https://build.opensuse.org/request/show/651988
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=167
2018-11-26 14:07:00 +00:00
7e3ebe5466 Accepting request 648412 from home:markoschandras:network
- Improve python packaging (bsc#1115085)
  * Rename python*-openvswitch subpackages to python*-ovs to follow
    the openSUSE policy that packages should be named after the modules
    they install.
  * Build the JSON C bindings and as a result the 'noarch' BuildArch
    needs to be removed.
  * Drop the python*-openvswitch-test packages and merge them with the
    test subpackage
  * Build the python bindings using setuptools
  * Include the egg-info package.
  * Use libopenvswitch as dependency to python bindings

OBS-URL: https://build.opensuse.org/request/show/648412
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=165
2018-11-12 12:41:04 +00:00
Tomáš Chvátal
6379c55336 Accepting request 643691 from home:markoschandras:network
- Version bump to 2.10.1. Some of the changes are:
  * dpif-netdev.at: Add missing backslash.
  * ofproto-dpif-xlate: Avoid deadlock on multicast snooping recursion.
  * dpif-netdev-perf: Print SMC statistics.
  * dpif-netdev-unixctl: Change 'masked' to 'megaflow'.
  * ovn-controller: Support processing DHCPv6 information request message type
  * ovn-ctl: Fix the wrong pidfile argument passed to ovsdb-servers
  * ovndb-servers.ocf: Add ssl support for managing OVN DB resources with pacemaker using LB VIP.
  * ovn-ctl: Allow passing ssl certs when starting OVN DBs in ssl mode.
  * expr: Disallow < <= >= > comparisons against empty value set.
  * expr: Set a limit on the depth of nested parentheses
  * ovn: Fix IPv6 DAD failure for container ports
  * dpif-netdev: Add vlan to mask for flow_put operation.
  * ovs-save: Parse geneve tlv map correctly.
  * extend-table: Fix a bug that iterates wrong table
  * odp-util: Fix a use-after-free bug.
  * ofp-packet: Fix NXT_RESUME with geneve tunnel metadata
  * dpif-netlink: Fix null pointer.
  * ofproto-dpif-xlate.c: Fix uninitialized variable warning.
  * dpif: Remove support for multiple queues per port.
  * dpif-netlink: don't allocate per thread netlink sockets
  * ovsdb-types: Refactor structs so as to comply with C++ standard
  * bfd: Make the tp_dst masking megaflow-friendly.
  * ovsdb-data: Improve grammar in error message.
  * condition: Reject <, <=, >=, > with optional scalar against empty set.
  * condition: Fix ==, !=, includes, excludes on optional scalars.
  * netdev: Properly clear 'details' when iterating in NETDEV_QOS_FOR_EACH.
  * lex: Fix buffer overrun parsing overlong hexadecimal constants.
  * sflow: Set agent address properly based on collector address.
  * ovsdb-client: Fix a bug that uses wrong index

OBS-URL: https://build.opensuse.org/request/show/643691
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=163
2018-10-24 08:39:34 +00:00
ce37cd1963 Accepting request 638823 from home:markoschandras:network
- Use correct user for logrotate script (bsc#1104049, b096fa42ddc2)

OBS-URL: https://build.opensuse.org/request/show/638823
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=161
2018-09-28 00:18:04 +00:00
Markos Chandras
fd6adfc343 Accepting request 637655 from home:markoschandras:network
- Fix package name for shared library.

OBS-URL: https://build.opensuse.org/request/show/637655
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=159
2018-09-25 09:30:20 +00:00
Markos Chandras
ff8ab70d04 create missing /var/run/openvswitch directory which is
needed when building the kernel module

OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=157
2018-09-03 08:00:26 +00:00
15fd25262d Accepting request 631965 from home:markoschandras:network
- Version bump to 2.10.0. Some of the changes are:
  * ovs-vswitchd and utilities now support DNS names in OpenFlow and
    OVSDB remotes.
  * ovs-vswitchd:
    - New options --l7 and --l7-len to "ofproto/trace" command.
    - Previous versions gave OpenFlow tables default names of the form
      "table#".  These are not helpful names for the purpose of accepting
      and displaying table names, so now tables by default have no names.
    - The "null" interface type, deprecated since 2013, has been removed.
    - Add minimum network namespace support for Linux.
    - New command "lacp/show-stats"
  * ovs-ofctl:
    - ovs-ofctl now accepts and display table names in place of numbers.  By
      default it always accepts names and in interactive use it displays them;
      use --names or --no-names to override.  See ovs-ofctl(8) for details.
  * ovs-vsctl: New commands "add-bond-iface" and "del-bond-iface".
  * ovs-dpctl:
    - New commands "ct-set-limits", "ct-del-limits", and "ct-get-limits".
  * OpenFlow:
    - OFPT_ROLE_STATUS is now available in OpenFlow 1.3.
    - OpenFlow 1.5 extensible statistics (OXS) now implemented.
    - New OpenFlow 1.0 extensions for group support.
    - Default selection method for select groups is now dp_hash with improved
      accuracy.
  * ovn:
    - Implemented icmp4/icmp6/tcp_reset actions in order to drop the packet
      and reply with a RST for TCP or ICMPv4/ICMPv6 unreachable message for
      other IPv4/IPv6-based protocols whenever a reject ACL rule is hit.
    - ACL match conditions can now match on Port_Groups as well as address
      sets that are automatically generated by Port_Groups.  ACLs can be

OBS-URL: https://build.opensuse.org/request/show/631965
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=156
2018-08-31 08:06:11 +00:00
Markos Chandras
1f58457d89 Accepting request 629507 from home:markoschandras:network
- Fix conditional to only include vfio udev rules when building with
  DPDK support
- Exclude %_docdir from main package which seems to be packaged by
  default on older openSUSE releases.

OBS-URL: https://build.opensuse.org/request/show/629507
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=154
2018-08-16 09:03:36 +00:00
OBS User mrdocs
763b818f98 Accepting request 614885 from home:markoschandras:network
- Restrict DPDK version to 18.02 since Open vSwitch 2.9 is not going
  to work with any newer releases.

OBS-URL: https://build.opensuse.org/request/show/614885
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=152
2018-06-08 01:34:52 +00:00
Markos Chandras
ddcd77336e Accepting request 613092 from home:markoschandras:network
drop sle_version macros. suse_version is enough

OBS-URL: https://build.opensuse.org/request/show/613092
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=150
2018-05-30 15:01:52 +00:00
OBS User mrdocs
4413ab8eb8 Accepting request 612850 from home:markoschandras:network
- Version bump to 2.9.2. Some of the changes are:
  * OVSDB has new, experimental support for database clustering:
    - New high-level documentation in ovsdb(7).
    - New file format documentation for developers in ovsdb(5).
    - Protocol documentation moved from ovsdb-server(1) to ovsdb-server(7).
    - ovsdb-server now supports online schema conversion via
      "ovsdb-client convert".
    - ovsdb-server now always hosts a built-in database named _Server. See
      ovsdb-server(5) for more details.
    - ovsdb-client: New "get-schema-cksum", "query", "backup", "restore",
      and "wait" commands.  New --timeout option.
    - ovsdb-tool: New "create-cluster", "join-cluster", "db-cid", "db-sid",
      "db-local-address", "db-is-clustered", "db-is-standalone", "db-name",
      "schema-name", "compare-versions", and "check-cluster" commands.
    - ovsdb-server: New ovs-appctl commands for managing clusters.
    - ovs-sandbox: New support for clustered databases.
   * OVN:
     - ovn-sbctl, ovn-nbctl: New options --leader-only, --no-leader-only.
   * Bug fixes
- Use openvswitch user/group for the log directory (3f556d66edb9)

- Add support for RedHat distributions. All SUSE macros are now
  conditional and the spec file has been adapted based on the upstream
  one (fate#324537)
- spec-cleaner fixes

OBS-URL: https://build.opensuse.org/request/show/612850
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=149
2018-05-30 01:33:36 +00:00
Ismail Dönmez
4911dbda67 Accepting request 603963 from home:markoschandras:network
- Move openvswitch user/group creation to %pre scriptlet. The default
  ownership of the configuration files expects the user and group to
  be available as early as possible (bsc#1091408)
- spec-cleaner fixes.

OBS-URL: https://build.opensuse.org/request/show/603963
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=147
2018-05-04 12:45:44 +00:00
OBS User mrdocs
f14d37b592 Accepting request 599992 from home:markoschandras:network
- Preserve 'enable' status of openvswitch.service file when upgrading
  from <SLE-12-SP3. The service file has been moved from the old
  openvswitch-switch subpackage to the main openvswitch one so we
  need to handle this migration step in %posttrans (bsc#1089476)
- Move DISABLE_STOP_ON_REMOVAL=yes to %preun. This variable is only
  checked in %service_del_preun macro

OBS-URL: https://build.opensuse.org/request/show/599992
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=145
2018-04-24 00:25:50 +00:00
4929f663f2 Accepting request 590075 from home:markoschandras:network
- Fix file permissions in /etc/openvswitch for upgrades (951d79e638ec)

OBS-URL: https://build.opensuse.org/request/show/590075
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=143
2018-03-23 09:28:45 +00:00
3bfbfddc06 - set rundir to %_rundir
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=142
2018-03-21 21:03:38 +00:00
c0316badd8 Accepting request 582588 from home:markoschandras:network
- Version bump to 2.9.0. Some of the changes are:
  * NSH implementation now conforms to latest draft (draft-ietf-sfc-nsh-28).
  * OVSDB:
    - ovsdb-client: New "get-schema-cksum" and "query" commands.
    - ovsdb-client: New "backup" and "restore" commands.
    - ovsdb-client: New --timeout option.
    - ovsdb-tool: New "db-name" and "schema-name" commands.
  * ovs-vsctl and other commands that display data in tables now support a
     --max-column-width option to limit column width.
  * No longer slow-path traffic that sends to a controller.  Applications,
    such as OVN ACL logging, want to send a copy of a packet to a
    controller while leaving the actual packet forwarding in the datapath.
  * OVN:
    - The "requested-chassis" option for a logical switch port now accepts a
      chassis "hostname" in addition to a chassis "name".
    - IPv6
      * Added support to send IPv6 Router Advertisement packets in response to
        the IPv6 Router Solicitation packets from  the VIF ports.
      * Added support to generate Neighbor Solicitation packets using the OVN
        action 'nd_ns' to resolve unknown next hop MAC addresses for the
        IPv6 packets.
    - ovn-ctl: New commands run_nb_ovsdb and run_sb_ovsdb.
  * OpenFlow:
    - ct_clear action is now backed by kernel datapath. Support is probed for
      when OVS starts.
   - ovs-dpctl and related ovs-appctl commands:
     * "flush-conntrack" now accept a 5-tuple to delete a specific
       connection tracking entry.
     * New "ct-set-maxconns", "ct-get-maxconns", and "ct-get-nconns" commands
       for userspace datapath.

OBS-URL: https://build.opensuse.org/request/show/582588
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=139
2018-03-06 09:30:45 +00:00
Markos Chandras
daebd2c67f fix python-Twisted package names
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=135
2018-01-10 12:52:33 +00:00
93fd217d23 Accepting request 563105 from home:markoschandras:branches:network
- Add upstream patches to support DPDK 17.11 (fate#322609)
  * 0001-netdev-dpdk-replace-uint8_t-with-dpdk_port_t.patch
  * 0002-netdev-dpdk-DPDK-v17.11-upgrade.patch
  * 0003-netdev-dpdk-vHost-IOMMU-support.patch

OBS-URL: https://build.opensuse.org/request/show/563105
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=134
2018-01-10 09:52:13 +00:00
f850461846 Accepting request 560283 from home:markoschandras:branches:network
- Python fixes and improvements
  * Build Python3 subpackages for Open vSwitch python bindings
  * Switch build architecture to 'noarch' for python bindings.
  * Fix license for python subpackages
  * Build and ship python bytecode files.
- Do not mark files in /usr/share/* as configuration files
- Replace version macro with actual version number of Obsoletes tags.
  The DPDK packages have been merged with the regular OvS ones in the
  2.7.0 release so make it more explicit which ones we are obsoleting.
- spec-cleaner fixes

OBS-URL: https://build.opensuse.org/request/show/560283
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=133
2018-01-09 13:37:23 +00:00
8283839e08 Accepting request 554830 from home:markoschandras:network
- Fix documentation installation. It's best to install everything to
  %buildroot and then remove the files we don't need instead of the
  other way around since some files need to be present in the source
  directory for the testsuite to run.

OBS-URL: https://build.opensuse.org/request/show/554830
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=131
2017-12-06 14:50:41 +00:00
5c4aa62ebd Accepting request 544668 from home:RBrownSUSE:branches:network
Replace references to /var/adm/fillup-templates with new %_fillupdir macro (boo#1069468)

OBS-URL: https://build.opensuse.org/request/show/544668
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=129
2017-11-24 10:22:26 +00:00
Markos Chandras
50945d8e7f Accepting request 530019 from home:markoschandras:network
- Version bump to 2.8.1. Some of the changes are:
  * connmgr: Fix violation of flow monitoring protocol description.
  * ovn/actions: Improve OVN load-balancing performance.
  * dpif-netdev: Fix a zero-rate bug for meter
  * conntrack: Tighten handling of alg reverse conns.
  * conntrack: Add function ct_print_conn_info().
  * conntrack: Create nat_conn_keys_insert().
  * netdev-dpdk: reset packet_type for reused dp_packets.
  * ofp-util: Fix memory leaks when parsing OF1.5 group properties.
  * ofp-util: Fix memory leaks on error cases in ofputil_decode_group_mod().
  * ofp-util: Fix buffer overread in ofputil_decode_bundle_add().
  * ofproto: Include patch ports in mtu overriden check
  * netdev-tc-offloads: Fix vxlan tunnel offloading
  * bridge: Fix controller status update to passive connections
  * lib/odp: Fix handling of set masked action in parse_odp_action
  * tests: Fix sparse error on test-ovn.c
  * dpif-netdev: Fix per packet cycles statistics.
  * netdev-dpdk: update vhost user client port status.
  * ovsdb-server.1: Fix mention of wrong option.

OBS-URL: https://build.opensuse.org/request/show/530019
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=126
2017-10-01 09:05:27 +00:00
5d00e9df71 Accepting request 521652 from home:markoschandras:network
- Version bump to 2.8.0 (fate#323334, bsc#1050700). Some of the changes are:
  * ovs-ofctl can now accept and display port names in place of numbers.  By
    default it always accepts names and in interactive use it displays them;
    use --names or --no-names to override.  See ovs-ofctl(8) for details.
  * "ovs-ofctl dump-flows" now accepts --no-stats to omit flow statistics.
  * New ovs-dpctl command "ct-stats-show" to show connection tracking stats.
  * DPDK log messages redirected to OVS logging subsystem.
    Log level can be changed in a usual OVS way using
    'ovs-appctl vlog' commands for 'dpdk' module. Lower bound
    still can be configured via extra arguments for DPDK EAL.
  * dpdkvhostuser ports are marked as deprecated.  They will be removed
    in an upcoming release.
  * Support for DPDK v17.05.1.
  * New support for multiple VLANs (802.1ad or "QinQ"), including a new
    "dot1q-tunnel" port VLAN mode.
  * Added NAT support for userspace datapath.
  * Added FTP and TFTP support with NAT for userspace datapath.
  * Experimental NSH (Network Service Header) support in userspace datapath.
  * Tracing with ofproto/trace now traces through recirculation.
  * New support for role-based access control (see ovsdb-server(1)).
  * New commands 'stp/show' and 'rstp/show' (see ovs-vswitchd(8)).
  * All features required by OpenFlow 1.4 are now implemented, so
    ovs-vswitchd now enables OpenFlow 1.4 by default (in addition to
    OpenFlow 1.0 to 1.3).
  * Increased support for OpenFlow 1.6 (draft).
  * Bundles now support hashing by just nw_src or nw_dst.
  * The "learn" action now supports a "limit" option (see ovs-ofctl(8)).
  * The port status bit OFPPS_LIVE now reflects link aliveness.
  * OpenFlow 1.5 packet-out is now supported.
  * Support for OpenFlow 1.5 field packet_type and packet-type-aware

OBS-URL: https://build.opensuse.org/request/show/521652
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=124
2017-09-07 18:36:43 +00:00
Markos Chandras
f8303455d3 Accepting request 516264 from home:olh:branches:network
- Update filename in /var/adm/update-messages to match documentation,
  and build-compare pattern

OBS-URL: https://build.opensuse.org/request/show/516264
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=122
2017-08-24 05:49:44 +00:00
OBS User mrdocs
d1d940d22b Accepting request 512793 from home:markoschandras:network
- Do not restart the ovs-vswitchd and ovsdb-server services
  on package updates (bsc#1002734)
- Do not restart the ovs-vswitchd, ovsdb-server and openvswitch
  services on package removals. This facilitates potential future
  package moves but also preserves connectivity when the package is
  removed (bsc#1050896)

OBS-URL: https://build.opensuse.org/request/show/512793
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=121
2017-07-29 02:26:08 +00:00
c3ae8625c4 Accepting request 512256 from home:markoschandras:network
another library that is missing from the libopenvswitch subpackage

OBS-URL: https://build.opensuse.org/request/show/512256
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=120
2017-07-24 19:07:04 +00:00
30ffff0d6e Accepting request 511377 from home:markoschandras:network
- Version bump to 2.7.2. Some of the changes are:
  * Revert "netdev: Fix netdev_open() to adhere to class type if given"
  * connmgr: Fix crash when in_band_create() fails.
  * db-ctl-base: Fix reference-following feature in get_row_by_id().
  * netdev: Fix crash when ifa_netmask is null.
  * ovn-controller: fix use-after-free in physical_run()
  * ovn-controller: avoid crash when vswitchd connection is lost
  * ovsdb-types: Fix memory leak on error path.
  * vswitchd: Fix IFACE_STAT name error in iface_refresh_stats
  * netdev: Fix crash when interface option is changed to invalid value.
  * ofp-util: fix memory leak in ofputil_pull_ofp11_buckets
  * configure: Fix check for rte_config.h to handle cross-compilation.
  * ofp-util: Check length of buckets in ofputil_pull_ofp15_group_mod() (cve-2017-9265) (bsc#1041447)
  * ofp-print: Don't abort on unknown reason in role status message (cve-2017-9263) (bsc#1041470)

OBS-URL: https://build.opensuse.org/request/show/511377
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=119
2017-07-19 12:07:26 +00:00
9998ddd0de Accepting request 509657 from home:markoschandras:network
Addressing comment from https://build.opensuse.org/request/show/509036

No need for a new changes entry

OBS-URL: https://build.opensuse.org/request/show/509657
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=118
2017-07-12 09:19:27 +00:00
OBS User mrdocs
dd4d5b470e Accepting request 508974 from home:jengelh:branches:network
- Implement shared library packaging guideline.

OBS-URL: https://build.opensuse.org/request/show/508974
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=117
2017-07-09 18:23:59 +00:00
OBS User mrdocs
aae33caebc Accepting request 508719 from home:markoschandras:network
- Version bump to 2.7.1. Some of the changes are:
  * Add --cleanup option to command 'ovs-appctl exit' (see ovs-vswitchd(8)).
  * libopenvswitch-2 was renamed to libopenvswitch-2.7. Applications built
    against libopenvswitch must be recompiled against the newer library.
  * ovs-ctl: allow passing user:group to daemons
  * ofproto/bond: Fix bond reconfiguration race condition
  * ofproto/bond: Fix bond post recirc rule leak.
  * ofproto/bond: fix interal flow leak of tcp-balance bond
  * mcast-snooping: Avoid segfault for vswitchd.
  * tun-metadata: Fix memory leak in tun_metadata_table_mod().
  * netdev-dpdk: Fix mempool segfault.
  * mirror: Allow concurrent lookups.
  * ofp-util: Fix buffer overread in ofputil_pull_queue_get_config_reply10() (bsc#1040543)
  * ovsdb: Check null before deref in ovsdb_monitor_table_condition_update().
  * For the complete list of changes, please see:
    - https://github.com/openvswitch/ovs/compare/v2.7.0...v2.7.1
- Remove upstreamed patch
  * 0001-ofp-util-Fix-buffer-overread-in-ofputil_pull_queue_g.patch
- OVN services are no longer restarted automatically after upgrade (44dd4cc49c8a)

OBS-URL: https://build.opensuse.org/request/show/508719
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=116
2017-07-07 21:20:09 +00:00
Markos Chandras
2a65fe0475 Accepting request 501114 from home:markoschandras:network
- Install firewalld OVN files with chmod 644 instead of 755 (4a54614120ea)
- Use python-six instead of python2-six dependency to cover distributions
  which are not using the python-singlespec packaging specification yet (bsc#1041110)
- Add upstream patch to fix a buffer overread vulnerability (cve-2017-9214) (bsc#1040543)
  * 0001-ofp-util-Fix-buffer-overread-in-ofputil_pull_queue_g.patch

OBS-URL: https://build.opensuse.org/request/show/501114
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=114
2017-06-05 12:31:26 +00:00
Markos Chandras
f374ec9122 This fixes some conflict issues reported in https://build.opensuse.org/request/show/479083
and also removes the openvswitch-any-ovn-* and openvswitch-any-switch symbols which are not
necessary.

OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=112
2017-03-13 23:45:12 +00:00
Markos Chandras
e6bd8f037c Accepting request 461859 from home:markoschandras:network
- Version bump to 2.7.0 (fate#321541). Some of the changes are:
  * Utilities and daemons that support SSL now allow protocols and
    ciphers to be configured with --ssl-protocols and --ssl-ciphers.
  * OVN:
    - QoS is now implemented via egress shaping rather than ingress policing.
    - DSCP marking is now supported, via the new northbound QoS table.
    - IPAM now supports fixed MAC addresses.
    - Support for source IP address based routing.
    - ovn-trace:
      * New --ovs option to also print OpenFlow flows.
      * put_dhcp_opts and put_dhcp_optsv6 actions may now be traced.
    - Support for managing SSL and remote connection configuration in
      northbound and southbound databases.
  * Fixed regression in table stats maintenance introduced in OVS
    2.3.0, wherein the number of OpenFlow table hits and misses was
    not accurate.
  * OpenFlow:
    - OFPT_PACKET_OUT messages are now supported in bundles.
    - A new "selection_method=dp_hash" type for OpenFlow select group
      bucket selection that uses the datapath computed 5-tuple hash
      without making datapath flows match the 5-tuple fields, which
      is useful for more efficient load balancing, for example.  This
      uses the Netronome extension to OpenFlow 1.5+ that allows
      control over the OpenFlow select groups selection method.  See
      "selection_method" and related options in ovs-ofctl(8) for
      details.
    - The "sample" action now supports "ingress" and "egress" options.
    - The "ct" action now supports the TFTP ALG where support is available.
    - New actions "clone" and "ct_clear".
  * ovs-ofctl:

OBS-URL: https://build.opensuse.org/request/show/461859
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=111
2017-03-13 15:00:26 +00:00
Markos Chandras
22ee90756e Accepting request 442335 from home:markoschandras:network
- Relax the DPDK dependency a bit so we can support stable and
  possibly new minor releases as well.

OBS-URL: https://build.opensuse.org/request/show/442335
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=109
2016-11-28 11:39:20 +00:00
961621fedc Accepting request 441194 from home:markoschandras:network
- Do not restart the openvswitch service after a package update.
  Restarting the systemd service may break connectivity so let the
  user decide when it is the best time for such an action.

OBS-URL: https://build.opensuse.org/request/show/441194
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=108
2016-11-22 10:46:01 +00:00
Markos Chandras
49720f8459 Accepting request 438539 from home:markoschandras:network
- Version bump to 2.6.1. Some of the changes are:
  * ovn: Do not reply to ARP or ND NS for a VM's own IP address.
  * ovs-ofctl: Tolerate differences in IPv6 formatting.
  * netdev-linux: double tagged packets should use 0x88a8
  * expr: Fix abort when simplifying "x != 0/0".
  * dpif-netdev: Fix crash in dpif_netdev_execute().
  * ovn-controller: Container can have connection to a hosting VM.
  * stream-ssl: Fix memory leak on error path.
  * Other bug fixes.

OBS-URL: https://build.opensuse.org/request/show/438539
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=106
2016-11-04 10:42:52 +00:00
db271ea782 Accepting request 433610 from home:markoschandras:network
- Version bump to 2.6.0. Some of the changes are:
  * First supported release of OVN.  See ovn-architecture(7) for more
     details.
  * ovsdb-server:
     - New "monitor_cond" "monitor_cond_update" and "update2" extensions to
       RFC 7047.
   * OpenFlow:
     - OpenFlow 1.3+ bundles now expire after 10 seconds since the
       last time the bundle was either opened, modified, or closed.
     - OpenFlow 1.3 Extension 230, adding OpenFlow Bundles support, is
       now implemented.
     - OpenFlow 1.3+ bundles are now supported for group mods as well as
       flow mods and port mods.  Both 'atomic' and 'ordered' bundle
       flags are supported for group mods as well as flow mods.
     - Internal OpenFlow rule representation for load and set-field
       actions is now much more memory efficient.  For a complex flow
       table this can reduce rule memory consumption by 40%.
     - Bundles are now much more memory efficient than in OVS 2.5.
       Together with memory efficiency improvements in OpenFlow rule
       representation, the peak OVS resident memory use during a
       bundle commit for large complex set of flow mods can be only
       25% of that in OVS 2.5 (4x lower).
     - OpenFlow 1.1+ OFPT_QUEUE_GET_CONFIG_REQUEST now supports OFPP_ANY.
     - OpenFlow 1.4+ OFPMP_QUEUE_DESC is now supported.
     - OpenFlow 1.4+ OFPT_TABLE_STATUS is now supported.
     - New property-based packet-in message format NXT_PACKET_IN2 with support
       for arbitrary user-provided data and for serializing flow table
       traversal into a continuation for later resumption.
     - New extension message NXT_SET_ASYNC_CONFIG2 to allow OpenFlow 1.4-like
       control over asynchronous messages in earlier versions of OpenFlow.

OBS-URL: https://build.opensuse.org/request/show/433610
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=104
2016-10-07 13:07:43 +00:00
Markos Chandras
dbe41ed4db Accepting request 427251 from home:markoschandras:network
- Add new DPDK_OPTIONS environment variable to hold the dpdk
  vswitchd options so that the systemd unit files can be used to
  launch an ovs-vswitcd DPDK capable instance instead of doing
  it manually. (bsc#987265)
    * 0001-ovs-ctl-Add-new-DPDK_OPTIONS-environment-variable.patch

OBS-URL: https://build.opensuse.org/request/show/427251
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=102
2016-09-13 18:58:41 +00:00
2aa52784e3 Accepting request 408658 from home:markoschandras:network
- Add missing licenses (bsc#988513)
- Misc spec file cleanups highlighted by the spec-cleaner tool.
- Allow aarch64 builds for openvswitch-dpdk
- Add missing bug references to 2.5.0 release.
old: network/openvswitch
new: home:markoschandras:network/openvswitch rev None
Index: openvswitch-dpdk.changes
===================================================================
--- openvswitch-dpdk.changes (revision 98)
+++ openvswitch-dpdk.changes (revision 46)
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Tue Jul 12 10:41:14 UTC 2016 - mchandras@suse.de
+
+- Add missing licenses (bsc#988513)
+- Misc spec file cleanups highlighted by the spec-cleaner tool.
+- Allow aarch64 builds for openvswitch-dpdk
+
+-------------------------------------------------------------------
 Mon Jul  4 12:08:06 UTC 2016 - mchandras@suse.de
 
 - Allow the OvS daemon to run as non-root (bsc#987545)
@@ -197,6 +204,8 @@
 - Added: ovn-northd.service
 - TODO: Explicit DPDK support not yet added to spec.
 - Spec file work and cleanup.
+- Includes fixes (or obsoletes) the following issues:
+  * bsc#948840, bsc#941466, bsc#936780, bnc#935750, bnc#867964
 
 -------------------------------------------------------------------
 Tue Mar  1 08:43:19 UTC 2016 - kmroz@suse.com
Index: openvswitch-dpdk.spec
===================================================================
--- openvswitch-dpdk.spec (revision 98)
+++ openvswitch-dpdk.spec (revision 46)
@@ -14,10 +14,9 @@
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
-
-
 # needssslcertforbuild
 
+
 # Disable building the external kernel datapath by default
 %bcond_with kmp
 # DPDK build disabled by default. It's enabled in the
@@ -26,14 +25,16 @@
 # The testsuite is somewhat fragile for continuous testing in OBS
 # but keep it here as an option
 %bcond_with check
-
 # Do NOT edit this auto generated file! Edit openvswitch.spec instead
 # and run 'pre_checkin.sh' before committing
 Name:           openvswitch-dpdk
 Version:        2.5.0
 Release:        0
 Summary:        An open source, production quality, multilayer virtual switch (DPDK)
-License:        Apache-2.0
+# All code is Apache-2.0 except
+# - lib/sflow* which is SISSL
+# - utilities/bugtool which is LGPL-2.1
+License:        Apache-2.0 and LGPL-2.1 and SISSL
 Group:          Productivity/Networking/System
 Url:            http://openvswitch.org/
 Source0:        http://openvswitch.org/releases/openvswitch-%{version}.tar.gz
@@ -43,35 +44,26 @@
 Source89:       Module.supported.updates
 # PATCH-FIX-UPSTREAM openvswitch-2.5.0-detect-dpdk-installation.patch
 Patch0:         openvswitch-%{version}-detect-dpdk-installation.patch
-Patch1:         0001-Remove-broken-pipe-warning-logs-from-ovsdb-server.lo.patch 
+Patch1:         0001-Remove-broken-pipe-warning-logs-from-ovsdb-server.lo.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
-%if %{with dpdk}
-# We need to be a bit strict with the dpdk version since
-# it's very possible for DPDK to change it's API between
-# releases. OVS currently requires 2.2.0. We may have to
-# provide multiple versions of dpdk if OVS and DPDK get
-# out of sync too often.
-BuildRequires:  dpdk-devel = 2.2.0
-ExclusiveArch:  x86_64 %ix86
-%endif
 BuildRequires:  fdupes
 BuildRequires:  gcc
 BuildRequires:  glibc-devel
 BuildRequires:  graphviz
 BuildRequires:  libcap-ng-devel
-BuildRequires:  libopenssl-devel
 BuildRequires:  libtool
 BuildRequires:  make
 BuildRequires:  openssl
 BuildRequires:  perl
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
 # Needed by the testsuite
 BuildRequires:  procps
 BuildRequires:  python-devel
 BuildRequires:  python-xml
+BuildRequires:  valgrind-devel
+BuildRequires:  pkgconfig(openssl)
 Requires:       logrotate
-Requires:       openssl
 Requires:       python
 Provides:       openvswitch-common = %{version}
 Obsoletes:      openvswitch-common < %{version}
@@ -79,10 +71,16 @@
 Obsoletes:      openvswitch-controller < %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %py_requires
-BuildRequires:  valgrind-devel
-# We can't have openvswitch and openvswitch-dpdk in parallel
 %if %{with dpdk}
+# We need to be a bit strict with the dpdk version since
+# it's very possible for DPDK to change it's API between
+# releases. OVS currently requires 2.2.0. We may have to
+# provide multiple versions of dpdk if OVS and DPDK get
+# out of sync too often.
+BuildRequires:  dpdk-devel = 2.2.0
+# We can't have openvswitch and openvswitch-dpdk in parallel
 Conflicts:      openvswitch
+ExclusiveArch:  aarch64 x86_64 %{ix86}
 %endif
 
 %description
@@ -131,15 +129,15 @@
 # ovs-ctl / ovs-pki use /usr/bin/uuidgen:
 Requires:       util-linux
 Requires(post): %fillup_prereq
+Suggests:       logrotate
 Provides:       openvswitch-any-switch = %{version}
+%{?systemd_requires}
 %if %{with dpdk}
 Conflicts:      openvswitch-switch
 %endif
-Suggests:       logrotate
 %if %{with kmp}
 Suggests:       openvswitch-kmp
 %endif
-%{?systemd_requires}
 
 %description switch
 openvswitch-switch provides the userspace components and utilities for
@@ -246,7 +244,7 @@
 Open vSwitch is a full-featured software-based Ethernet switch.
 
 %prep
-%setup -n openvswitch-%{version} -q
+%setup -q -n openvswitch-%{version}
 %patch0 -p1
 %patch1 -p1
 
@@ -290,6 +288,7 @@
         --disable-static \
         --enable-libcapng \
         --enable-shared \
+        --enable-ssl \
         ${dpdk_opt} \
         --with-logdir=%{_localstatedir}/log/openvswitch
 make %{?_smp_mflags}
@@ -301,7 +300,7 @@
 # Recheck tests before we declare them broken. If that fails, dump
 # the log and exit. >2.5.0 uses the RECHECK env variable so this
 # needs to be taken into consideration for future releases.
-if make check TESTSUITEFLAGS="%{_smp_mflags}" ||
+if make check TESTSUITEFLAGS="%{?_smp_mflags}" ||
    make check TESTSUITEFLAGS='--recheck'; then :;
 else
     cat tests/testsuite.log
@@ -358,7 +357,7 @@
 mv %{buildroot}%{_datadir}/openvswitch/python/* %{buildroot}%{py_sitedir}
 rmdir %{buildroot}%{_datadir}/openvswitch/python
 
-rm -f %buildroot/%_libdir/*.la
+find %{buildroot} -type f -name "*.la" -delete -print
 
 # Remove unpackaged files for the dpdk case
 %if %{with dpdk}
@@ -438,26 +437,26 @@
 %{_libdir}/libopenvswitch.so.*
 %{_libdir}/libovsdb.so.*
 %{_libdir}/libsflow.so.*
-%{_mandir}/man1/ovs-benchmark.1.gz
-%{_mandir}/man1/ovsdb-client.1.gz
-%{_mandir}/man8/ovs-appctl.8.gz
-%{_mandir}/man8/ovs-bugtool.8.gz
-%{_mandir}/man8/ovs-ofctl.8.gz
-%{_mandir}/man8/ovs-vlan-bug-workaround.8.gz
-%{_mandir}/man8/ovs-parse-backtrace.8.gz
-%{_mandir}/man8/ovs-dpctl-top.8.gz
+%{_mandir}/man1/ovs-benchmark.1%{ext_man}
+%{_mandir}/man1/ovsdb-client.1%{ext_man}
+%{_mandir}/man8/ovs-appctl.8%{ext_man}
+%{_mandir}/man8/ovs-bugtool.8%{ext_man}
+%{_mandir}/man8/ovs-ofctl.8%{ext_man}
+%{_mandir}/man8/ovs-vlan-bug-workaround.8%{ext_man}
+%{_mandir}/man8/ovs-parse-backtrace.8%{ext_man}
+%{_mandir}/man8/ovs-dpctl-top.8%{ext_man}
 %{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
 
 %files pki
 %defattr(-,root,root)
-%{_mandir}/man8/ovs-pki.8.gz
+%{_mandir}/man8/ovs-pki.8%{ext_man}
 %{_bindir}/ovs-pki
 
 %files vtep
 %defattr(-,root,root)
 %{_bindir}/vtep-ctl
-%{_mandir}/man5/vtep.5.gz
-%{_mandir}/man8/vtep-ctl.8.gz
+%{_mandir}/man5/vtep.5%{ext_man}
+%{_mandir}/man8/vtep-ctl.8%{ext_man}
 %{_datadir}/openvswitch/scripts/ovs-vtep
 %{_datadir}/openvswitch/vtep.ovsschema
 %{_libdir}/libvtep.so.*
@@ -489,15 +488,15 @@
 %{_datadir}/openvswitch/vswitch.ovsschema
 %{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
 %config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch-switch
-%{_mandir}/man8/ovs-dpctl.8.gz
-%{_mandir}/man1/ovs-tcpundump.1.gz
-%{_mandir}/man1/ovs-pcap.1.gz
-%{_mandir}/man8/ovs-vsctl.8.gz
-%{_mandir}/man1/ovsdb-tool.1.gz
-%{_mandir}/man8/ovs-vswitchd.8.gz
-%{_mandir}/man1/ovsdb-server.1.gz
-%{_mandir}/man5/ovs-vswitchd.conf.db.5.gz
-%{_mandir}/man8/ovs-ctl.8.gz
+%{_mandir}/man8/ovs-dpctl.8%{ext_man}
+%{_mandir}/man1/ovs-tcpundump.1%{ext_man}
+%{_mandir}/man1/ovs-pcap.1%{ext_man}
+%{_mandir}/man8/ovs-vsctl.8%{ext_man}
+%{_mandir}/man1/ovsdb-tool.1%{ext_man}
+%{_mandir}/man8/ovs-vswitchd.8%{ext_man}
+%{_mandir}/man1/ovsdb-server.1%{ext_man}
+%{_mandir}/man5/ovs-vswitchd.conf.db.5%{ext_man}
+%{_mandir}/man8/ovs-ctl.8%{ext_man}
 %{_sbindir}/rcopenvswitch
 %{_unitdir}/openvswitch.service
 %{_localstatedir}/adm/fillup-templates/sysconfig.openvswitch
@@ -538,10 +537,10 @@
 %{_bindir}/ovs-l3ping
 %{_bindir}/ovs-vlan-test
 %{_bindir}/ovs-testcontroller
-%{_mandir}/man8/ovs-test.8.gz
-%{_mandir}/man8/ovs-l3ping.8.gz
-%{_mandir}/man8/ovs-vlan-test.8.gz
-%{_mandir}/man8/ovs-testcontroller.8.gz
+%{_mandir}/man8/ovs-test.8%{ext_man}
+%{_mandir}/man8/ovs-l3ping.8%{ext_man}
+%{_mandir}/man8/ovs-vlan-test.8%{ext_man}
+%{_mandir}/man8/ovs-testcontroller.8%{ext_man}
 
 %files devel
 %defattr(-,root,root)
Index: openvswitch.changes
===================================================================
--- openvswitch.changes (revision 98)
+++ openvswitch.changes (revision 46)
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Tue Jul 12 10:41:14 UTC 2016 - mchandras@suse.de
+
+- Add missing licenses (bsc#988513)
+- Misc spec file cleanups highlighted by the spec-cleaner tool.
+- Allow aarch64 builds for openvswitch-dpdk
+
+-------------------------------------------------------------------
 Mon Jul  4 12:08:06 UTC 2016 - mchandras@suse.de
 
 - Allow the OvS daemon to run as non-root (bsc#987545)
@@ -197,6 +204,8 @@
 - Added: ovn-northd.service
 - TODO: Explicit DPDK support not yet added to spec.
 - Spec file work and cleanup.
+- Includes fixes (or obsoletes) the following issues:
+  * bsc#948840, bsc#941466, bsc#936780, bnc#935750, bnc#867964
 
 -------------------------------------------------------------------
 Tue Mar  1 08:43:19 UTC 2016 - kmroz@suse.com
Index: openvswitch.spec
===================================================================
--- openvswitch.spec (revision 98)
+++ openvswitch.spec (revision 46)
@@ -14,10 +14,9 @@
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
-
-
 # needssslcertforbuild
 
+
 # Disable building the external kernel datapath by default
 %bcond_with kmp
 # DPDK build disabled by default. It's enabled in the
@@ -26,12 +25,14 @@
 # The testsuite is somewhat fragile for continuous testing in OBS
 # but keep it here as an option
 %bcond_with check
-
 Name:           openvswitch
 Version:        2.5.0
 Release:        0
 Summary:        An open source, production quality, multilayer virtual switch
-License:        Apache-2.0
+# All code is Apache-2.0 except
+# - lib/sflow* which is SISSL
+# - utilities/bugtool which is LGPL-2.1
+License:        Apache-2.0 and LGPL-2.1 and SISSL
 Group:          Productivity/Networking/System
 Url:            http://openvswitch.org/
 Source0:        http://openvswitch.org/releases/openvswitch-%{version}.tar.gz
@@ -41,35 +42,26 @@
 Source89:       Module.supported.updates
 # PATCH-FIX-UPSTREAM openvswitch-2.5.0-detect-dpdk-installation.patch
 Patch0:         openvswitch-%{version}-detect-dpdk-installation.patch
-Patch1:         0001-Remove-broken-pipe-warning-logs-from-ovsdb-server.lo.patch 
+Patch1:         0001-Remove-broken-pipe-warning-logs-from-ovsdb-server.lo.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
-%if %{with dpdk}
-# We need to be a bit strict with the dpdk version since
-# it's very possible for DPDK to change it's API between
-# releases. OVS currently requires 2.2.0. We may have to
-# provide multiple versions of dpdk if OVS and DPDK get
-# out of sync too often.
-BuildRequires:  dpdk-devel = 2.2.0
-ExclusiveArch:  x86_64 %ix86
-%endif
 BuildRequires:  fdupes
 BuildRequires:  gcc
 BuildRequires:  glibc-devel
 BuildRequires:  graphviz
 BuildRequires:  libcap-ng-devel
-BuildRequires:  libopenssl-devel
 BuildRequires:  libtool
 BuildRequires:  make
 BuildRequires:  openssl
 BuildRequires:  perl
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
 # Needed by the testsuite
 BuildRequires:  procps
 BuildRequires:  python-devel
 BuildRequires:  python-xml
+BuildRequires:  valgrind-devel
+BuildRequires:  pkgconfig(openssl)
 Requires:       logrotate
-Requires:       openssl
 Requires:       python
 Provides:       openvswitch-common = %{version}
 Obsoletes:      openvswitch-common < %{version}
@@ -77,10 +69,16 @@
 Obsoletes:      openvswitch-controller < %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %py_requires
-BuildRequires:  valgrind-devel
-# We can't have openvswitch and openvswitch-dpdk in parallel
 %if %{with dpdk}
+# We need to be a bit strict with the dpdk version since
+# it's very possible for DPDK to change it's API between
+# releases. OVS currently requires 2.2.0. We may have to
+# provide multiple versions of dpdk if OVS and DPDK get
+# out of sync too often.
+BuildRequires:  dpdk-devel = 2.2.0
+# We can't have openvswitch and openvswitch-dpdk in parallel
 Conflicts:      openvswitch
+ExclusiveArch:  aarch64 x86_64 %{ix86}
 %endif
 
 %description
@@ -129,15 +127,15 @@
 # ovs-ctl / ovs-pki use /usr/bin/uuidgen:
 Requires:       util-linux
 Requires(post): %fillup_prereq
+Suggests:       logrotate
 Provides:       openvswitch-any-switch = %{version}
+%{?systemd_requires}
 %if %{with dpdk}
 Conflicts:      openvswitch-switch
 %endif
-Suggests:       logrotate
 %if %{with kmp}
 Suggests:       openvswitch-kmp
 %endif
-%{?systemd_requires}
 
 %description switch
 openvswitch-switch provides the userspace components and utilities for
@@ -244,7 +242,7 @@
 Open vSwitch is a full-featured software-based Ethernet switch.
 
 %prep
-%setup -n openvswitch-%{version} -q
+%setup -q -n openvswitch-%{version}
 %patch0 -p1
 %patch1 -p1
 
@@ -288,6 +286,7 @@
         --disable-static \
         --enable-libcapng \
         --enable-shared \
+        --enable-ssl \
         ${dpdk_opt} \
         --with-logdir=%{_localstatedir}/log/openvswitch
 make %{?_smp_mflags}
@@ -299,7 +298,7 @@
 # Recheck tests before we declare them broken. If that fails, dump
 # the log and exit. >2.5.0 uses the RECHECK env variable so this
 # needs to be taken into consideration for future releases.
-if make check TESTSUITEFLAGS="%{_smp_mflags}" ||
+if make check TESTSUITEFLAGS="%{?_smp_mflags}" ||
    make check TESTSUITEFLAGS='--recheck'; then :;
 else
     cat tests/testsuite.log
@@ -356,7 +355,7 @@
 mv %{buildroot}%{_datadir}/openvswitch/python/* %{buildroot}%{py_sitedir}
 rmdir %{buildroot}%{_datadir}/openvswitch/python
 
-rm -f %buildroot/%_libdir/*.la
+find %{buildroot} -type f -name "*.la" -delete -print
 
 # Remove unpackaged files for the dpdk case
 %if %{with dpdk}
@@ -436,26 +435,26 @@
 %{_libdir}/libopenvswitch.so.*
 %{_libdir}/libovsdb.so.*
 %{_libdir}/libsflow.so.*
-%{_mandir}/man1/ovs-benchmark.1.gz
-%{_mandir}/man1/ovsdb-client.1.gz
-%{_mandir}/man8/ovs-appctl.8.gz
-%{_mandir}/man8/ovs-bugtool.8.gz
-%{_mandir}/man8/ovs-ofctl.8.gz
-%{_mandir}/man8/ovs-vlan-bug-workaround.8.gz
-%{_mandir}/man8/ovs-parse-backtrace.8.gz
-%{_mandir}/man8/ovs-dpctl-top.8.gz
+%{_mandir}/man1/ovs-benchmark.1%{ext_man}
+%{_mandir}/man1/ovsdb-client.1%{ext_man}
+%{_mandir}/man8/ovs-appctl.8%{ext_man}
+%{_mandir}/man8/ovs-bugtool.8%{ext_man}
+%{_mandir}/man8/ovs-ofctl.8%{ext_man}
+%{_mandir}/man8/ovs-vlan-bug-workaround.8%{ext_man}
+%{_mandir}/man8/ovs-parse-backtrace.8%{ext_man}
+%{_mandir}/man8/ovs-dpctl-top.8%{ext_man}
 %{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
 
 %files pki
 %defattr(-,root,root)
-%{_mandir}/man8/ovs-pki.8.gz
+%{_mandir}/man8/ovs-pki.8%{ext_man}
 %{_bindir}/ovs-pki
 
 %files vtep
 %defattr(-,root,root)
 %{_bindir}/vtep-ctl
-%{_mandir}/man5/vtep.5.gz
-%{_mandir}/man8/vtep-ctl.8.gz
+%{_mandir}/man5/vtep.5%{ext_man}
+%{_mandir}/man8/vtep-ctl.8%{ext_man}
 %{_datadir}/openvswitch/scripts/ovs-vtep
 %{_datadir}/openvswitch/vtep.ovsschema
 %{_libdir}/libvtep.so.*
@@ -487,15 +486,15 @@
 %{_datadir}/openvswitch/vswitch.ovsschema
 %{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
 %config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch-switch
-%{_mandir}/man8/ovs-dpctl.8.gz
-%{_mandir}/man1/ovs-tcpundump.1.gz
-%{_mandir}/man1/ovs-pcap.1.gz
-%{_mandir}/man8/ovs-vsctl.8.gz
-%{_mandir}/man1/ovsdb-tool.1.gz
-%{_mandir}/man8/ovs-vswitchd.8.gz
-%{_mandir}/man1/ovsdb-server.1.gz
-%{_mandir}/man5/ovs-vswitchd.conf.db.5.gz
-%{_mandir}/man8/ovs-ctl.8.gz
+%{_mandir}/man8/ovs-dpctl.8%{ext_man}
+%{_mandir}/man1/ovs-tcpundump.1%{ext_man}
+%{_mandir}/man1/ovs-pcap.1%{ext_man}
+%{_mandir}/man8/ovs-vsctl.8%{ext_man}
+%{_mandir}/man1/ovsdb-tool.1%{ext_man}
+%{_mandir}/man8/ovs-vswitchd.8%{ext_man}
+%{_mandir}/man1/ovsdb-server.1%{ext_man}
+%{_mandir}/man5/ovs-vswitchd.conf.db.5%{ext_man}
+%{_mandir}/man8/ovs-ctl.8%{ext_man}
 %{_sbindir}/rcopenvswitch
 %{_unitdir}/openvswitch.service
 %{_localstatedir}/adm/fillup-templates/sysconfig.openvswitch
@@ -536,10 +535,10 @@
 %{_bindir}/ovs-l3ping
 %{_bindir}/ovs-vlan-test
 %{_bindir}/ovs-testcontroller
-%{_mandir}/man8/ovs-test.8.gz
-%{_mandir}/man8/ovs-l3ping.8.gz
-%{_mandir}/man8/ovs-vlan-test.8.gz
-%{_mandir}/man8/ovs-testcontroller.8.gz
+%{_mandir}/man8/ovs-test.8%{ext_man}
+%{_mandir}/man8/ovs-l3ping.8%{ext_man}
+%{_mandir}/man8/ovs-vlan-test.8%{ext_man}
+%{_mandir}/man8/ovs-testcontroller.8%{ext_man}
 
 %files devel
 %defattr(-,root,root)

OBS-URL: https://build.opensuse.org/request/show/408658
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=99
2016-07-18 08:19:36 +00:00
Markos Chandras
358bfa9806 Accepting request 406691 from home:markoschandras:network
Fixing my last commit to add conflicts to all subpackages

OBS-URL: https://build.opensuse.org/request/show/406691
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=97
2016-07-05 09:13:42 +00:00
Markos Chandras
9e7428fee8 Accepting request 406385 from home:markoschandras:network
- Allow the OvS daemon to run as non-root (bsc#987545)
- Add missing 'Conflicts' statements in the devel subpackage as
  required by the Factory review tools.

OBS-URL: https://build.opensuse.org/request/show/406385
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=96
2016-07-04 21:42:42 +00:00
Markos Chandras
afb5a1c574 Accepting request 405517 from home:markoschandras:network
- Remove the ?_with_dpdk macro usage since this is not being set
  without explicitly passing --with/--without during an OBS build.
  This reverts back to using the %{with dpdk} style which is set
  automatically based on %bcond_with* macros.

OBS-URL: https://build.opensuse.org/request/show/405517
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=95
2016-06-29 15:59:20 +00:00
f1124fc91b Accepting request 405257 from home:markoschandras:network
- Fix subpackage dependencies to not require the non-existent python
  DPDK subpackages (bsc#986835). We do not provide DPDK versions of
  the python bindings so nothing should depend on these subpackages.

OBS-URL: https://build.opensuse.org/request/show/405257
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=94
2016-06-28 14:58:40 +00:00
e7268eaf86 Accepting request 404072 from home:jengelh:branches:network
- Update rpm groups, acronym forms.

OBS-URL: https://build.opensuse.org/request/show/404072
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=93
2016-06-23 14:44:49 +00:00
ab792e6395 Accepting request 403989 from home:markoschandras:network
- Multiple fixes for the openvswitch-dpdk package (bsc#985878)
  * Rename main package name to openvswitch-dpdk
  * Do not build the python and kmp packages since they do not
    depend on the DPDK capabilities
  * Remove the open_virtual_switch capability. The
    openvswitch-common will be used by reverse dependencies to
    require either of the OvS packages.
  * Provide virtual capabilities for all DPDK subpackages.
  * Fix the dependencies in the python package to require either
    of the OvS packages.
  * Suggest the kmp package only if it's actually provided.
  * Small cleanups.

OBS-URL: https://build.opensuse.org/request/show/403989
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=92
2016-06-22 09:27:41 +00:00