From d42b145432c7834b5c64de189c3aaea188ae413d15569d938ef98dfa46e45a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 17:11:06 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main nvme-stas revision 2c7ad552bbf8d4201ad2c1cc84d8306b --- .gitattributes | 23 +++++ _service | 20 ++++ _servicedata | 6 ++ nvme-stas-2.3.obscpio | 3 + nvme-stas.changes | 226 ++++++++++++++++++++++++++++++++++++++++++ nvme-stas.obsinfo | 4 + nvme-stas.spec | 92 +++++++++++++++++ 7 files changed, 374 insertions(+) create mode 100644 .gitattributes create mode 100644 _service create mode 100644 _servicedata create mode 100644 nvme-stas-2.3.obscpio create mode 100644 nvme-stas.changes create mode 100644 nvme-stas.obsinfo create mode 100644 nvme-stas.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..53377bd --- /dev/null +++ b/_service @@ -0,0 +1,20 @@ + + + git + https://github.com/linux-nvme/nvme-stas.git + nvme-stas + @PARENT_TAG@ + v2.3 + v(\d+.\d+(\.d+)?)(-rc(\d+))? + + \1\2 + enable + + + + + + *.tar + gz + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..08ab041 --- /dev/null +++ b/_servicedata @@ -0,0 +1,6 @@ + + + https://github.com/linux-nvme/nvme-stas.git + fa23cc7930935876e4fb47f8348c58ba22c4be08 + + \ No newline at end of file diff --git a/nvme-stas-2.3.obscpio b/nvme-stas-2.3.obscpio new file mode 100644 index 0000000..4e151d3 --- /dev/null +++ b/nvme-stas-2.3.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:201886087c148e25574ae7c7fd0ac5eed292de5df8f701b183ef0889864608b5 +size 951820 diff --git a/nvme-stas.changes b/nvme-stas.changes new file mode 100644 index 0000000..afb8ac3 --- /dev/null +++ b/nvme-stas.changes @@ -0,0 +1,226 @@ +------------------------------------------------------------------- +Mon Oct 9 14:03:04 UTC 2023 - Martin Wilck + +- Actually update the code from 2.3-rc4 to 2.3 + +------------------------------------------------------------------- +Thu Sep 21 19:04:03 UTC 2023 - Martin Wilck + +- Update to version v2.3 + * Support for NVMe Boot Firmware Table (NBFT) as configuration source + * Optimization of udev handling (bsc#1214078) + * Bug fixes and optimizations + +------------------------------------------------------------------- +Mon Aug 21 13:30:51 UTC 2023 - Martin Wilck + +- Update to version v2.3-rc4: + * Improve algorithm to see if we can reuse existing connections + * udev: Optimize uevent handling + * iputil: Reduce amount of netlink requests to the kernel + * udev: FC/Loop - use case-insensitive comparison for traddr + * trid: Take Host NQN into account + * avahi: add connectivity checker to verify IP addresses are reachable + * stafd|ctrl: Do not recreate ctrl object on nvme removed events + * udev: Rework/simplify _cid_matches_tid() + * udev-rules: Only react to `rediscover` events (not `connected`) + * udev: Use ipaddress objects when comparing traddr. + * udev: Only take src-addr into account for transport=="tcp" + * trid: use strong comparison on host-iface + * udev-rule: Invoke systemctl "restart" instead of "start" + * udev: improve comparison between candidate and existing controllers + * nbft: stafd will now use NBFT data (if found) + * nbft: Add NbftConf() object to retrieve and cache NBFT data + * iputil: Add mac2iface() and corresponding unit test + * ctrl: fix inverted logic "is not None" -> "is None" + * staslib: Add method to retrieve NBFT data + +------------------------------------------------------------------- +Mon Jun 12 10:22:05 UTC 2023 - Martin Wilck + +- Update to version 2.2.2: + + Fix python crash caused by wrong transport identifier handling + (bsc#1211557) + +------------------------------------------------------------------- +Fri Jun 2 16:01:46 UTC 2023 - Martin Wilck + +- Update to version 2.2.1: + * staslib: Fix setting controller DHCHAP key (bsc#1211557) + +------------------------------------------------------------------- +Fri Mar 31 19:42:37 UTC 2023 - Martin Wilck + +- Update to version 2.2: + * add DHCHAP support for in-band authentication (bsc#1208580) + * staslib: Define LIBNVME_VERSION in defs.py + * staslib: Disable udev-rule permanently + * build: Change libnvme dependency from 1.2 to 1.3 + +------------------------------------------------------------------- +Wed Jan 25 19:28:28 UTC 2023 - Martin Wilck + +- Update to version 2.1.2: + * staslib: fix RoCE support (bsc#1207436) + * staslib: Only display unresponsive timer info for "discovered" DCs + * staslib: Fix Connect/Disconnect performed in reserve order + * udev: Set udev event priority to high + * stafd: Bug fix. Default "[Global] persistent-connections=false" + * stafd: Handle unresponsive DCs in _config_ctrls_finish() + * stafd: Fix handling of lost zeroconf-discovered DC + * staslib: Improve name resolution algorithm + * staslib: Add unit (sec) to timeout value in info() output + +------------------------------------------------------------------- +Tue Dec 13 14:38:10 UTC 2022 - mwilck@suse.com + +- Update to version 2.1: + * stafd: Add zeroconf-connections-persistence conf. parameter + * Avahi: Handle upper/lower case 'NQN/nqn' in TXT attribute + (bsc#1205873) + * stafd: Add "origin" parameter to DC controller objects + * staslib: Trim whitespaces at the source (bsc#1204975) + * udev: Throttle EnvironmentError exception messages + * del patch: 0001-meson-disable-subproject.patch (not necessary any more) + +------------------------------------------------------------------- +Mon Nov 21 17:10:55 UTC 2022 - mwilck@suse.com + +- Update to version 2.0 (jsc#PED-2487) + * stafd: Add support for PLEO bit ("Port Local Entries Only", + only with libnvme 1.2 or higher) + * Add support for NCC bit ("Not Connected to CDC") + * "sticky-connections" is replaced by "disconnect-scope+disconnect-trtypes" + * "blacklist" is replaced by "exclude" (but still supported) + * better udev support / coexistence + * support for new kernel "src_addr" attribute + * add patch: 0001-meson-disable-subproject.patch (to fix build in OBS) + +------------------------------------------------------------------- +Tue Nov 15 14:51:56 UTC 2022 - mwilck@suse.com + +- Update to version 1.1.7: + * staslib: Trim white spaces from DLPEs and manual configuration. + (bsc#1204975) + +------------------------------------------------------------------- +Mon Aug 08 20:01:02 UTC 2022 - mwilck@suse.com + +- Update to version 1.1.6: + Bug fix release + * conf: Enable sticky-connections by default + * staslib: check that async operation hasn't been cancelled before proceeding + * stacd: fix I/O controller connection audits + * staslib: add override support + * systemd: add explicit dependency to modprobe@nvme_fabrics.service + +------------------------------------------------------------------- +Mon Jul 04 13:19:16 UTC 2022 - mwilck@suse.com + +- Update to version 1.1.5 (bsc#1200128) + Bug fix release + * udev: fix I/O controller scan & detect algorithm + * stacd: Fix D-Bus race condition between stacd and stafd. + * staslib: fix support for fibre channel + * doc: update README.md + * staslib: fix race conditions during controller object removal. + * stacd: fix defered call to remove_controller() with wrong arguments + * staslib: make sure controller object gets "purged" when removed. + * staslib: calling wrong cback function on controller removal. + * staslib: Fix cback function deleting object that called the cback. + * stacd: audit connections + * stafd, stacd: Add man page to systend service file. + * stacd: Add configuration parameter 'sticky-connections' + * doc: troubleshoot guide for missing mDNS packets + * stacd: allow disabling nvme-cli auto-connect udev rule. +- Added systemd service file (service disabled) +- Spec file: use %python_sitelib rather than %python_sitearch, and install + everything under %{python_sitelib}/staslib + + +------------------------------------------------------------------- +Wed Apr 06 11:07:53 UTC 2022 - Daniel Wagner + +- Update to version v1.0: + * Do not call persistent_set() from libnvme + * dbus: return native dbus data instead of json when possible. + * update documentation + +------------------------------------------------------------------- +Fri Mar 25 11:32:30 UTC 2022 - Daniel Wagner + +- Update to version 1.0-rc5: + * Remove misconfiguration check. (bsc#1197361) + * Document how to increase the number of interfaces that Avahi can monitor. +- Removed python3-netifaces dependency (bsc#1197361) +- Added ahahi dependency +- Do not list files twice (add %dir to directory paths) +- Drop workaround for Python interpreter path fixup. + +------------------------------------------------------------------- +Wed Mar 23 08:23:34 UTC 2022 - Daniel Wagner + +- Update to version 1.0-rc4: + * Check ignore-iface when creating TransportId object + * Adding man pages for ip-family and ignore-iface + * Add ignore-iface and ip-family conf. options + * Update the documentation + * Change default address returned by name resolver + * Filter out invalid IP addresses. (bsc#1197361) + * When reading the Host NQN, warn people if the NQN seems invalid + * Print descriptive message when unable to run stafctl/stacctl + * Use the newly added cntlrtype to check the type of controller + * minor fix to previous change to set the log level on libnvme + * LOG: enable libnvme debug when trace is enabled +- Added python3-netifaces dependency + +------------------------------------------------------------------- +Thu Mar 3 14:19:14 UTC 2022 - Daniel Wagner + +- Correct License information. This project is licenced under + Apache License 2.0. +- Mark sys.conf.doc as config file. + +------------------------------------------------------------------- +Thu Mar 3 13:59:52 UTC 2022 - Dominique Leuenberger + +- Add gobject-introspection BuildRequires: enable typelib + introspection. This allows RPM to add a bunch of autodetected + dependenices by inspecting the python scripts (basedon + python-gobject). + +------------------------------------------------------------------- +Wed Feb 23 16:17:42 UTC 2022 - Daniel Wagner + +- Update to version 1.0-rc2: + * Fis github workflows to pull from upstream libnvme + * TP8010 was merged into upstream libnvme. Some APIs have changed. + This is to update nvme-stas to the new APIs. + * A bunch of mostly cosmetic changes + * Cleaning up a few things. + * Simplifying mDNS configuration and updating documentation. + * Changed DBus rules to only block setting properties + * Restrict the Dbus "deny" rules to only the debug interface. + +------------------------------------------------------------------- +Wed Feb 16 17:36:18 UTC 2022 - Daniel Wagner + +- Update to version 1.0-rc1: + * fix comment + * Perform explicit registration from user-space + * Add known image to docker-compose + * Add docker run/build way to README + * Actions: Disable actions/setup-python + * Actions: Work on incoming branch + * Fixing docker compilation error + * Update docker-publish.yml + * Fix github workflow + * removed unused code + * D-Bus config fixes. + * github workflow actions - fix PYTHONPATH + +------------------------------------------------------------------- +Thu Jan 27 17:28:48 UTC 2022 - Daniel Wagner + +- Initial nvme-stas packaging diff --git a/nvme-stas.obsinfo b/nvme-stas.obsinfo new file mode 100644 index 0000000..ad30067 --- /dev/null +++ b/nvme-stas.obsinfo @@ -0,0 +1,4 @@ +name: nvme-stas +version: 2.3 +mtime: 1695317153 +commit: fa23cc7930935876e4fb47f8348c58ba22c4be08 diff --git a/nvme-stas.spec b/nvme-stas.spec new file mode 100644 index 0000000..e8e2749 --- /dev/null +++ b/nvme-stas.spec @@ -0,0 +1,92 @@ +# +# spec file for package nvme-stas +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: nvme-stas +Version: 2.3 +Release: 0 +Summary: NVMe STorage Appliance Services +License: Apache-2.0 +URL: https://github.com/linux-nvme/nvme-stas +Source0: nvme-stas-%{version}.tar.gz +BuildRequires: gobject-introspection +BuildRequires: libnvme-devel >= 1.3 +BuildRequires: meson >= 0.52.0 +BuildRequires: python3 +BuildRequires: python3-dasbus +BuildRequires: python3-gobject +BuildRequires: python3-libnvme >= 1.3 +BuildRequires: python3-pyudev +BuildRequires: python3-systemd +BuildRequires: systemd-rpm-macros +Requires: avahi +Requires: python3-dasbus +Requires: python3-gobject +Requires: python3-libnvme >= 1.3 +Requires: python3-pyudev +Requires: python3-systemd + +%description +nvme-stas is a Central Discovery Controller (CDC) client for Linux. It +handles Asynchronous Event Notifications (AEN) handling, Automated, +NVMe subsystem connection controls, Error handling and reporting and +Automatic (zeroconf) and Manual configuration. + +%prep +%autosetup -p1 + +%build +%meson +%meson_build + +%install +%meson_install + +%define services stacd.service stafd.service + +%pre +%service_add_pre %services + +%post +%service_add_post %services + +%preun +%service_del_preun %services + +%postun +%service_del_postun %services + +%files +%license LICENSE +%doc README.md +%dir %{_sysconfdir}/stas +%config(noreplace) %{_sysconfdir}/stas/stacd.conf +%config(noreplace) %{_sysconfdir}/stas/stafd.conf +%config(noreplace) %{_sysconfdir}/stas/sys.conf.doc +%{_datadir}/dbus-1/system.d/org.nvmexpress.stac.conf +%{_datadir}/dbus-1/system.d/org.nvmexpress.staf.conf +%{_bindir}/stacctl +%{_bindir}/stafctl +%{_bindir}/stasadm +%{_sbindir}/stacd +%{_sbindir}/stafd +%{_unitdir}/stacd.service +%{_unitdir}/stafd.service +%{python3_sitelib}/staslib +%{_unitdir}/stas* + +%changelog