Compare commits

..

4 Commits
rawhide ... f35

Author SHA1 Message Date
Vojtech Trefny 73786d8bf4 New version 3.4.4
- Use LVM PV format current_size in LVMVolumeGroupDevice._remove
- Correctly set vg_name after adding/removing a PV from a VG
- Do not crash when changing disklabel on disks with active devices
- ActionDestroyDevice should not obsolete ActionRemoveMember
- Correctly set compression and deduplication for existing VDO pools
- Correctly cancel configure actions in cancel()
- Set partition flags after setting parted filesystem (#2033875)
2022-05-16 09:45:55 +02:00
Vojtech Trefny 2753178393 New version 3.4.3
- Make sure we mount the top level subvolume when mounting btrfs (vtrefny)
- README: Fix API documentation link (vtrefny)
- iscsi: Replace all log_exception_info calls with log.info (vtrefny)
2022-02-01 15:25:15 +01:00
Vojtech Trefny 1ee83148af New version 3.4.2
- pylint: Remove pdb breakpoint in device_properties_test (vtrefny)
- pylint: Fix exception string in get_cow_sysfs_path (vtrefny)
- pylint: Remove redundant 'u' prefixes for strings in doc/conf.py (vtrefny)
- pylint: Ignore the "redundant-u-string-prefix" warning in i18n.py (vtrefny)
- pylint: Ignore the new warning W1514 "unspecified-encoding" (vtrefny)
- pylint: Fix multuple unused variables 'e' in exceptions (vtrefny)
- Makefile: Specify weblate repository branch for the potfile target (vtrefny)
- flags: Fix leaking file descriptor (vtrefny)
- README: Add info about our openSUSE/Mageia/OpenMandriva Copr repo (vtrefny)
- Fix checking for LVM VDO support with libblockdev 2.23 and older (vtrefny)
- tasks: Allow specifying custom error message for UnavailableMethod (vtrefny)
- Use setuptools instead of distutils in setup.py (vtrefny)
- Use shutil.which instead of distutils.spawn.find_executable (vtrefny)
- Do not use FS.mount for btrfs temporary mounts (vtrefny)
2021-09-30 13:39:14 +02:00
Vojtech Trefny 72fdac689e New version 3.4.1
- pylint: Ignore deprecation warning about threading.currentThread (vtrefny)
- Fix getting PV info in LVMPhysicalVolume from the cache (vtrefny)
- Fix ActionRemoveMember requires check (#1993655) (vtrefny)
- util: Ignore false positive assignment-from-no-return warning in ObjectID (vtrefny)
- tasks: Ignore pylint arguments-differ warning for do_tasks (vtrefny)
- Remove unused __save_passphrase member from LUKS_Data (vtrefny)
- size: Ignore new pylint warning "arguments-renamed" (vtrefny)
- Do not use deprecated (vtrefny)
- Remove unused member __names from DeviceFactory (vtrefny)
- Improve error message printed for missing dependecies (vtrefny)
- tests: Print version and blivet location when running tests (vtrefny)
- tests: Allow running tests without the tests directory in PYTHONPATH (vtrefny)
- edd_test: Locate the edd_data based on the test file location (vtrefny)
- Run Anaconda tests on blivet pull requests (jkonecny)
- Do not set chunk size for RAID 1 (vtrefny)
- When sorting devices make sure partitions are sorted correctly (vtrefny)
- Make sure LVM config is updated before running pvcreate (vtrefny)
- Tell LVM to ignore the new devices file for now (vtrefny)
- Revert "Use PARTITION_ESP flag for EFIFS partitions (#1930486)" (vtrefny)
- Fix resolving devices with names that look like BIOS drive number (vtrefny)
- Ignore pylint false positive no-member warning (vtrefny)
- Fix util.virt_detect on Xen (vtrefny)
- Fix/unify importing mock module in tests (vtrefny)
- Convert LVM filter lists to sets (vtrefny)
- Remove action device from LVM reject list (vtrefny)
- Fix activating old style LVM snapshots (vtrefny)
- Make sure the device is setup before configuring its format (vtrefny)
- Remove RHEL 9 specific patch from SPEC (vtrefny)
- Use package list instead of cycle in our dependencies Ansible playbook (vtrefny)
- Add vagrant file for running tests and development in a VM (vtrefny)
- Update our playbook for installing test dependencies (vtrefny)
- Add example for working with actions (vtrefny)
- Add LUKS encrypted LV to LVM example (vtrefny)
- Add example for LVM thin provisioning (vtrefny)
- Squashed 'translation-canary/' changes from 3bc2ad68..4d4e65b8 (vtrefny)
2021-08-19 12:23:42 +02:00
8 changed files with 165 additions and 320 deletions

14
.gitignore vendored
View File

@ -143,17 +143,3 @@
/blivet-3.4.3.tar.gz
/blivet-3.4.4-tests.tar.gz
/blivet-3.4.4.tar.gz
/blivet-3.5.0-tests.tar.gz
/blivet-3.5.0.tar.gz
/blivet-3.6.0.tar.gz
/blivet-3.6.0-tests.tar.gz
/blivet-3.6.1-tests.tar.gz
/blivet-3.6.1.tar.gz
/blivet-3.7.0-tests.tar.gz
/blivet-3.7.0.tar.gz
/blivet-3.7.1.tar.gz
/blivet-3.7.1-tests.tar.gz
/blivet-3.8.0-tests.tar.gz
/blivet-3.8.0.tar.gz
/blivet-3.8.1.tar.gz
/blivet-3.8.1-tests.tar.gz

View File

@ -21,8 +21,8 @@ index 14bd5c61..1410d78e 100644
- _REQUESTED_PLUGIN_NAMES = set(("lvm", "btrfs", "swap", "crypto", "loop", "mdraid", "mpath", "dm", "nvdimm"))
+ _REQUESTED_PLUGIN_NAMES = set(("lvm", "swap", "crypto", "loop", "mdraid", "mpath", "dm", "nvdimm"))
# nvme plugin is not generally available
if hasattr(blockdev.Plugin, "NVME"):
_requested_plugins = blockdev.plugin_specs_from_names(_REQUESTED_PLUGIN_NAMES)
try:
--
2.26.2

View File

@ -1,13 +1,31 @@
%define is_rhel 0%{?rhel} != 0
# python3 is not available on RHEL <=7
%if %{is_rhel} && 0%{?rhel} <= 7
# disable python3 by default
%bcond_with python3
%else
%bcond_without python3
%endif
# python2 is not available on RHEL > 7 and not needed on Fedora > 28
%if 0%{?rhel} > 7 || 0%{?fedora} > 28
# disable python2 by default
%bcond_with python2
%else
%bcond_without python2
%endif
Summary: A python module for system storage configuration
Name: python-blivet
Url: https://storageapis.wordpress.com/projects/blivet
Version: 3.8.1
Version: 3.4.4
#%%global prerelease .b2
# prerelease, if defined, should be something like .a1, .b1, .b2.dev1, or .c2
Release: 1%{?prerelease}%{?dist}
Epoch: 1
License: LGPL-2.1-or-later
License: LGPLv2+
%global realname blivet
%global realversion %{version}%{?prerelease}
Source0: http://github.com/storaged-project/blivet/archive/%{realname}-%{realversion}.tar.gz
@ -22,7 +40,7 @@ Patch0: 0001-remove-btrfs-plugin.patch
%global partedver 1.8.1
%global pypartedver 3.10.4
%global utillinuxver 2.15.1
%global libblockdevver 3.0
%global libblockdevver 2.24
%global libbytesizever 0.3
%global pyudevver 0.18
@ -45,6 +63,7 @@ Conflicts: python3-blivet < 1:2.0.0
The %{realname}-data package provides data files required by the %{realname}
python module.
%if %{with python3}
%package -n python3-%{realname}
Summary: A python3 package for examining and modifying storage configuration.
@ -64,16 +83,16 @@ Requires: python3-blockdev >= %{libblockdevver}
Recommends: libblockdev-btrfs >= %{libblockdevver}
Recommends: libblockdev-crypto >= %{libblockdevver}
Recommends: libblockdev-dm >= %{libblockdevver}
Recommends: libblockdev-fs >= %{libblockdevver}
Recommends: libblockdev-kbd >= %{libblockdevver}
Recommends: libblockdev-loop >= %{libblockdevver}
Recommends: libblockdev-lvm >= %{libblockdevver}
Recommends: libblockdev-mdraid >= %{libblockdevver}
Recommends: libblockdev-mpath >= %{libblockdevver}
Recommends: libblockdev-nvdimm >= %{libblockdevver}
Recommends: libblockdev-part >= %{libblockdevver}
Recommends: libblockdev-swap >= %{libblockdevver}
%ifarch s390 s390x
Recommends: libblockdev-s390 >= %{libblockdevver}
%endif
Requires: python3-bytesize >= %{libbytesizever}
Requires: util-linux >= %{utillinuxver}
Requires: lsof
@ -83,19 +102,76 @@ Requires: %{realname}-data = %{epoch}:%{version}-%{release}
Obsoletes: blivet-data < 1:2.0.0
%if %{without python2}
Obsoletes: python2-blivet < 1:2.0.2-2
Obsoletes: python-blivet < 1:2.0.2-2
%else
Obsoletes: python-blivet < 1:2.0.0
%endif
%description -n python3-%{realname}
The python3-%{realname} is a python3 package for examining and modifying storage
configuration.
%endif
%if %{with python2}
%package -n python2-%{realname}
Summary: A python2 package for examining and modifying storage configuration.
%{?python_provide:%python_provide python2-%{realname}}
BuildRequires: gettext
BuildRequires: python2-devel
BuildRequires: python2-setuptools
Requires: python2
Requires: python2-six
Requires: python2-pyudev >= %{pyudevver}
Requires: parted >= %{partedver}
Requires: python2-pyparted >= %{pypartedver}
Requires: python2-libselinux
Requires: python2-blockdev >= %{libblockdevver}
Recommends: libblockdev-btrfs >= %{libblockdevver}
Recommends: libblockdev-crypto >= %{libblockdevver}
Recommends: libblockdev-dm >= %{libblockdevver}
Recommends: libblockdev-fs >= %{libblockdevver}
Recommends: libblockdev-kbd >= %{libblockdevver}
Recommends: libblockdev-loop >= %{libblockdevver}
Recommends: libblockdev-lvm >= %{libblockdevver}
Recommends: libblockdev-mdraid >= %{libblockdevver}
Recommends: libblockdev-mpath >= %{libblockdevver}
Recommends: libblockdev-nvdimm >= %{libblockdevver}
Recommends: libblockdev-part >= %{libblockdevver}
Recommends: libblockdev-swap >= %{libblockdevver}
Recommends: libblockdev-s390 >= %{libblockdevver}
Requires: python2-bytesize >= %{libbytesizever}
Requires: util-linux >= %{utillinuxver}
Requires: lsof
Requires: python2-hawkey
Requires: %{realname}-data = %{epoch}:%{version}-%{release}
Requires: systemd-udev
Requires: python2-gobject-base
Obsoletes: blivet-data < 1:2.0.0
Obsoletes: python-blivet < 1:2.0.0
%description -n python2-%{realname}
The python2-%{realname} is a python2 package for examining and modifying storage
configuration.
%endif
%prep
%autosetup -n %{realname}-%{realversion} -N
%autosetup -n %{realname}-%{realversion} -b1 -p1
%build
make
%{?with_python2:make PYTHON=%{__python2}}
%{?with_python3:make PYTHON=%{__python3}}
%install
make DESTDIR=%{buildroot} install
%{?with_python2:make PYTHON=%{__python2} DESTDIR=%{buildroot} install}
%{?with_python3:make PYTHON=%{__python3} DESTDIR=%{buildroot} install}
%find_lang %{realname}
@ -105,299 +181,21 @@ make DESTDIR=%{buildroot} install
%{_libexecdir}/*
%{_unitdir}/*
%if %{with python2}
%files -n python2-%{realname}
%license COPYING
%doc README.md ChangeLog examples
%{python2_sitelib}/*
%endif
%if %{with python3}
%files -n python3-%{realname}
%license COPYING
%doc README.md ChangeLog examples
%{python3_sitelib}/*
%endif
%changelog
* Thu Aug 03 2023 Vojtech Trefny <vtrefny@redhat.com> - 3.8.1-1
- Ignore new false positives with the latest pylint (vtrefny)
- iscsi: Rename storaged to udisks (tbzatek)
- iscsi: Rework UDisks iscsi module activation (tbzatek)
- iscsi: Make sure to modprobe iscsi_ibft (tbzatek)
- iscsi: Downgrade default CHAP auth algs to SHA1,MD5 (tbzatek)
- iscsi: Save firmware initiator name to /etc/iscsi/initiatorname.iscsi (vtrefny)
- spec: Bump release to 99 to be always ahead of Fedora in nightly (vtrefny)
- tests: Improve iscsi_test.ISCSITestCase (vtrefny)
- Make sure that LUKS.has_key always returns a boolean value (vtrefny)
- Squashed 'translation-canary/' changes from d6a40985..5bb81253 (vtrefny)
- Add btrfs subvolume specification to devicetree.resolve_device (vtrefny)
- Revert "Makefile cleanup" (vtrefny)
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.8.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 1:3.8.0-2
- Rebuilt for Python 3.12
* Thu Jun 29 2023 Vojtech Trefny <vtrefny@redhat.com> - 3.8.0-1
- Revert "Makefile cleanup" (blivet-ci)
- Require libblockdev 3.0 when importing from GI (vtrefny)
- spec: Bump required version of libblockdev to 3.0 (vtrefny)
- md: Adapt libblockdev 3.0 mdraid bitmap arg changes (tbzatek)
- spec: Bump release to 99 to be always ahead of Fedora in nightly (vtrefny)
- ci: Run GH actions tests in a Fedora container (vtrefny)
- Add new LUKS tests for add/remove key and key file usage (vtrefny)
- Adjust to the new libblockdev 3.0 crypto API (vtrefny)
- Adjust to libblockdev 3.0 API changes (vtrefny)
- blivet: Enable the extended node bitmap for F2FS (akoskovich)
- Remove all state-dependent objects when resetting Blivet DBus object. (dlehman)
- Run callbacks when pruning actions. (dlehman)
- Always prefer GPT disk labels on x86_64 (and clean up the logic) (awilliam)
- Do not add new PVs to the LVM devices file if it doesn't exist and VGs are present (vtrefny)
- Add RISCV64 architecture helper [is_riscv64()] for arch module. (48907457+nirousseau)
- iscsi: Extend allowed CHAP auth algorithms (tbzatek)
- Fix checking FIPS mode when /proc/sys/crypto/fips_enabled doesn't exist (vtrefny)
- Fix creating LUKS1 on disks with mixed sector size (#2188785) (vtrefny)
- Do not set memory limit for LUKS2 when running in FIPS mode (vtrefny)
- Revert "tests: Skip test_lvcreate_type on CentOS/RHEL 9" (vtrefny)
- DBus: remove extra callback invocations (dlehman)
- Add a test case for filesystem online resize (vtrefny)
- Add support for filesystem online resize (vtrefny)
- iscsi: Use UDisks instead of storaged in the availability message (vtrefny)
- tests: Fix skipping iSCSI tests if UDisks iSCSI isn't available (vtrefny)
- Add ChangeLog to .gitignore (vtrefny)
- Makefile cleanup (vtrefny)
- ci: Use Packit for daily builds in Copr (vtrefny)
- Avoid raising libblockdev exceptions from our code (vtrefny)
- ci: Fix Packit configuration (vtrefny)
- Add support for specifying stripe size for RAID LVs (vtrefny)
- tests: Use blivet-specific prefix for targetcli backing files (vtrefny)
- Add a basic test case for the iscsi module (vtrefny)
- Allow changing iSCSI initiator name after setting it (vtrefny)
- Prefer UUID for fstab spec for DM devices too (vtrefny)
- Remove support for Python 2 from spec and Makefile (vtrefny)
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1:3.7.1-5
- Rebuilt for Python 3.12
* Wed May 31 2023 Vojtech Trefny <@trefny@redhat.com> - 3.7.1-4
- Always prefer GPT disk labels on x86_64
* Tue May 23 2023 Vojtech Trefny <vtrefny@redhat.com> - 3.7.1-3
- Add support for filesystem online resize
* Thu May 04 2023 Vojtech Trefny <vtrefny@redhat.com> - 3.7.1-2
- Add support for specifying stripe size for RAID LVs
* Thu Mar 16 2023 Vojtech Trefny <vtrefny@redhat.com> - 3.7.1-1
- Fix the get_mount_device function (vponcova)
- Prefer using UUID for the kickstart --onpart argument (vtrefny)
- Fix setting kickstart data (vtrefny)
- pylint: Remove the "EXCEPTIONS" section from pylintrc (vtrefny)
- Add "microsoft" to list of recognized VM environments (vtrefny)
- ci: Add action to run unit tests in GH actions (vtrefny)
- tests: Make sure that unit tests can run without root privileges (vtrefny)
- doc: Link to the LVM VDO documentation from the index page (vtrefny)
- Ignore missing parted disk in ActionList._post_process (#2102960) (vtrefny)
* Wed Feb 08 2023 Vojtech Trefny <vtrefny@redhat.com> - 3.7.0-1
- Remove unused BLOCKDEV_DM_RAID technology from tasks (vtrefny)
- tests: Force remove LVM VG /dev/ entry not removed by vgremove (vtrefny)
- Mark LUKS2 integrity devices as always controllable (vtrefny)
- Ignore parent dependencies during action execute (vtrefny)
- tests: Patch checking stratis pool metadata size (vtrefny)
- Remove support for DMRAID devices (vtrefny)
- Do not read DDF RAID UUID from udev (vtrefny)
- Check physical and logical block size when creating a LUKS format (vtrefny)
- Add separate properties for logical and physical block size (vtrefny)
- Use DMI product_name for t2 mac detection. (83884198+sharpenedblade)
- vmtests: add a --logs arg to capture blivet.log from failed tests (berrange)
- examples: illustrate GPT GUID usage in partitioning example (berrange)
- vmtests: add test for GPT part type UUID validation (berrange)
- blivet: allow 'mountpoint' to be passed to PartitionDevice (berrange)
- deviceaction: retain explicit part type UUID when formatting (berrange)
- devices/partition: add ability to auto apply a GPT UUID (berrange)
- gpt: add helper API for discoverable partition UUIDs (berrange)
- devices/partition: allow passing partition type UUID (berrange)
- formats/disklabel: allow passing partition type UUID (berrange)
- Add a forced delay to udev settle in chroot environments (vlad.bespalov)
- Update public API documentation (vtrefny)
- tests/README: Clarify various test classes (vtrefny)
- Rename unit_tests.storagetestcase to unit_tests.blivettestcase (vtrefny)
- Add additional identifiers to NVMeNamespaceDevice (vtrefny)
- Add transport and address to NVMeController info (vtrefny)
- Make sure we close the streams when reading a file (vtrefny)
- Style changes. (sharpenedblade)
- Do not report mactel on T2 macs. (sharpenedblade)
- Add function to check for T2 apple macs. (sharpenedblade)
- Add a basic read-only support for UDF filesystem (vtrefny)
- add loongarch support (mahailiang)
- Add a basic support for NVMe and NVMe Fabrics devices (vtrefny)
* Thu Feb 02 2023 Vojtech Trefny <vtrefny@redhat.com> - 3.6.1-3
- Use mdadm to support BIOS RAID devices (#2158574)
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Nov 28 2022 Vojtech Trefny <vtrefny@redhat.com> - 3.6.1-1
- misc: Remove "warn: false" from Ansible "command" (vtrefny)
- spec: Change license string to the SPDX format required by Fedora (vtrefny)
- Catch BlockDevNotImplementedError for btrfs plugin calls (vtrefny)
- tests: document how to use the VM tests (berrange)
- tests: allow filtering tests to run in VM (berrange)
- tests: don't start/stop VM if it was already running (berrange)
- tests: use correct password arg for SSH to VM (berrange)
- tests: add logging to runvmtests.py (berrange)
- Fix potential AttributeError when getting stratis blockdev info (vtrefny)
- spec: Fix recommended libblockdev plugins (vtrefny)
- tests: remove unused global variables (berrange)
- Backport total_memory improvements from anaconda (vslavik)
- Fix regex for checking e2fsprogs version (vtrefny)
* Fri Nov 11 2022 Vojtech Trefny <vtrefny@redhat.com> - 3.6.0-2
- Change license string to the SPDX format required by Fedora
* Tue Sep 20 2022 Vojtech Trefny <vtrefny@redhat.com> - 3.6.0-1
- pylint: Explicitly allow loading the _ped module from pyparted (vtrefny)
- ci: Run static analysis on Ubuntu 22.04 (vtrefny)
- tests: Create bigger devices for XFS testing (vtrefny)
- Set XFS minimal size to 300 MiB (vtrefny)
- Fix missing whitespaces around not keyword (vtrefny)
- Remove the Blivet.roots attribute (vponcova)
- packit: Set downstream_package_name to python-blivet (vtrefny)
- packit: Add srpm_build_deps for SRPM builds in Copr (vtrefny)
- tests: Fix message when skipping stratis tests (vtrefny)
- tests: Tell pytest to ignore symlinks when gathering test cases (vtrefny)
- Configure ids for Mock devices in populator_test (vtrefny)
- Add storage tests for Stratis (vtrefny)
- ci: Fix installing targetcli on Debian/Ubuntu (vtrefny)
- tests: Add test for creating and attaching cache pools (vtrefny)
- tests: Add storage tests for more LVM RAID levels (vtrefny)
- tests: Add test for ActionAddMember/ActionRemoveMember (vtrefny)
- tests: Add a test for creating and attaching a cache pool (vtrefny)
- Mark LVM cache pool format as immutable (vtrefny)
- tests: Skip test_lvcreate_type on CentOS/RHEL 9 (vtrefny)
- Add a YAML config for skipping tests on specified distributions (vtrefny)
- Add targetcli to the test dependencies playbook (vtrefny)
- Add a simple LVM test case that uses real storage (vtrefny)
- Add a test case that creates targetcli disks to run tests on (vtrefny)
- Allow running action_test even if some dependencies are missing (vtrefny)
- Use "fake" names for disks in DeviceTreeTestCase (vtrefny)
- Change how we import LoopBackedTestCase in fs_test (vtrefny)
- Add information about the new test suites to tests/README.rst (vtrefny)
- Makefile: Add targets to run the two new test suites separately (vtrefny)
- Fix typo in name of test_new_encrypted_stratis (vtrefny)
- Patch access to lvs in stratis tests (vtrefny)
- Fix pylint issues in the tests/pylint scripts (vtrefny)
- Make sure LVM unit tests can run without dependencies (vtrefny)
- Patch _pre_create in StorageDeviceMethodsTestCase.test_create (vtrefny)
- Assure that tests that set LVM devices filter can run without root (vtrefny)
- Fix running StratisFactoryTestCase as a non-root user (vtrefny)
- Split the test suite into "unit" and "storage" tests (vtrefny)
- Add support for attaching and creating LVM writecached LVs (vtrefny)
- Add support for enabling/disabling compression/deduplication (vtrefny)
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Jul 19 2022 Vojtech Trefny <vtrefny@redhat.com> - 3.5.0-1
- tests: Fix patching NVDIMM static data in populator_test (vtrefny)
- Ignore pylint false positives about missing methods in Gio and GLib (vtrefny)
- Ignore pylint warning about missing inspect.getargspec (vtrefny)
- Rename class ZFCPDevice to ZFCPDeviceFullPath (jstodola)
- Move _is_associated_with_fcp() implementation to the derived class (jstodola)
- Improve naming of zfcp classes/methods/functions (jstodola)
- Correct zfcp comments and strings (jstodola)
- Fix checking for stratis pool free space when adding a new filesystem (vtrefny)
- tests: Add a VM test case for Stratis (vtrefny)
- Use libblockdev to check for DBus service availability (vtrefny)
- Allow specifying size for stratis filesystems (vtrefny)
- tests: Skip Stratis DeviceFactory tests if missing dependencies (vtrefny)
- Use availability checks in devicelibs.stratis (vtrefny)
- Add external dependencies for Stratis devices classes (vtrefny)
- Add availability checks for Stratis dependencies (vtrefny)
- availability: Add a method to check for DBus service availability (vtrefny)
- Use the new Stratis tool to predict pool and fs used size (vtrefny)
- misc: Vagrantfile update (vtrefny)
- Add CentOS 9 Stream to the install-test-dependencies playbook (vtrefny)
- ci: Run static analysis checks in GitHub actions (vtrefny)
- doc: Add LVMWriteCache and LVMCachePoolMixin to public API (vtrefny)
- pylint: Remove deprecated pylint warnings from pylintrc and code (vtrefny)
- Add option to attach a newly created cache pool to existing LV (vtrefny)
- Add support for LVM RAID raid0 level (vtrefny)
- Do not fail when we can't get LVM cache information (#2086310) (vtrefny)
- Add a very simple NVMe module (vtrefny)
- Do not check for "problematic" disks in ActionList._pre_process (vtrefny)
- Change label_format_ok and uuid_format_ok to class methods (vtrefny)
- Generate correct dracut boot arguments for NPIV devices (jstodola)
- Add new class for NPIV-enabled devices (jstodola)
- LUN and WWPN should not be used for NPIV zFCP devices (jstodola)
- Add a function for reading the value of a kernel module parameter (jstodola)
- Allow to delete more than one SCSI device (jstodola)
- Move offline_scsi_device() to the base class (jstodola)
- Refactor the ZFCPDevice class (jstodola)
- misc: Vagrantfile update (vtrefny)
- Do not crash when a disk populator doesn't return kwargs (vtrefny)
- Disable Fedora ELN builds in packit (vtrefny)
- Fix raising exception when trying to resize internal LVs (vtrefny)
- Create loop devices for tests with --partscan (vtrefny)
- Make sure configure actions obsolete only actions with same attribute (vtrefny)
- Fix exception message when trying to format an non-existing device (vtrefny)
- Add default arguments for mkntfs (vtrefny)
- Mark NTFS as supported (vtrefny)
- Do no try to read cache MD size for inactive LVs from cache stats (vtrefny)
- Show better error when using unitialized disk in do_partitioning (vtrefny)
- Exclude unusable disks from PartitionFactory (vtrefny)
- Mark StratisXFS format as unsupported (vtrefny)
- Adjust to Stratis 3.0 API (vtrefny)
- lvm: Use blivet static data when checking if the VG is active (vtrefny)
- examples: Add LVM cache pool example (vtrefny)
- Add suport for creating LVM cache pools (vtrefny)
- Do not run pvcreate with --devices and list of PVs (vtrefny)
- Fix object type for ActionConfigureDevice (vtrefny)
- Use subvolume mountpoints when listing btrfs subvolumes (vtrefny)
- Squashed 'translation-canary/' changes from 4d4e65b8..d6a40985 (vtrefny)
- Fix log message for the LVM devices filter (vtrefny)
- Add support for creating standalone integrity devices (vtrefny)
- Use bigger chunk size for thinpools bigger than ~15.88 TiB (vtrefny)
- Fix removing zFCP SCSI devices (jstodola)
- Add public functions to add/remove PV to/from the LVM system.devices (vtrefny)
- Ignore errors for LVM devices file actions (vtrefny)
- Make sure PVs are added/deleted to/from the LVM device file (vtrefny)
- Use LVM devices for filtering LVM devices with LVM >= 2.02.13 (vtrefny)
- Switch LVM devices filter from "reject" to "accept" by default (vtrefny)
- tests: Mark "fake" disks in test_get_related_disks as non-existing (vtrefny)
- Set correct map name for existing LUKS devices (vtrefny)
- Do not raise deprecated IOError from iscsi and fcoe modules (vtrefny)
- Remove unused flag multipath (vtrefny)
- Do not add device name as a parameter for errors.DeviceError (vtrefny)
- Add stratis filesystem metadata size and pool free space (vtrefny)
- Fix parameters differ from overridden in StratisPoolDevice (vtrefny)
- Fix/unify importing mock module in stratis tests (vtrefny)
- Add fstab options for Stratis Filesystem devices (vtrefny)
- Add MountClass for StratisXFS filesystem (vtrefny)
- Add Stratis devices and formats to the public API documentation (vtrefny)
- Hide the private LUKS device for unlockded Stratis pools (vtrefny)
- Add property with list of Stratis block devices to StratisPoolDevice (vtrefny)
- Set pool info on the block devices when adding/removing Stratis pool (vtrefny)
- Set the StratisBlockdev format status based on whether it has a pool or not (vtrefny)
- Add more tests for creating Stratis devices (vtrefny)
- Add support for creating encrypted Stratis devices with DeviceFactory (vtrefny)
- Add support for working with locked Stratis pools (vtrefny)
- Add support for creating encrypted Stratis pools (vtrefny)
- Add Stratis device factory (vtrefny)
- Mark format on Stratis pool devices as immutable (vtrefny)
- Add Stratis example (vtrefny)
- Add simple test case for Stratis (vtrefny)
- Add basic support for creating Stratis devices (vtrefny)
- Add a special "XFS Stratis" filesystem for Stratis filesystem devices (vtrefny)
- Avoid circular depency when in static_data/stratis_info.py (vtrefny)
- Add dracut setup args for Stratis devices (vtrefny)
- Add support for removing Stratis devices using DBus API (vtrefny)
- Add basic support for Stratis devices (vtrefny)
- Ignore all "private" devices during populate (vtrefny)
- safe_dbus: Add function to get all properties for an interface (vtrefny)
- Add support for renaming devices using ActionConfigureDevice (vtrefny)
* Mon Jun 20 2022 Vojtech Trefny <vtrefny@redhat.com> - 3.4.4-3
- Add support for NPIV-enabled zFCP devices
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1:3.4.4-2
- Rebuilt for Python 3.11
* Mon May 16 2022 Vojtech Trefny <vtrefny@redhat.com> - 3.4.4-1
- Use LVM PV format current_size in LVMVolumeGroupDevice._remove (vtrefny)
- Correctly set vg_name after adding/removing a PV from a VG (vtrefny)
@ -407,17 +205,11 @@ make DESTDIR=%{buildroot} install
- Correctly cancel configure actions in cancel() (vtrefny)
- Set partition flags after setting parted filesystem (#2033875) (vtrefny)
* Tue Feb 15 2022 Jan Pokorny <japokorn@redhat.com> - 3.4.3-2
- Set partition flags after setting parted filesystem (#2033875) (vtrefny)
* Tue Feb 01 2022 Vojtech Trefny <vtrefny@redhat.com> - 3.4.3-1
- Make sure we mount the top level subvolume when mounting btrfs (vtrefny)
- README: Fix API documentation link (vtrefny)
- iscsi: Replace all log_exception_info calls with log.info (vtrefny)
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.4.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Sep 30 2021 Vojtech Trefny <vtrefny@redhat.com> - 3.4.2-1
- pylint: Remove pdb breakpoint in device_properties_test (vtrefny)
- pylint: Fix exception string in get_cow_sysfs_path (vtrefny)

View File

@ -1,2 +1,2 @@
SHA512 (blivet-3.8.1.tar.gz) = ada376aee554f953334008eb491a16f8577eebb811d284a185ce2efadad87f2fcf9cc0f76eefca85b5f36e70b18463e6d42910d90e2d35537b4405be85dbf18f
SHA512 (blivet-3.8.1-tests.tar.gz) = 5a13bcf00db17cb33f5c33419ab8fcdf89286462c8a8a0919cfa5c40180b28896a7e4191b122917f55b48dfa2ea23358cc6b6a69ad666ba0bbdae01d0e51014a
SHA512 (blivet-3.4.4-tests.tar.gz) = cb73d3a9361275d3f9a09b8dd3f93f89f9fe1400e7a4eeabe91853329e774491a4371e5b653bce48e49ed8dd0708a51f22890e98adbfb92a57d72eb598dd84b8
SHA512 (blivet-3.4.4.tar.gz) = 3a1e4fd6d5f5ca7386adc8af81c54f2098acefa70ff4d05be4bd293bab6aee8732cb365e272f07c6d19da7c756728981b1f2cfbee77ce6fc2ade6707808e51ee

1
tests/.fmf/version Normal file
View File

@ -0,0 +1 @@
1

42
tests/lvm_factory.py Normal file
View File

@ -0,0 +1,42 @@
#!/usr/bin/python3
import argparse
import sys
import blivet
POOL_NAME = "blivet_test"
parser = argparse.ArgumentParser()
parser.add_argument('-d', '--disks', default='')
args = parser.parse_args()
b = blivet.Blivet()
b.reset()
disks = list()
for disk_id in args.disks.split(','):
disk = b.devicetree.resolve_device(disk_id)
if not disk.is_disk:
sys.stderr.write("specified disk '%s' is not a disk\n" % disk_id)
sys.exit(1)
disks.append(disk)
b.initialize_disk(disk)
if len(disks) > 1:
container_raid_level = "raid1"
total_size = min(d.size for d in disks)
else:
container_raid_level = None
total_size = sum(d.size for d in disks)
lv1 = b.factory_device(size=total_size*0.8, disks=disks,
name="lv1", container_name=POOL_NAME,
fstype='xfs', device_type=blivet.devicefactory.DEVICE_TYPE_LVM)
lv2 = b.factory_device(disks=disks, name="lv2",
container_name=POOL_NAME, container_raid_level='raid1',
fstype='ext4', device_type=blivet.devicefactory.DEVICE_TYPE_LVM)
b.do_it()

8
tests/provision.fmf Normal file
View File

@ -0,0 +1,8 @@
---
standard-inventory-qcow2:
qemu:
m: 1G
drive:
- size: 10737418240
- size: 10737418240

16
tests/tests.yml Normal file
View File

@ -0,0 +1,16 @@
---
- hosts: all
roles:
- role: standard-test-basic
tags:
- classic
tests:
- list-devices-1:
dir: .
run: python3 /usr/share/doc/python3-blivet/examples/list_devices.py
- lvm-factory:
dir: .
run: python3 ./lvm_factory.py --disks=vdb,vdc
- list-devices-2:
dir: .
run: python3 /usr/share/doc/python3-blivet/examples/list_devices.py