Hello community, here is the log from the commit of package gns3-server for openSUSE:Factory checked in at 2019-06-12 13:10:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gns3-server (Old) and /work/SRC/openSUSE:Factory/.gns3-server.new.4811 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gns3-server" Wed Jun 12 13:10:39 2019 rev:11 rq:697356 version:2.1.16 Changes: -------- --- /work/SRC/openSUSE:Factory/gns3-server/gns3-server.changes 2017-08-08 11:58:57.002470661 +0200 +++ /work/SRC/openSUSE:Factory/.gns3-server.new.4811/gns3-server.changes 2019-06-12 13:10:42.513042587 +0200 @@ -1,0 +2,278 @@ +Thu Apr 18 17:54:21 UTC 2019 - Jan Engelhardt <[email protected]> + +- Trim name repetition from summary. (rpmlint would warn about this) +- Use find "-exec +" mode and remove wrong backslash. + +------------------------------------------------------------------- +Wed Apr 17 09:40:34 UTC 2019 - Joop Boonen <[email protected]> + +- Added some fixes for new python module versions + * Added gns3-server-timeout-fix.patch to fix Timeout(aiohttp.Timeout) + * Added gns3-server-requirements-fix.patch to update the requirements + +------------------------------------------------------------------- +Tue Apr 16 10:40:52 UTC 2019 - Joop Boonen <[email protected]> + +- Build version 2.1.16 + ## 2.1.16 15/04/2019 + * Fix broken embedded console for Ethernet switch. Fixes #1574 + * Remove old unused argument option. Fixes #1569 + ## 2.1.15 21/03/2019 + * Fix IOU symlink issue on remote servers. + * Fix vcpus configuration for GNS3 VM on VMware. Ref #2738. + ## 2.1.14 27/02/2019 + * Fix issue when setting cpuid.corespersocket for the GNS3 VM. Fixes https://github.com/GNS3/gns3-gui/issues/2723 + * Bump ACPI Shutdown Timeout to 120 seconds. Ref #1536 + ## 2.1.13 26/02/2019 + * Force jsonschema dependency to 2.6.0 + * Less aggressive connections to uBridge. Ref #1289 + * Fix topology images (Pictures) disappearing from projects. Fixes #1514. + * Reset MAC addresses when duplicating a project. Fixes #1522 + * Fix API call to create a node from an appliance doesn't return the new node data. Fixes #1527 + * Detect invalid environment variable and send a warning when creating a Docker node. Ref #2683 + * Do not export/import symlinks for projects. Fixes #2699 + * Fix symlink not being created for duplicated IOU devices. Fixes https://github.com/GNS3/gns3-gui/issues/2699 + * Configure coresPerSocket value in VMX file for the GNS3 VM. Fixes https://github.com/GNS3/gns3-gui/issues/2688 + * Count logical CPUs to detect if the number of vCPUs is too high when configuring the GNS3 VM. Fixes #2688. + * Add explicit error when trying to pull a Docker image from Docker Hub without Internet access. Fixes #1506. + * Fixes double display output in GRUB in QEMU v3.1. Fixes #1516. + ## 2.1.12 23/01/2019 + * Tune how to get the size of SVG images. Ref https://github.com/GNS3/gns3-gui/issues/2674. + * Automatically create a symbolic link to the IOU image in the IOU working directory. Fixes #1484 + * Fix link pause/filters only work for the first interface of Docker containers. Fixes #1482 + * Telnet console resize support for Docker VM. + * Fix _fix_permissions() garbles permissions in Docker VM. Ref #1428 + * Fix "None is not of type 'integer'" when opening project containing a Qemu VM. Fixes #2610. + * Only require Xtigervnc or Xvfb+x11vnc for Docker with vnc console. Ref #1438 + * Support tigervnc in Docker VM. Ref #1438 + * Update minimum VIX version requirements for VMware. Ref #1415. + ## 2.1.11 28/09/2018 + * Catch some exceptions. + ## 2.1.10 15/09/2018 + * Include locale information and GNS3 VM version in crash reports. + * Fix small errors like unhandled exceptions etc. + * Import encodings.idna to avoid LookupError when standard library is in a zip file. + * Catch exceptions in various locations to fix small issues reported by Sentry. + * Check if serial pipe can be opened for VMware and VirtualBox VMs. + * Improve the invalid port format detection. Fixes https://github.com/GNS3/gns3-gui/issues/2580 + * Update aiohttp verion requirement in order to support Python 3.7. Fixes https://github.com/GNS3/gns3-gui/issues/2566 + * Update setup.py and fix minor issues. + * Catch asyncio.CancelledError when shutting down the server. + * Report GNS3 VM errors to the GUI server summary. Ref #1359. + * Replace vboxnet0 (if it does not exist) by the first available vboxnet interface on Windows. Fixes https://github.com/GNS3/gns3-vm/issues/102 + * Check if the VirtualBox host-only network exists when starting a GNS3 VM running on VirtualBox. Ref https://github.com/GNS3/gns3-vm/issues/102 + * Change file timestamps if necessary because ZIP does not support timestamps before 1980. Fixes #1360. + * Add missing coroutine decorator Ref https://github.com/GNS3/gns3-gui/issues/2566 + * Refactor asyncio locking system for Python 3.7 support. Ref https://github.com/GNS3/gns3-gui/issues/2566 Ref https://github.com/GNS3/gns3-gui/issues/2568 + * Use asyncio.ensure_future() instead of asyncio.async() with conservative approach to support Python < 3.4.4. Fixes https://github.com/GNS3/gns3-gui/issues/2566 + * Forbid controller and compute servers to be different versions. Report last compute server error to clients and display in the server summary. + * Fix exception with short names for Dynamips interfaces. Fixes #1386. + * Add missing Qemu boot priority values. Fixes https://github.com/GNS3/gns3-server/issues/1385 + ## 2.1.9 13/08/2018 + * Fix some more problems with interface short names. Fixes https://github.com/GNS3/gns3-gui/issues/2562 + * Fix incorrect short port names in topology summary. Fixes https://github.com/GNS3/gns3-gui/issues/2562 + * Set lower process priority when computing idle-pc value on Windows. Ref #2522. + * Catch exception: ZIP does not support timestamps before 1980. Ref #1360. + * Sync appliances + ## 2.1.8 14/06/2018 + * 'caplog.text()' syntax is deprecated, use 'caplog.text' property instead. + * Remove problematic pytest-capturelog dev dependency. + * Fix API status code for start/stop/suspend/reload a node. Fixes #1353. Fix issues with test. Update documentation. + * Don't send variables to computes where are empty, Ref: #1340 + ## 2.1.7 12/06/2018 + * Don't release NIO UDP ports when updating docker container. + * Timeout for stream file. + * Fix switching console type from telnet to VNC throws error. + * Fix timeout error with "save as" for large projects. + * Update API documentation + * Add API endpoint to return all links attached to a node. + * Fix issue with some SVG symbols that could not be used in GNS3. This was due to the height and width values being percentages. + * Show correct free disk space value. + * Force prompt-toolkit to version 1.0.15 + * Remove unwanted trailing characters and other white spaces when reading .md5sum files. + * Change order to find vnetlib on Windows (PATH -> Registry -> Default directories). + ## 2.1.6 22/05/2018 + * Locks down async-timeout<3.0.0 for P3.4 support; Fixes: #1331 + * Create/update project on compute when variables changes + * Support for nested global variables + * Don't clean logo images when applied to the project + * Support of supplier and variables in topology + * Project global variables + * Add command information when uBridge has an error. Ref #1289 + * Handle asyncio timeouts. Ref #1307. + * Fix bug with export project. Ref #1187 #1307. + * Offload slow file operations to threads for snapshots and project "save as". Ref #1187 #1307. + * support based on init.sh, Ref: #2482 + * Fix exception from send_signal() on Windows. + * Add support of ExtraHosts for Docker, Ref. gns3-gui#2482 + ## 2.1.5 18/04/2018 + * Set the first byte to 0C when generating a random MAC address for a Qemu VM. Ref #1267. + * Update appliance files. + * Do not use VMnet0 when allocating VMnet adapters. + * Use SO_REUSEADDR before calling bind() where missing. Fixes #1289. + * Do not fail a Dynamips project conversion if a file being used. + * Catch exceptions when using AsyncioTelnetServer. Fixes #1321. + * Grid size support for projects. + * Remove 'include INSTALL' from MANIFEST. + * Fix issue with start all. + * Check for valid IP address and prevent to run on non-Windows platforms. + * Enable UDP tunnel option and use ICMP probing by default. + * Use the configured IP address to trace. + * Have TraceNG start without needing cmd.exe + ## 2.1.4 12/03/2018 + * Add Juniper JunOS space appliance. + * Sync checkpoint gaia appliance template. + * Sync appliance templates. + * Make sure we use an IPv4 address in the remote install script. + * Delete old pcap file when starting a new packet capture. + * Fix bug preventing to export portable projects with IOU images. + * Ignore invalid BPF filters. Ref #1290. + * Different approach to handle no data returned by uBridge hypervisors. Fixes #1289. + * Do not raise exception if Dynamips or uBridge hypervisor don't return data and are still running. Fixes #1289 + * Fix Dynamips private config not loaded into nvram when starting a router. Fixes #1313. + * Make sure we don't try to read when opening a file in binary more. Fixes #1301. + * Compatybility with controller, default_symbol and hover_symbol, Fixes: #2444 + * Filter snapshots directory during the snapshot, Fixes: #1297 + * Handle docker env with last empty line, Fixes: #2420 + * Require uBridge version 0.9.14 on Linux + * Pywin32 instead of pypiwin32, Ref. #1276 + * Fix missing 'locales' package in base image + * Implement a minimum interval between psutil calls. Fixes #2262 + * Fix error when appliance template is broken (missing fields). Fixes #1287. + * Fix "Change of linked base VM doesn't work with templates migrated from 2.0" + * Fix "Unable to override non-custom VMware adapter". + * Let a project be opened when a port cannot be found (can happens if a project is corrupted). + * Add an error message when Docker container is not ready to be started. Ref #1281. + * Update documentation. + * Sync appliance files. + * Fix issue when running multiple project containing IOU nodes on the same server. Ref #1239. + * Set first byte to 52 when generating a random MAC address for a Qemu VM. Ref #1267. + * Update link state and save project when a link is suspended or filters are added/removed (without node properties set). + * More generic dependency for pypiwin32, Ref. #1276 + ## 2.1.3 19/01/2018 + * Update appliance files. + * Suspend for Docker nodes. + * Unlock yarl version and multidict + * Fix same MAC address for duplicated Qemu nodes. + * Fix same base MAC for duplicated IOS routers. Fixes #1264. + * Fix "Creating multiple IOU nodes at once assigns the same application id". Fixes #1239. + * Fix "Transport selection via DSN is deprecated" message. Sync is configured with HTTPTransport. + * Refresh CPU/RAM info every 1 second. Ref #2262. + * Rename ethernet switch arp command to mac + * Fix error while getting appliance list. Fixes #1258. + * Fix UnboundLocalError: local variable 'node' referenced before assignment. Fixes #1256. + * Default symbol must be computer.svg + * Compatibility for old node templates (those with default_symbol and hover_symbol properties). + * Fix problem when searching for VBoxManage. Fixes #1261. + * Improve the search for VBoxManage. + * Fixing race condition when starting the GNS3 VM. + * Default VPCS name format is now PC-{0}. + ## 2.1.2 08/01/2018 + * Do not show log message if configuration file doesn't exist. Fixes #1206. + * Update API documentation + * Update API documentation. Fixes #1253. + * GNS3-API: implement GET for specific drawing and link Fixes #1249 + ## 2.1.1 22/12/2017 + * Protect variable replacement for Qemu options. Escape double quotes. + * Add proper exception when cannot find tunnel on QEMU, Fixes: #1241 + * Increase timeout for creation of image, Ref. #2239 + * Protect variable replacement for Qemu options. + * Do not overwrites persistent Docker volumes. Fixes #2358. + * Allow users to see an error when the server cannot stream a PCAP file. + * Fix issue with Qemu + SPICE when IPv4 is not enabled. + * Warn users if the GNS3 VM and local server are not in the same subnet. Fixes #1231. + * Add missing appliance files. + * Update appliance files. + * Fix auto idle-pc from preferences. + * Keep consistance of aiohttp.web.HTTPForbidden() execution + * Make sure connected links are removed when a node is deleted. + * Validate idle-pc values for auto idle-pc feature. + * Fix error when updating packet filter on stopped Docker link. Fixes #1229. + * Remotely close telnet console. Ref #2330 + * EthernetSwitch closing connections, Ref: gui/#2330 + * Export files from remote server, Fixes: gui/#2271 + * New option: require KVM. If false, Qemu VMs will not be prevented to run without KVM. + * Implement variable replacement for Qemu VM options. + * Avoid duplicate "-nographic" option. + * Show qemu-img stdout in case of an error. ++++ 81 more lines (skipped) ++++ between /work/SRC/openSUSE:Factory/gns3-server/gns3-server.changes ++++ and /work/SRC/openSUSE:Factory/.gns3-server.new.4811/gns3-server.changes Old: ---- gns3-server-2.0.3.tar.gz New: ---- gns3-server-requirements-fix.patch gns3-server-timeout-fix.patch v2.1.16.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gns3-server.spec ++++++ --- /var/tmp/diff_new_pack.6GEhrl/_old 2019-06-12 13:10:43.045042029 +0200 +++ /var/tmp/diff_new_pack.6GEhrl/_new 2019-06-12 13:10:43.049042025 +0200 @@ -1,7 +1,7 @@ # # spec file for package gns3-server # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,26 +12,23 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%if %{undefined suse_version} - -# get python versions -%global py3_ver %(if [ -f "%{__python3}" ]; then %{__python3} -c "import sys; sys.stdout.write(sys.version[:3])"; else echo 0; fi;) - -%endif - Name: gns3-server -Summary: GNS3 is a graphical network simulator -License: GPL-3.0+ -Group: Productivity/Networking/Other -Version: 2.0.3 +Version: 2.1.16 Release: 0 -Url: http://www.gns3.net/ -Source0: %{name}-%{version}.tar.gz +Summary: A graphical network simulator +License: GPL-3.0-or-later +Group: Productivity/Networking/Other +URL: https://gns3.com/ +Source0: https://github.com/GNS3/gns3-server/archive/v%{version}.tar.gz Source1: %{name}-rpmlintrc +# PATCH-FIX-UPSTREAM gns3-server-timeout-fix.patch +Patch0: gns3-server-timeout-fix.patch +# PATCH-FIX-UPSTREAM gns3-server-requirements-fix.patch +Patch1: gns3-server-requirements-fix.patch BuildRequires: busybox BuildRequires: python3-devel >= 3.3 BuildRequires: python3-pip @@ -43,19 +40,22 @@ Requires: iouyap Requires: python3-Jinja2 >= 2.7.3 Requires: python3-aiohttp >= 0.21.5 +Requires: python3-aiohttp-cors Requires: python3-docker-py >= 1.4.0 Requires: python3-jsonschema >= 2.4.0 +Requires: python3-prompt_toolkit1 Requires: python3-psutil >= 3.0.0 Requires: python3-raven >= 5.2.0 +Requires: python3-typing_extensions Requires: python3-zipstream >= 1.1.3 Requires: qemu +Requires: ubridge >= 0.9.14 Requires: vpcs >= 0.5b1 Requires: wireshark +BuildArch: noarch %if 0%{?suse_version} Recommends: virtualbox %endif -BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The GNS3 server manages emulators such as Dynamips, VirtualBox or Qemu/KVM. @@ -64,7 +64,11 @@ You will need the new GNS3 GUI (gns3-gui repository) to control the server. %prep -%setup -q +%setup -q -n gns3-server-%{version} +%patch0 -p1 +%patch1 -p1 +find . -type f -name "*.py" -exec sed -i 's/^#!\/usr\/bin\/env python3/#!\/usr\/bin\/python3/' {} + +find . -type f -name "*.py" -exec sed -i 's/^#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/' {} + %build python3 setup.py build @@ -72,58 +76,8 @@ %install python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} rm -rf %{buildroot}/%{python3_sitelib}/gns3server/symbols/.gitkeep -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/handlers/api/compute/__init__.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/utils/vmnet.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/import_project.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/utils/qt.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/topology.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/utils/asyncio/pool.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/handlers/api/controller/__init__.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/compute/qemu/qcow2.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/ports/port_factory.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/__init__.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/node.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/handlers/api/controller/gns3_vm_handler.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/web/logger.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/schemas/link.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/schemas/node.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/compute/builtin/nodes/nat.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/schemas/drawing.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/__main__.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/schemas/topology.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/main.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/compute.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/utils/path.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/utils/windows_loopback.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/gns3vm/vmware_gns3_vm.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/compute/iou/utils/iou_import.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/notification.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/notification_queue.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/gns3vm/remote_gns3_vm.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/snapshot.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/udp_link.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/schemas/port.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/handlers/api/controller/symbol_handler.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/compute/notification_manager.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/run.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/controller_error.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/utils/file_watcher.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/utils/__init__.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/link.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/gns3vm/base_gns3_vm.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/compute/iou/utils/iou_export.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/schemas/label.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/utils/picture.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/gns3vm/gns3_vm_error.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/gns3vm/__init__.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/drawing.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/utils/asyncio/serial.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/project.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/gns3vm/virtualbox_gns3_vm.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/symbols.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/handlers/api/controller/snapshot_handler.py -chmod +x %{buildroot}/%{python3_sitelib}/gns3server/controller/export_project.py -find %{buildroot}/%{python3_sitelib}/gns3server -name "*.svg" -exec chmod -x {} \; +find %{buildroot}/%{python3_sitelib}/gns3server -type f -name "*.py" -exec grep -Hl python3 {} + | xargs chmod +x +find %{buildroot}/%{python3_sitelib}/gns3server -name "*.svg" -exec chmod -x {} + rm -rf %{buildroot}/%{python3_sitelib}/tests rm -rf %{buildroot}/%{python3_sitelib}/gns3server/compute/docker/resources/bin/busybox @@ -131,7 +85,8 @@ %files %defattr(-, root, root, 0755) -%doc AUTHORS LICENSE README.rst +%license LICENSE +%doc AUTHORS README.rst %{_bindir}/gns3server %{_bindir}/gns3vmnet %{_bindir}/gns3loopback ++++++ gns3-server-requirements-fix.patch ++++++ diff -Naur gns3-server-2.1.16.orig/requirements.txt gns3-server-2.1.16/requirements.txt --- gns3-server-2.1.16.orig/requirements.txt 2019-04-15 07:00:18.000000000 +0200 +++ gns3-server-2.1.16/requirements.txt 2019-04-17 11:32:38.979409820 +0200 @@ -1,11 +1,11 @@ jsonschema==2.6.0 aiohttp>=2.3.3,<2.4.0 # pyup: ignore -aiohttp-cors>=0.5.3,<0.6.0 # pyup: ignore +aiohttp-cors yarl>=0.11 Jinja2>=2.7.3 raven>=5.23.0 psutil>=3.0.0 zipstream>=1.1.4 -typing>=3.5.3.0 # Otherwise yarl fails with python 3.4 +typing-extensions prompt-toolkit==1.0.15 -async-timeout<3.0.0 # pyup: ignore; 3.0 drops support for python 3.4 +async-timeout ++++++ gns3-server-timeout-fix.patch ++++++ diff -Naur gns3-server-2.1.16.orig/gns3server/controller/compute.py gns3-server-2.1.16/gns3server/controller/compute.py --- gns3-server-2.1.16.orig/gns3server/controller/compute.py 2019-04-15 07:00:18.000000000 +0200 +++ gns3-server-2.1.16/gns3server/controller/compute.py 2019-04-17 11:14:34.401453984 +0200 @@ -23,6 +23,7 @@ import uuid import sys import io +import async_timeout from operator import itemgetter from ..utils import parse_version @@ -52,7 +53,7 @@ self.response = response -class Timeout(aiohttp.Timeout): +class Timeout(async_timeout.timeout): """ Could be removed with aiohttp 0.22 that support None timeout """
