0e401f2
Summary:  A python module for system storage configuration
0e401f2
Name: python-blivet
0e401f2
Url: http://fedoraproject.org/wiki/blivet
a496617
Version: 0.20
012fef3
Release: 1%{?dist}
e0d4a28
License: LGPLv2+
0e401f2
Group: System Environment/Libraries
0e401f2
%define realname blivet
012fef3
Source0: http://git.fedorahosted.org/cgit/blivet.git/snapshot/%{realname}-%{version}.tar.gz
0e401f2
0e401f2
# Versions of required components (done so we make sure the buildrequires
0e401f2
# match the requires versions of things).
0e401f2
%define dmver 1.02.17-6
0e401f2
%define pykickstartver 1.99.22
0e401f2
%define partedver 1.8.1
0e401f2
%define pypartedver 2.5-2
0e401f2
%define pythonpyblockver 0.45
0e401f2
%define e2fsver 1.41.0
0e401f2
%define pythoncryptsetupver 0.1.1
0e401f2
%define utillinuxver 2.15.1
0e401f2
0e401f2
BuildArch: noarch
0e401f2
BuildRequires: gettext
0e401f2
BuildRequires: python-setuptools-devel
0e401f2
0e401f2
Requires: python
0e401f2
Requires: pykickstart >= %{pykickstartver}
0e401f2
Requires: util-linux >= %{utillinuxver}
0e401f2
Requires: parted >= %{partedver}
0e401f2
Requires: pyparted >= %{pypartedver}
0e401f2
Requires: device-mapper >= %{dmver}
0e401f2
Requires: cryptsetup-luks
0e401f2
Requires: python-cryptsetup >= %{pythoncryptsetupver}
0e401f2
Requires: mdadm
0e401f2
Requires: lvm2
0e401f2
Requires: dosfstools
0e401f2
Requires: e2fsprogs >= %{e2fsver}
0e401f2
Requires: btrfs-progs
0e401f2
Requires: python-pyblock >= %{pythonpyblockver}
0e401f2
Requires: device-mapper-multipath
1b94db8
Requires: lsof
0e401f2
0e401f2
%description
0e401f2
The python-blivet package is a python module for examining and modifying
0e401f2
storage configuration.
0e401f2
0e401f2
%prep
0e401f2
%setup -q -n %{realname}-%{version}
0e401f2
0e401f2
%build
0e401f2
make
0e401f2
0e401f2
%install
0e401f2
rm -rf %{buildroot}
0e401f2
make DESTDIR=%{buildroot} install
0e401f2
%find_lang %{realname}
0e401f2
0e401f2
%files -f %{realname}.lang
0e401f2
%defattr(-,root,root,-)
49a4ddb
%doc README ChangeLog COPYING examples
0e401f2
%{python_sitelib}/*
0e401f2
0e401f2
%changelog
a496617
* Fri Aug 23 2013 Brian C. Lane <bcl@redhat.com> - 0.20-1
a496617
- Fix typo in examples/list_devices.py (dlehman)
a496617
- Use iscsi-iname instead of trying to reimplemnt it in python. (dlehman)
a496617
- Catch exceptions raised while finding old installations. (#981991) (dlehman)
a496617
- Keep the dasd list in sync with the devicetree's device list. (#965694) (dlehman)
a496617
- Don't save luks keys unless installer_mode flag is set. (#996118) (dlehman)
a496617
- Pass mount options to resolveDevice in _parseOneLine (#950206) (vpodzime)
a496617
- Fix handling of devices in detected installations in Blivet.copy. (dlehman)
a496617
- Clean up detection of lvm raid. (dlehman)
a496617
- Tag the first build of each version without the release. (dlehman)
a496617
- Remove dangling code block from commit 737169b75af1. (dlehman)
a496617
45c9439
* Wed Jul 31 2013 Brian C. Lane <bcl@redhat.com> - 0.19-1
45c9439
- Don't waste time looking for devices dependent on leaf devices. (dlehman)
45c9439
- Add some example code for creation of disk partitions. (dlehman)
45c9439
- Don't manipulate partition boot flags except in installer mode. (dlehman)
45c9439
- Add an example of DeviceFactory usage. (dlehman)
45c9439
- Cosmetic changes for the arch module (vpodzime)
45c9439
- No more sparc support (vpodzime)
45c9439
- Cleanup arch.py reredux (hamzy)
45c9439
- Allow explicit requests for extended partitions. (#891861) (dlehman)
45c9439
- Fix disklabel handling for multiple calls to processActions. (dlehman)
45c9439
- Add support for explicit start/end sectors in partition requests. (#881025) (dlehman)
45c9439
- Store current mount options in getActiveMounts. (#914898) (dlehman)
45c9439
- Lack of formatting does not preclude device resize. (dlehman)
45c9439
- Handle negative sizes correctly. (dlehman)
45c9439
- Fix handling of clearpart type linux in shouldClear. (dlehman)
45c9439
- Add some tests for clearpart and related functionality. (dlehman)
45c9439
- Update unit tests and add a make target to run them. (dlehman)
45c9439
- Don't pass dracut args for lvm thin pools. (dlehman)
45c9439
- Update the TODO list. (dlehman)
45c9439
- Fix a copy/paste error. (dlehman)
45c9439
- Remove transifex-client BuildRequires. (dlehman)
45c9439
1afbdd3
* Tue Jul 09 2013 Brian C. Lane <bcl@redhat.com> - 0.18-1
1afbdd3
- Raise XFS max size limit to 100TB. (sbueno+anaconda)
1afbdd3
- Add a device factory class for thinly-provisioned lvm. (dlehman)
1afbdd3
- Add support for automatic partitioning using lvm thin provisioning. (dlehman)
1afbdd3
- Add convenience methods related to lvm thin provisioning. (dlehman)
1afbdd3
- Add support for detection of lvm thinp setups. (dlehman)
1afbdd3
- Add classes for lvm thin pool and thin volume. (dlehman)
1afbdd3
- Add backend support for lvm thinp operations. (dlehman)
1afbdd3
- Fix return value of get_pv_space for size of 0. (dlehman)
1afbdd3
- Fix ksdata for lvm created in custom spoke based on autopart. (dlehman)
1afbdd3
- Only put max size in ksdata if partition is growable. (dlehman)
1afbdd3
- Allow subclasses to inherit ksdata classes. (dlehman)
1afbdd3
ca08a3d
* Mon Jun 24 2013 Brian C. Lane <bcl@redhat.com> - 0.17-1
ca08a3d
- Used Python type instead of variable name (#968122) (hamzy)
ca08a3d
- Fix detection of valid EFI system partition during autopart. (dlehman)
ca08a3d
- New version: 0.16 (bcl)
ca08a3d
1b94db8
* Thu Jun 13 2013 Brian C. Lane <bcl@redhat.com> - 0.16-1
1b94db8
- Install utilities for all devices -- not just those being used. (#964586) (dlehman)
1b94db8
- Add a method to apply Blivet settings to ksdata. (dlehman)
1b94db8
- Increase padding for md metadata in lvm factory. (#966795) (dlehman)
1b94db8
- Move lvm-on-md into LVMFactory. (dlehman)
1b94db8
- Switch to a minimum of four members for raid10. (#888879) (dlehman)
1b94db8
- Update the TODO list. (dlehman)
1b94db8
- Deactivate devices before hiding those on ignored disks. (#965213) (dlehman)
1b94db8
- Allow udev queue to settle after writing zeros to disk. (#969182) (hamzy)
1b94db8
- Run lsof when umount fails (bcl)
1b94db8
- Run udev settle before umount (bcl)
1b94db8
e0d4a28
* Mon Jun 03 2013 Brian C. Lane <bcl@redhat.com> - 0.15-1
e0d4a28
- Switch to the LGPLv2+. (dlehman)
e0d4a28
- Clear md arrays' sysfs path after deactivating them. (#954062) (dlehman)
e0d4a28
- Factories with existing containers use the container's disk set. (dlehman)
e0d4a28
- Don't set up a child factory if the container is set and exists. (dlehman)
e0d4a28
- Set a non-zero size for new btrfs subvols in an existing volume. (dlehman)
e0d4a28
- Open as many luks devs as possible with any given passphrase. (#965754) (dlehman)
e0d4a28
- Make sure container changes worked before applying device changes. (#965805) (dlehman)
e0d4a28
- Re-initialize platform in storageInitialize (#962104) (bcl)
e0d4a28
- Make a copy of devicetree._devices before using the append operator. (clumens)
e0d4a28
- Handle incomplete devices becoming complete on device rescan. (clumens)
e0d4a28
- Don't allow a device to be on the hidden list more than once. (clumens)
e0d4a28
1ee8392
* Wed May 15 2013 David Lehman <dlehman@redhat.com> - 0.14-1
1ee8392
- total_memory calculation needs to round up (#962231) (bcl)
1ee8392
- The dev.node attribute for iscsi devices is not copyable (#962865). (clumens)
1ee8392
- Wipe partitions before they are created (#950145) (bcl)
1ee8392
- Pass ROOT_PATH as an argument instead of importing it. (clumens)
1ee8392
- If no iscsi nodes are discovered, return an empty list instead of None. (clumens)
1ee8392
b19484f
* Thu May 09 2013 Brian C. Lane <bcl@redhat.com> - 0.13-1
b19484f
- Make sure createBitmap is updated when level changes (#960271) (bcl)
b19484f
- Update biosboot error message (#960691) (bcl)
b19484f
f98fc73
* Fri May 03 2013 David Lehman <dlehman@redhat.com> - 0.12-1
f98fc73
- Fix a bug in renaming lvm lvs. (dlehman)
f98fc73
- Add container size policies for unlimited growth and fixed size. (dlehman)
f98fc73
- Remove device factory methods to change container name. (dlehman)
f98fc73
- Override any default subvol when mounting main btrfs volume. (#921757) (dlehman)
f98fc73
- Fix detection of multipath. (#955664) (dlehman)
f98fc73
- When a btrfs subvol's name is changed, change its subvol argument too. (clumens)
f98fc73
- Allow returning hidden disks from the getDeviceBy* methods, if asked. (clumens)
f98fc73
- Fix fipvlan -f argument once more and for good (#836321) (rvykydal)
f98fc73
- Remove the intf parameters from the iscsi class. (clumens)
f98fc73
- Don't relly on /proc/mdstat when enumeraing RAID levels. (jsafrane)
f98fc73
- Set product names in non-installer mode. (jsafrane)
f98fc73
- Fixed checking status of MD RAID which was just deleted. (jsafrane)
f98fc73
- Account for the fact that md's metadata usage is unpredictable. (dlehman)
f98fc73
- Remove members from their containers before destroying them. (dlehman)
f98fc73
- Make get_container work even if there are duplicate names. (dlehman)
f98fc73
- LVMFactory with a container_raid_level means use LVMOnMDFactory. (dlehman)
f98fc73
- Add a check for enough raid members after allocating partitions. (dlehman)
f98fc73
- Make parent_factory an attribute of the DeviceFactory instance. (dlehman)
f98fc73
- All container settings use container_ kwargs. (dlehman)
f98fc73
- Add ability to find raid level of an lvm vg. (dlehman)
f98fc73
- Always pass -f to wipefs since it lies about in-use devices. (#953329) (dlehman)
f98fc73
- Fix a bug extended partition management. (#951765) (dlehman)
f98fc73
- Don't return incomplete devices from getDeviceByFoo methods by default. (dlehman)
f98fc73
- Don't traceback when degraded md raid arrays are present. (#953184) (dlehman)
f98fc73
b8588bb
* Mon Apr 15 2013 David Lehman <dlehman@redhat.com> - 0.11-1
b8588bb
- Fix handling of isohybrid media. (#950510) (dlehman)
b8588bb
- Fix getting dracut setup args from dasd.conf. (#950964) (dlehman)
b8588bb
6558d95
* Tue Apr 09 2013 David Lehman <dlehman@redhat.com> - 0.10-1
6558d95
- Extended partitions containing logical partitions are not leaves. (#949912) (dlehman)
6558d95
- Remove devices in reverse order in Blivet.recursiveRemove. (#949912) (dlehman)
6558d95
- Rewrite the DeviceFactory classes. (dlehman)
6558d95
- Hook up error handling in installer-specific methods. (#948250) (dlehman)
6558d95
- Don't traceback if fcoe.startup is called without fcoe utils present. (dlehman)
6558d95
- Fix logic error that causes us to ignore disks in exclusiveDisks. (dlehman)
6558d95
- Slightly improve currentSize for btrfs volumes. (dlehman)
6558d95
- Simplify multipath handling. (dlehman)
6558d95
- Don't expect anaconda udev rules to be in use. (dlehman)
6558d95
- Drop requires for things only needed for OS installation. (dlehman)
6558d95
- New version: 0.9 (bcl)
6558d95
- Only install packages for devices and filesystems used by the OS. (dlehman)
6558d95
- Fix LVMLogicalVolumeDevice.maxSize. (dlehman)
6558d95
- Fix handling of name=None in newLV, newMDArray, newVG. (dlehman)
6558d95
- Allow calls to suggestDeviceName with only a prefix argument. (dlehman)
6558d95
- Move mdadm superblock size calculation into devicelibs.mdraid. (dlehman)
6558d95
254bf4f
* Thu Mar 28 2013 Brian C. Lane <bcl@redhat.com> - 0.9-1
254bf4f
- NTFS.minSize is supposed to be a property. (#924410) (dlehman)
254bf4f
- Mount /run during install and fix /sys mount (#922988) (bcl)
254bf4f
- Fix two excptions triggered by calls to copy_to_system. (hamzy)
254bf4f
49a4ddb
* Wed Mar 13 2013 David Lehman <dlehman@redhat.com> - 0.8-1
49a4ddb
- Check for "ip=ibft" cmdline option, not for "ibft". (rvykydal)
49a4ddb
- run_program returns an int. (#920584) (dlehman)
49a4ddb
- Fix units for lvs output. (dlehman)
49a4ddb
- Don't pass an intf arg to ISCSI.stabilize. (#920041) (dlehman)
49a4ddb
- Add __version__ to blivet/__init__.py. (dlehman)
49a4ddb
- Only run info prog (eg: dumpe2fs) once per filesystem. (dlehman)
49a4ddb
- Processing of a PV with no VG metadata is easy. (dlehman)
49a4ddb
- Add some convenience properties for displaying DeviceAction info. (dlehman)
49a4ddb
- Ignore MTDs, as we do not have the tools to write to them (#916771). (clumens)
49a4ddb
- Include udev's list of symbolic links in StorageDevice. (#914724) (dlehman)
49a4ddb
- Set a DeviceFormat instance's type attribute to the requested type. (dlehman)
49a4ddb
- Allow size specs that do not include a 'b' or 'B'. (#888851) (dlehman)
49a4ddb
- Fix reference to 'factory' from within DeviceFactory class. (dlehman)
49a4ddb
- Fix problems detecting lvm and md devices. (#914730) (dlehman)
49a4ddb
- Allow passing size=None to device factories for unbounded growth. (dlehman)
49a4ddb
- Provide a way to set the default fstype for a Blivet instance. (#838145) (dlehman)
49a4ddb
- Allow changing the size of encrypted devices via DeviceFactory. (#913169) (dlehman)
49a4ddb
- Don't dump storage state except in installer mode. (dlehman)
49a4ddb
- Fix device resolution for btrfs. (dlehman)
49a4ddb
- Fix device resolution to find named md devices. (dlehman)
49a4ddb
- Account for active mounts in normal mode. (#914898) (dlehman)
49a4ddb
- Add an example script which lists all devices. (dlehman)
49a4ddb
- Add scripts/makeupdates script (bcl)
49a4ddb
0e65b9c
* Thu Feb 21 2013 Brian C. Lane <bcl@redhat.com> - 0.7-1
0e65b9c
- Merge branch 'master' of git+ssh://git.fedorahosted.org/git/blivet (bcl)
0e65b9c
- Bring in productName from pyanaconda in installer mode. (#913559) (dlehman)
0e65b9c
598e7d8
* Wed Feb 20 2013 Brian C. Lane <bcl@redhat.com> - 0.6-1
598e7d8
- parse buffer output from resize (#913141) (bcl)
598e7d8
- prevent traceback when root device is not defined #rhbz883768 (sbueno+anaconda)
598e7d8
- Move empty_disk to a top-level function, and rename. (clumens)
598e7d8
- Add some high-level comments to DeviceFactory.configure_device. (dlehman)
598e7d8
- Refactor DeviceFactory.set_container_members for clarity. (dlehman)
598e7d8
- Rename the main blivet logger from "storage" to "blivet". (dlehman)
598e7d8
- Use the blivet domain for translations. (dlehman)
598e7d8
- Move DeviceFactory classes and related code into a new file. (dlehman)
598e7d8
- New version: 0.5 (dlehman)
598e7d8
012fef3
* Fri Feb 08 2013 David Lehman <dlehman@redhat.com> - 0.5-1
012fef3
- Add mountOnly to turnOnFilesystems (bcl)
012fef3
- Update lvm scanning to account for new ignored device handling. (dlehman)
012fef3
- Scan in all devices and then hide those that use ignored disks. (dlehman)
012fef3
- Adjust child counts correctly when unhiding a device. (dlehman)
012fef3
- Generate lvm config args each time they're needed/used. (dlehman)
012fef3
- Add ability to grab 70-anaconda.rules udev data directly. (dlehman)
012fef3
- Add support for active luks mappings at populate time. (dlehman)
012fef3
- Don't require nss, required only for escrow key support. (dlehman)
012fef3
- Update the TODO list. (dlehman)
012fef3
- Add missing constant DMI_CHASSIS_VENDOR. (dlehman)
012fef3
- Allow for multiple calls to DeviceTree.processActions. (#881023,#846573) (dlehman)
012fef3
- Use CGit snaphot URL for Source in specfile. (dlehman)
012fef3
- Streamline some logic in storageInitialize. (dlehman)
012fef3
- Don't re-add deleted or hidden devices during DeviceTree.populate. (dlehman)
012fef3
- Only run findExistingInstallations and start iscsi, &c in installer mode. (dlehman)
012fef3
- Do not change device status during populate in normal mode. (#817064) (dlehman)
012fef3
- Drop old code related to saving clearPartType from pre-f18. (dlehman)
012fef3
- check for skipping bootloader in doIt (bcl)
012fef3
- check for stage1 when not installing bootloader (#882065,#895232) (bcl)
012fef3
- explicitly detect iso9660 on a disk (#903158) (bcl)
012fef3
- Fix several problems in python-blivet.spec. (dlehman)
012fef3
- Remove #!/usr/bin/python from tsort.py (dlehman)
012fef3
- Update COPYING file. (dlehman)
012fef3
- Add a Requires for dmidecode on x86. (dlehman)
0e401f2
0e401f2
* Sun Jan 20 2013 David Lehman <dlehman@redhat.com> - 0.4-1
0e401f2
- Use a two-part version number instead of three. (dlehman)
0e401f2
- Rename the rpm package from blivet to python-blivet. (dlehman)
0e401f2
- Move get_mount_device, get_mount_paths from pyanaconda.packaging to util. (dlehman)
0e401f2
- Update the TODO list. (dlehman)
0e401f2
- Carry over s390 exclusion of fcoe-utils from anaconda. (dlehman)
0e401f2
- Enable translations via transifex. (dlehman)
0e401f2
0e401f2
* Fri Jan 18 2013 David Lehman <dlehman@redhat.com> - 0.2-1
0e401f2
- Add Requires: iscsi-initiator-utils, fcoe-utils, device-mapper-multipath. (dlehman)
0e401f2
- Use a threading lock to control program log output. (dlehman)
0e401f2
- Fix reference to data to refer to ksdata in Blivet constructor. (dlehman)
0e401f2
- Remove the loop around proc.communicate in util._run_program. (dlehman)
0e401f2
0e401f2
* Tue Jan 15 2013 David Lehman <dlehman@redhat.com> 0.2-1
0e401f2
- Updated source from final pre-split anaconda source.
0e401f2
- Renamed pyanaconda.storage to blivet throughout.
0e401f2
- Updated spec file to include runtime Requires.
0e401f2
0e401f2
* Fri Jan 04 2013 David Lehman <dlehman@redhat.com> 0.1-1
0e401f2
- Created package from anaconda storage module.