Commit Graph

94 Commits

Author SHA1 Message Date
Brian C. Lane
5f19b20a82 - Update Makefile to default to python3. (dlehman)
- Add test for extended partition minSize (vtrefny)
- Allow resizing of non-leaf partitions (vtrefny)
- Fix minSize for extended partitions (#1254875) (vtrefny)
- Fix calling non-existing method (#1252902) (jkonecny)
- Use the RAID classes to calculate btrfs sizes (#1264696) (dshea)
- Handle sysfs size if it is missing (#1265090) (bcl)
- Convert float to str for better precision in Size (jkonecny)
- Merge pull request #226 from dwlehman/lvactivate-lvmetad (dlehman)
- Wait for auto-activation of LVs when lvmetad is running. (#1261621) (dlehman)
- Add a function to tell us if the lvmetad socket exists. (dlehman)
- Don't teardown FSs when searching for installed systems (#1252902) (jkonecny)
- Merge pull request #218 from vpodzime/master-lvm_on_raid_improvements
  (vpodzime)
- Account for bigger LVM meta data due to alignment on MD RAID (vpodzime)
- Calculate the MD RAID superblock size from the right size (vpodzime)
- Don't be naïve about liblvm (vpodzime)
2015-10-02 17:32:45 -07:00
Brian C. Lane
0ef1b05936 - Make sure devices are torn down in findExistingInstallations (#1261439)
(vpodzime)
- Merge pull request #211 from dwlehman/multipath-member-metadata (dlehman)
- Merge pull request #212 from dwlehman/recursive-teardown (dlehman)
- Mount efivarfs during os installation (#1260799) (bcl)
- Use --whatprovides when querying for if all requirements are installed.
  (clumens)
- Add method for estimated size of formated device (#1224048) (jkonecny)
- Add support for mul,div,sub,add by float to Size (jkonecny)
- Merge pull request #220 from AdamWill/nodev-typo (vpodzime)
- fix typo in NoDevice: updateSize not udpateSize (awilliam)
- Duplicate VG names are problem even if their disks are ignored (#1198367)
  (vpodzime)
- Merge pull request #215 from vpodzime/master-lvm_on_raid (vpodzime)
- Do not reserve extra space for metadata in a VG with RAID PVs (vpodzime)
- Merge pull request #207 from vpodzime/master-lvm_pmspare (vpodzime)
- Fix currentSize for extended partitions (#1254899) (vtrefny)
- Catch problems with chassis vendor names (#1256072) (bcl)
- Don't teardown protected devices (jkonecny)
- Don't store UUIDs or labels of multipath members. (dlehman)
- Continue with recursive teardown beyond inactive devices. (dlehman)
- Reserve space for the 'pmspare' LV in a VG (vpodzime)
- Add a property to get cached LVs in a VG (vpodzime)
- Fix VG free space check when shrinking an LV (vpodzime)
- Add a property for Requests to reserve some extra space (vpodzime)
- Use Size instances for sizes in LVM cache's stats (vpodzime)
- Implement metadata size reporting for the LVM cache (vpodzime)
2015-09-11 17:56:48 -07:00
Brian C. Lane
c775463813 - Add CONTRIBUTING file to blivet. (sbueno+anaconda)
- Merge pull request #208 from vpodzime/master-luks_catch_exceptions (vpodzime)
- Fix the name of the variable specifying requested libblockdev plugins
  (#1256273) (jstodola)
- Merge pull request #209 from vpodzime/master-thinp_fix (vpodzime)
- Change labelFormatOK to classmethods (vtrefny)
- Add 'build' and '.directory' to gitignore (vtrefny)
- Fix copy method (#1254135) (bcl)
- Add OSError to list of errors in updateSysfsPath (#1252949) (bcl)
- Remove the cacheRequest kwarg for thin(pool) LVs (#1254567) (vpodzime)
- Do not propagate low-level blockdev.CryptoError when setting up LUKS
  (#1253925) (vpodzime)
- Merge pull request #199 from vpodzime/master-lvm_cache_tests (vpodzime)
- Merge pull request #201 from vpodzime/master-mountsCache_resolve_devspec
  (vpodzime)
- Prefer code consistency over pylint's complaints in tests (vpodzime)
- Add a basic test for cached LVMLogicalVolumeDevice's properties (vpodzime)
- Add a basic test for LVMLogicalVolumeDevice's properties (vpodzime)
- Make sure LV's properties reporting size return a Size instance (vpodzime)
- Add unit tests for the LVM cache support (vpodzime)
- Use device name from udev only if it's available (#1252052) (vpodzime)
- Add test for getFreeSpace aligning (vtrefny)
- Allow aligning free regions to disk grainSize (#1244671) (vtrefny)
- Fix _unalignedMaxPartSize for logical partitions (#1250890) (vtrefny)
2015-08-24 16:29:56 -07:00
Brian C. Lane
67e1790929 - Remove unusable free regions from list when setting up growth. (dlehman)
- Merge pull request #190 from vpodzime/master-lvm_cache_creation (dlehman)
- Merge pull request #194 from dwlehman/mount-cache-symlinks (dlehman)
- Merge pull request #193 from dwlehman/md-fwraid-detection (dlehman)
- Add unit tests to cover md containers. (dlehman)
- Minor cleanup of blivet.formats.fs.BTRFS._preSetup. (dlehman)
- Fix isDisk and partitionable properties for md fwraid. (dlehman)
- Don't use MD_DEVNAME as device name for md partitions. (dlehman)
- Use udev to find name of md members' container. (dlehman)
- Call superclass ctor a bit later to get size attrs set up first. (dlehman)
- updateSize for md containers is a no-op. (dlehman)
- Fix UnboundLocalError in FSMinSize (#1249304) (vtrefny)
- Fix mount cache resolution of devices with symlinks. (#1247803) (dlehman)
- Add kwarg to udev.resolve_devspec to return canonical device name. (dlehman)
- Use slow as well as fast PVs for cached LV's non-cache part (vpodzime)
- Make VG determination in Blivet.newLV() less cryptic (vpodzime)
- Reserve space for LVM cache(s) when growing LVM requests (vpodzime)
- Create cached LVs before non-cached LVs (vpodzime)
- Add support for LVM cache creation to LVM device classes (vpodzime)
- Add generic class for cache creation requests (vpodzime)
- Two minor fixes in LVMLogicalVolumeDevice's constructor's docstring
  (vpodzime)
2015-08-07 17:22:55 -07:00
Brian C. Lane
9031cbd599 - Put MDRaidArrayDevice.devices back, but mark it as deprecated. (dlehman)
- Skip tearing down devices when unmounting filesystems (bcl)
- Include details when umount fails (bcl)
- Merge pull request #183 from dwlehman/tests-20150728 (dlehman)
- Merge pull request #182 from dwlehman/devicefactory-20150728 (dlehman)
- Merge pull request #184 from dwlehman/misc-20150728 (dlehman)
- Enable unit test suite in jenkins. (dlehman)
- Disable image-backed unit tests temporarily. (dlehman)
- Add some tests for DeviceFactory. (dlehman)
- Do basic child accounting when replacing a parent. (dlehman)
- Set new raid level on correct device in MDFactory. (dlehman)
- Fix container member switching when toggling member encryption. (dlehman)
- Don't adjust actual lv size based on md metadata space requirements.
  (dlehman)
- Merge pull request #57 from vpodzime/master-luks_npass (vpodzime)
- Fix names of the keyword arguments for luks_add_key and luks_remove_key
  (vpodzime)
- Make a better effort to clean up loop devices on failure. (dlehman)
- Correctly get current size of disk files. (dlehman)
- Don't warn about missing UUIDs for non-existent containers. (dlehman)
- Only check disks for membership in a multipath. (dlehman)
- Only update md array name if MD_DEVNAME is set. (#1212073) (dlehman)
- Weed out unresolved macros in the check-requires target. (clumens)
- Merge pull request #126 from vpodzime/master-translations_subpackage
  (vpodzime)
- Put translations into a subpackage shared by Python 2 and 3 (vpodzime)
- Require pygobject3-base instead of pygobject (#1246842) (dshea)
- Add method to list primary partitions (vtrefny)
- Merge pull request #179 from dwlehman/size-followups (dlehman)
- Fix test for failure to find space for device. (dlehman)
- Make sure factory target size is within the limits of the fstype. (dlehman)
- Unset obsolete format before updating device size. (dlehman)
- Make sure size is numeric before comparing it with format minimum. (dlehman)
- Don't constrain thin lv sizes to vg free space. (dlehman)
2015-07-31 17:57:41 -07:00
Brian C. Lane
8910ff338c - Merge pull request #177 from AdamWill/1245446 (dlehman)
- use floor division in calculating amount to reclaim (#1245446) (awilliam)
- Remember to use the shell command when calling external stuff in Makefile.
  (clumens)
- Add a new makefile target that does everything needed for jenkins. (clumens)
- Add missing gobject introspection Requires (bcl)
- Add install-requires Makefile target (bcl)
- Update md and btrfs unit tests to run with recent size changes. (dlehman)
- Set format attr after super ctor for md. (dlehman)
- Account for container layer in md fwraid array properties. (dlehman)
- Ensure format is a DeviceFormat during initialization. (dlehman)
- Set target size when setting other size attrs. (dlehman)
- Use 'members' attribute to list RAID member devices. (dlehman)
- BTRFS subvolumes shouldn't inherit from RAIDDevice. (dlehman)
- Require a non-empty member set for md disks. (dlehman)
- Mock mount cache while running action tests. (dlehman)
- Account for recent lvm snapshot format changes in tests. (dlehman)
- Bump size of non-existent devices to format minimum. (dlehman)
- Don't pass createOptions along when creating the btrfs device. (clumens)
- Merge pull request #59 from vpodzime/master-tab_tab (vpodzime)
- Implement the __dir__ method of the LazyImportObject class (vpodzime)
2015-07-24 12:08:11 -07:00
Brian C. Lane
9cccf0b2fa - Apply default size for new partition earlier in constructor. (dlehman)
- Don't pass model to md fwraid constructor. (#1242610) (dlehman)
2015-07-16 16:23:28 -07:00
Brian C. Lane
88a6a099e5 - Add a bunch more gi.require_version calls (dshea)
- Merge pull request #170 from dwlehman/size-cleanups (dlehman)
- Add unit tests for device size setters and getters. (dlehman)
- Only return target size if it is set to something meaningful. (dlehman)
- Validate new formats against current device size. (dlehman)
- Device size checks do not apply to existing devices. (dlehman)
- Make sure subclasses size setters use the base setter as appropriate.
  (dlehman)
- x-initrd.mount should only be set for /var (#1238603) (bcl)
- There's a python3 anaconda now, so ditch the temporary false positives.
  (clumens)
- Fix a syntax error caused by my previous commit. (clumens)
- Fix a duplicate key caused by patch merging. (clumens)
- Add support for specifying arbitrary mkfs options. (clumens)
- Align free regions before choosing one. (dlehman)
- Align partition sizes earlier in the allocation process. (dlehman)
- Don't crash on cleanup with DASDs or iSCSI devices present. (#1166506)
  (dlehman)
- Make check-requires errors more readable. (dshea)
- Merge pull request #166 from dwlehman/autopart-snapshot-branch (dlehman)
- Default to a string when sorting mountpoints in FSSet.umountFilesystems.
  (dlehman)
- Fix order of arguments to blockdev.thsnapshotcreate. (dlehman)
- Snapshot format exists upon snapshot creation. (dlehman)
- Improve format handling for lvm snapshots. (dlehman)
- Merge pull request #160 from dwlehman/lookup-method-deprecations (dlehman)
- Deprecate some little-used devicetree lookup methods. (dlehman)
- Add a decorator to mark deprecated functions/methods. (dlehman)
- Log python warnings, including DeprecationWarning. (dlehman)
- Catch and relay more exception types from the iscsi process (dshea)
- Use the pipes as contextmanagers to ensure they are closed (dshea)
- Close the unused half of pipes after the fork (dshea)
2015-07-10 17:17:46 -07:00
Brian C. Lane
9aac2b547d - Merge pull request #167 from mulkieran/master-format-copy-b (mulkieran)
- Merge pull request #156 from vpodzime/master-lvm_cache_actually (vpodzime)
- Add cache support to the LVMLogicalVolumeDevice class (vpodzime)
- Copy all DeviceFormat objects using deepcopy. (amulhern)
- Make use of FSTask and FSUnimplementedTask in FS* tasks. (amulhern)
- Add an abstract parent of all filesystem tasks. (amulhern)
- Merge pull request #162 from dwlehman/storage-device-format-type-consistency
  (dlehman)
- Merge pull request #138 from dwlehman/partitionable-md (dlehman)
- Document the fact that StorageDevice.format is always a DeviceFormat.
  (dlehman)
- Ignore some interruptible system call warnings (dshea)
- Retry interruptible calls (dshea)
- Ignore EINTR from os.close instead of retrying the call (dshea)
- Add kwargs to eintr_retry_call (dshea)
- Specify required version of GI-imported packages (vpodzime)
- Add classes for LVM cache related functionality (vpodzime)
- Add generic classes for cache and cache stats (vpodzime)
- Merge pull request #149 from vpodzime/master-lvm_cache (vpodzime)
- Implement the support for resizing internal metadata LVs of thin pools
  (vpodzime)
- Use relations between LVs to determine parent LV (vpodzime)
- Make Blivet.lvs return all LVs not just traditional/thick LVs (vpodzime)
- Accept both list and ParentList when checking LVs parents (vpodzime)
- Create and use internal LVs instead of static values (vpodzime)
- Add classes for the internal LVs of various types (vpodzime)
- Merge pull request #137 from dwlehman/md-boot-metadata-branch (dlehman)
- Treat existing md arrays whose members are all disks like disks. (dlehman)
- Handle formatting after adding devices from format handlers. (dlehman)
- Merge pull request #158 from mulkieran/master-target-size (mulkieran)
- Move parents checking and update into a seprarate methods (vpodzime)
- Rearrange and group some of the StorageDevice's methods/properties (vpodzime)
- Don't crash when processing cached LVs (vpodzime)
- Make roundToNearest() slightly more robust. (amulhern)
- Extend Size.convertTo() to work with arbitrary Size() values. (amulhern)
- Changes to FS._setTargetSize(). (amulhern)
- Increase ext4 maximum size from 16 TiB to 1 EiB (#1231049) (bcl)
- Merge pull request #155 from atodorov/fix_issue_154 (mulkieran)
- Use len of set to check for duplicates in list of packages. (atodorov)
- Merge pull request #153 from mulkieran/master-task-names (mulkieran)
- Omit completely pointless setUp method. (amulhern)
- Make a size refer to a Size object. (amulhern)
- Add __str__ method to various subclasses of Task. (amulhern)
- Don't pass unused mountpoint dict to preCommitFixup. (dlehman)
- Use the default md metadata version for everything except /boot/efi.
  (dlehman)
2015-06-26 17:54:43 -07:00
Dennis Gilmore
ae31bacd5d - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-18 18:38:25 +00:00
Brian C. Lane
a06d8d58d9 - Fix indentation in action_test.py (dlehman)
- Merge pull request #133 from atodorov/fix_deprecation_warnings (mulkieran)
- Merge pull request #147 from vojtechtrefny/master_fix_undo_resize (vtrefny)
- Fix setting original size for format resize action. (#1225352) (vtrefny)
- Make unit test assertion expressions fully Python2/3 compatible. (atodorov)
- Merge pull request #151 from mulkieran/master-120 (mulkieran)
- Merge pull request #122 from atodorov/remove_doctest (mulkieran)
- Parameterize Makefile test targets on Python version. (atodorov)
- Merge pull request #148 from mulkieran/master-132 (mulkieran)
- Merge pull request #144 from mulkieran/master-128 (mulkieran)
- Remove facilities for running tests as standalone modules. (atodorov)
- Include automatic and manual test documentation. (atodorov)
- Remove an accidental variable assignment in LVMLogicalVolumeDevice (vpodzime)
- Merge pull request #143 from mulkieran/master-134 (mulkieran)
- Remove two files in tests directory. (atodorov)
- Fix typo in docstring. (atodorov)
- Merge pull request #112 from vpodzime/master-fixed_maps (vpodzime)
- Merge pull request #129 from mulkieran/master-keepers-c (mulkieran)
- Merge pull request #135 from mulkieran/master-test-fixes (mulkieran)
- Convert bytes value to str. (amulhern)
- Change new format lookup name from "msdos" to "disklabel". (amulhern)
- Get rid of pointless test case about arguments for labeling apps. (amulhern)
- Do not raise KeyError if ID_PART_ENTRY_DISK is missing. (amulhern)
- Manage backing store more independently in loop backed test cases. (amulhern)
- Pass floats as string to Decimal constructor everywhere. (amulhern)
- Fix a bug in reading a size specification with a radix in the numeric part.
  (amulhern)
- remove mention of doctest b/c target was removed in
  fed53d969af0eddaeeca58cdf3e40916497aa305 (atodorov)
- Beware of Python 3's version of the map() built-in function (vpodzime)
2015-06-10 16:52:16 -07:00
Brian C. Lane
a9a778d882 - Get rid of an unused import in blivet.zfcp (sbueno+anaconda)
- Make appropriate changes to adapt for s390 libblockdev plugin.
  (sbueno+anaconda)
- Drop check from the release build target (bcl)
- Merge pull request #127 from vpodzime/master-libblockdev_1.0 (vpodzime)
- Adapt to the new libblockdev initialization API (vpodzime)
- Merge pull request #111 from dwlehman/disk-model-branch (dlehman)
- Store vendor/model information for DiskDevice instances. (dlehman)
- Require new version of pyparted with Python 3 related fixes (vpodzime)
- Merge pull request #114 from vojtechtrefny/fix_lvmsnapshot_size2 (vtrefny)
- Merge pull request #118 from mulkieran/master-hawkey (mulkieran)
- Use python-hawkey instead of rpm-python. (amulhern)
- Add a dead simple test for some basic task and resource functionality.
  (amulhern)
- Use COW device to get actual size of LVM snapshots (vtrefny)
2015-05-28 11:39:49 -07:00
Brian C. Lane
90d03dae00 - Workaround for chrooted mountpoints (#1217578) (vtrefny)
- Merge pull request #116 from mulkieran/master-gerror (mulkieran)
- Filter GLib.GError instead of GLib.Error in pylint false positives.
  (amulhern)
- Merge pull request #113 from mulkieran/master-tasks-20150513 (mulkieran)
- Guard tests against device support being missing. (amulhern)
- Add checks for filesystem availability in selinux tests. (amulhern)
- Fix some small mistakes in tests using availability information. (amulhern)
- Get rid of abitrary _resizable variable in tests. (amulhern)
- Don't use utilsAvailable to skip tests. (amulhern)
- Treat a missing plugin as an OK situation. (amulhern)
- Use availability information in device actions. (amulhern)
- Add a check to determine whether the device type is supported. (amulhern)
- If external dependencies are unavailable, cannot support RAID levels.
  (amulhern)
- Add availability information to devicelibs files. (amulhern)
- Track external dependencies in devices. (amulhern)
- If lvm is not available, do not do the filtering. (amulhern)
- Add availability checking to non-FS formats. (amulhern)
- Use filesystem tasks in filesystem. (amulhern)
- Add filesystem tasks to tasks directory. (amulhern)
- Add tasks infrastructure to tasks directory. (amulhern)
- Add error to detect errors in discovering availability info. (amulhern)
- Add errors about reading and writing labels to error heirarchy. (amulhern)
- Make assignments that override abstract properties into simple attributes.
  (amulhern)
- Move kernel_filesystems functionality into a little library. (amulhern)
- Make labeling(), relabels(), and labelFormatOK() instance methods. (amulhern)
- Merge pull request #108 from vojtechtrefny/progress_callbacks (vtrefny)
- Merge pull request #109 from mulkieran/master-btrfs-c (mulkieran)
- Set a subvolspec format args when making a new BTRFS volume. (amulhern)
- Cache data obtained from /proc/self/mountinfo. (amulhern)
- Add progress report callback for action processing (vtrefny)
- Do not have two ignored variables when one will do. (amulhern)
- Fix a typo in comment. (amulhern)
- Do not use type() in makebumpver. (clumens)
- Merge pull request #100 from mulkieran/master-lvm-a (mulkieran)
- Merge pull request #104 from mulkieran/master-1139222 (mulkieran)
- Include LUKSDevice information in kickstart data (#1139222) (amulhern)
- Un-escape '-'s in names or paths for _all_ lvm lv or vgs. (amulhern)
- Fix a few miscellaneous pylint-caught problems. (clumens)
- Only give Size objects a __div__ method under python2. (clumens)
- Protect against calling testMount on an object that may not have it.
  (clumens)
- Add a bunch of false positives to make pylint succeed. (clumens)
- e.message -> str(e) (clumens)
- Disable a pointless override warning. (clumens)
- Ignore the environment-modify pylint warnings for size_test.py. (clumens)
- blockdevError -> BlockDevError (clumens)
- Remove uses of the string module we don't need, ignore warnings on those we
  do. (clumens)
- unicode isn't undefined on the python2 code paths. (clumens)
- Use eintr_retry_call from anaconda. (clumens)
- Move blivet to using pocketlint. (clumens)
- Merge pull request #97 from mulkieran/master-1072060 (mulkieran)
- Merge pull request #93 from vojtechtrefny/fix_active_parted (vtrefny)
- If the parent volume has a label, use it in subvol's kickstart (#1072060)
  (amulhern)
- Merge pull request #94 from mulkieran/master-raid (mulkieran)
- Allow adding new partitions to disks with active devices (#1212841) (vtrefny)
- Fix "anaconda hangs while trying to discover iscsi..." (#1166652) (jkonecny)
- Move definition of _level attribute above super-constructor call. (amulhern)
- Fix status for LVMPhysicalVolume format (vtrefny)
2015-05-18 14:58:19 -07:00
Brian C. Lane
e47abb0e75 - fix conf.py pylint errors (bcl)
- Fix BlockDev import in populator.py (bcl)
- Prevent pylint from going crazy because of libblockdev's ErrorProxy
  (vpodzime)
- Make use of the new libblockdev error reporting (vpodzime)
- Add libselinux-python to package dependencies (#1211834) (vtrefny)
- Introduce a new doReqPartition method that is similar to doAutoPartition.
  (clumens)
- Merge pull request #81 from mulkieran/master-mount-options (mulkieran)
- Merge pull request #66 from vpodzime/master-py3_final (martin.kolman)
- Encode input for os.write() (mkolman)
- Build the python3-blivet subpackage (vpodzime)
- Do not modify dict while iterating over its values (vpodzime)
- Do not try to compare strings and Nones when sorting mountpoints (vpodzime)
- Always return strings from regular capture output run functions (mkolman)
- Do not use variable from an inner comprehension in tests (vpodzime)
- Implement and test Python 3 division for the Size class (vpodzime)
- Replace python 2 build-in-function cmp() with custom method (vtrefny)
- Do not rely on __sub__ being implemented as __add__ (-1)* (vpodzime)
- Transform our compare functions into key functions and use these instead
  (vpodzime)
- Fix the size_test to stop using byte strings (vpodzime)
- Do not define unit strings as byte strings (vpodzime)
- Do not pass context to Decimal numeric operations (vpodzime)
- Don't call object's (as a class) __new__ with extra arguments (vpodzime)
- Make translation to lowerASCII Python[23]-compatible (vpodzime)
- Replace __import__ call with importlib.import_module (vpodzime)
- In FS._postSetup() check the mountpoint options that were actually used.
  (amulhern)
- Add kwargs to unmount and move mountpoint check into _preSetup (bcl)
- Do not try importing hidden/backup files as formats (vpodzime)
- Add back DeviceTree's support for saving LUKS passphrases (vpodzime)
- Do not try to stat FileDevice's path if it doesn't exist (vpodzime)
- Merge pull request #76 from dwlehman/unusable-storage-branch (dlehman)
- Add error handling around storageInitialize for unusable setups. (dlehman)
- Include suggestions in error classes for unusable storage configurations.
  (dlehman)
- Use partially corrupt gpt disklabels. (dlehman)
- Consolidate common code in DeviceFormat class methods. (dlehman)
- Update get_mount_paths to use mountsCache (bcl)
- Add multiple mountpoint handling to MountsCache (bcl)
- Remove obsolete FIXME from FS.status (bcl)
- Check to see if mountpoint is already mounted (bcl)
- Add isMountpoint to MountsCache (bcl)
- Add ability to unmount specific mountpoints (bcl)
- Fix pylint errors for six.moves import (vtrefny)
- Merge pull request #72 from vojtechtrefny/picklable-size (vpodzime)
- Merge pull request #74 from mulkieran/master-trivia (mulkieran)
- Fix two instances where check_equal() returned True incorrectly. (amulhern)
- Fix typo in 66f2ddb11e85ec6f48535d670dd6f24cb60cbe55. (amulhern)
- Make sure installer_mode is reset to original value. (amulhern)
- Test for Size pickling support (vtrefny)
- Pickling support for Size. (vtrefny)
- Disable pylint bad-super-call in MDRaidArrayDevice.updateSize. (dlehman)
- Merge pull request #68 from dwlehman/parted-device-branch (dlehman)
- Require reallocation after changing an allocated partition's size. (dlehman)
- Move mediaPresent out of Device and into StorageDevice. (dlehman)
- Don't use parted.Device to obtain size info. (dlehman)
- Merge pull request #70 from mulkieran/master-1208536 (mulkieran)
- Prepend /sys to sysfs path for udev lookup (#1208536) (amulhern)
- Fall back on mdadm info if udev info is missing for the array (#1208536)
  (amulhern)
- Catch DeviceError as well as ValueError (#1208536) (amulhern)
- Make an MDContainerDevice if that is the right model (#1208536) (amulhern)
- Change raid variable name to raid_items (#1208536) (amulhern)
- Fix swapped args to processActions. (dlehman)
- Merge pull request #63 from dwlehman/disk-selection-branch (dlehman)
- Use VGname-LVname as key for LVinfo cache (vpodzime)
- Add back DeviceTree's methods and properties used from the outside (vpodzime)
- Wrap keys() with a list so that the dictionary can be changed (martin.kolman)
- Add a method to list disks related by lvm/md/btrfs container membership.
  (dlehman)
- Make getDependentDevices work with hidden devices. (dlehman)
2015-04-22 09:41:10 -07:00
Brian C. Lane
3da514fd98 - Fix pylint unused variable warnings (vtrefny)
- Add test for mountpoints (vtrefny)
- Replace _mountpoint with systemMountpoint in other modules (vtrefny)
- New method to handle nodev filesystems (vtrefny)
- Add dynamic mountpoint detection support (vtrefny)
- New method to compute md5 hash of file (vtrefny)
- Add information about subvolume to BTRFS format (vtrefny)
- Don't specify priority in fstab if -1 (default) is used (#1203709) (vpodzime)
- Catch GLib.GError in places where we catch StorageError (#1202505) (vpodzime)
- slave_dev is undefined here, use slave_devices[0] instead. (clumens)
- Clean out the mock chroot before attempting to run the rest of the test.
  (clumens)
- Move recursiveRemove from Blivet to DeviceTree. (dlehman)
- Factor out adding of sysfs slave (parent) devices into its own method.
  (dlehman)
- Add a __str__ method to DeviceTree. (dlehman)
- Allow changing the names of existing devices. (dlehman)
- Remove redundant block for adding fwraid member disks. (dlehman)
- Return a device from addUdevLVDevice if possible. (dlehman)
- Pass a sysfs path to MultipathDevice constructor from Populator. (dlehman)
- Resolve md names in udev info. (dlehman)
- LVMVolumeGroupDevice format should be marked as immutable. (dlehman)
- Don't catch and re-raise device create exceptions as DeviceCreateError.
  (dlehman)
- Call superclass _preCreate from BTRFSVolumeDevice._preCreate. (dlehman)
- Move code that populates the device tree into a new class and module.
  (dlehman)
- Move action list management into a separate class and module. (dlehman)
- Put an __init__.py in devices_tests directory. (amulhern)
- Require the Python 2 version of pykickstart (#1202255) (vpodzime)
- Use Size method to perform a Size operation (#1200812) (amulhern)
- Extend Size.roundToNearest to allow Size units (#1200812) (amulhern)
- Move code that populates the device tree into a new class and module.
  (dlehman)
- Move action list management into a separate class and module. (dlehman)
- Remove a pointless override. (amulhern)
- Display the name of the overridden ancestor in error message. (amulhern)
- Check for simple function calls in pointless overrides. (amulhern)
- Simplify supported methods in FS.py. (amulhern)
- Make hidden property use superclass method where possible. (amulhern)
- Simplify some methods in DeviceFormat class. (amulhern)
- Do supercall in BTRFSVolumeDevice.formatImmutable. (amulhern)
- Add a comment to supported property. (amulhern)
- Get rid of some very old commented out code. (amulhern)
- Put all mock results into the top-level source dir. (clumens)
- Spell TestCase.teardown correctly as tearDown(). (amulhern)
- Make testMount() check return value of util.mount(). (amulhern)
- Remove unused fs_configs. (amulhern)
- Remove side-effects from mountType property. (amulhern)
- Do not make the mountpoint directory in fs.FS.mount(). (amulhern)
- Mount should not be satisfied with anything less than a directory. (amulhern)
- Do not return doFormat() value. (amulhern)
- Put previously removed mountExistingSystem() into osinstall.py. (amulhern)
- Revert "Revive the mountExistingSystem() function and all it needs"
  (amulhern)
- Make sure the device is setup before formatting it (#1196397) (bcl)
- Use %d format string for every value that should be an integer decimal.
  (amulhern)
- Robustify PartitionDevice._wipe() method. (amulhern)
- Fix up scientific notation _parseSpec() tests. (amulhern)
- Make size._parseSpec a public method. (amulhern)
- Simplify StorageDevice.disks. (amulhern)
- Simplify StorageDevice.growable. (amulhern)
- Simplify and correct StorageDevice.packages property. (amulhern)
- Remove services infrastructure from devices and formats. (amulhern)
- Split devices tests out into a separate directory. (amulhern)
- Fix dd wipe call. (exclusion)
- Add a script to rebase and merge pull requests (dshea)
- Add pylint false positive to list of pylint false positives. (amulhern)
- Change all instances of GLib.Error to GLib.GError. (amulhern)
- Sort pylint-false-positives using sort's default options with LC_ALL=C.
  (amulhern)
- Add ability to match scientific notation in strings. (amulhern)
2015-03-27 17:28:13 -07:00
Brian C. Lane
5f3a789307 - Add scratch, scratch-bumpver and rc-release targets. (bcl)
- Add --newrelease to makebumpver (bcl)
- Add po-empty make target (bcl)
- Revive the mountExistingSystem() function and all it needs (vpodzime)
- Switch translations to use Zanata (bcl)
- Set EFIFS._check to True so that it gets correct fspassno (#1077917)
  (amulhern)
- Use format string and arguments for logging function (vpodzime)
- Merge pull request #28 from vpodzime/master-libblockdev (vratislav.podzimek)
- Do not restrict MDRaidArrayDevice's memberDevices to type int (vpodzime)
- Adapt better to libblockdev's md_examine data (vpodzime)
- Set TmpFS._resizable to False. (amulhern)
- Add an additional test for TmpFS. (amulhern)
- Override NoDevFS.notifyKernel() so that it does nothing. (amulhern)
- Add TmpFS._resizefsUnit and use appropriately. (amulhern)
- Rewrite TmpFS class definition. (amulhern)
- Add TmpFS._getExistingSize() method. (amulhern)
- Make _getExistingSize() method more generally useful. (amulhern)
- Remove _getExistingSize() methods with body pass. (amulhern)
- Tidy up the definition of the device property throughout formats package.
  (amulhern)
- Add a test to check properties of device paths assigned to formats.
  (amulhern)
- Set TmpFSDevice object's _formatImmutable attribute to True. (amulhern)
- Remove no longer needed requires (vpodzime)
- Filter out pylint's "No name 'GLib' in module 'gi.repository'" messages
  (vpodzime)
- Add a static method providing list of available PE sizes (vpodzime)
- Use BlockDev's crypto plugin to do LUKS escrow (vpodzime)
- Use BlockDev's DM plugin to work with DM RAID sets (vpodzime)
- Use BlockDev's DM plugin for DM map existence testing (vpodzime)
- Remove tests for the removed devicelibs functions (vpodzime)
- Set and refresh BlockDev's global LVM config if needed (vpodzime)
- Use BlockDev's LVM plugin instead of devicelibs/lvm.py (vpodzime)
- Use BlockDev's BTRFS plugin instead of devicelibs/btrfs.py (vpodzime)
- Use the BlockDev's DM plugin instead of devicelibs/dm.py (vpodzime)
- Use BlockDev's crypto plugin instead of devicelibs/crypto.py (vpodzime)
- Use BlockDev's loop plugin instead of devicelibs/loop.py (vpodzime)
- Use BlockDev's MD plugin instead of devicelibs/mdraid.py (vpodzime)
- Use BlockDev's swap plugin instead of devicelibs/swap.py (vpodzime)
- Use BlockDev's mpath plugin instead of devicelibs/mpath.py (vpodzime)
- First little step towards libblockdev (vpodzime)
- Move the Blivet class into its own module (vpodzime)
- Use a safer method to get a dm partition's disk name. (dlehman)
- Be more careful about overwriting device.originalFormat. (#1192004) (dlehman)
2015-03-06 18:02:21 -08:00
David Lehman
822887ae77 New version: 1.0-1
- Move autopart and installation-specific code outside of __init__.py
  (vpodzime)
- Convert _parseUnits to public function (vtrefny)
- LVMFactory: raise exception when adding LV to full fixed size VG (#1170660)
  (vtrefny)
- Do not unhide devices with hidden parents (#1158643) (vtrefny)
2015-02-13 15:10:59 -06:00
Brian C. Lane
062e582b2a - Revert "Switch to temporary transifex project" (bcl)
- Check parent/container type for thin volumes and normal volumes. (dlehman)
- drop useless entries from formatByDefault exceptlist (awilliam)
- Fix import of devicelibs.raid in platform.py (vpodzime)
- Use %license in python-blivet.spec (bcl)
- Fix import of FALLBACK_DEFAULT_PART_SIZE (vpodzime)
- Make implicit partitions smaller if real requests don't fit anywhere
  (vpodzime)
- Use list comprehension instead of filter+lambda in makebumpver (amulhern)
- Revert "Try to deactivate lvm on corrupted gpt disks." (dlehman)
- Virtualize options property methods in DeviceFormat.options definition.
  (amulhern)
- Do not redefine size property in TmpFS. (amulhern)
- Do not set self.exists to True in TmpFS.__init__(). (amulhern)
- Simplify NoDevFS.type. (amulhern)
- Set format's mountpoint if it has the mountpoint attribute. (amulhern)
- Do not bother to set device.format.mountopts. (amulhern)
- Tighten up FS.mountable(). (amulhern)
- Simplify FS._getOptions(). (amulhern)
- Simplify setting options variable. (amulhern)
- Be less eager about processing all lines in /proc/meminfo. (amulhern)
- Make error message more useful. (amulhern)
- Add a tiny test for TmpFS. (amulhern)
- More fixes for alignment-related partition allocation failures. (dlehman)
- Do not mix stdout and stderr when running utilities unless requested
  (vpodzime)
- Define the _device, _label and _options attributes in constructor (vpodzime)
- Get rid of the has_lvm function (vpodzime)
- Do not create lambda over and over in a cycle (vpodzime)
- Disable pylint check for cached LVM data in more places (vpodzime)
- Fix issue where too many mpath luns crashes installer (#1181336) (rmarshall)
- Allow user-specified values for data alignment of new lvm pvs. (#1178705)
  (dlehman)
- Let LVM determine alignment for PV data areas. (#962961) (dlehman)
- Raise UnusableConfigurationError when unusable configuration is detected.
  (dlehman)
- Don't raise an exception for failure to scan an ignored disk. (dlehman)
- Try to deactivate lvm on corrupted gpt disks. (dlehman)
- Remove an unused and outdated constant (vpodzime)
- Relax the blivet device name requirements (#1183061) (dshea)
2015-02-06 18:17:13 -08:00
Brian C. Lane
6aee976f37 - Switch to temporary transifex project (bcl)
- Add docstrings to the methods in loop.py (bcl)
- get_loop_name should return an empty name if it isn't found (#980510) (bcl)
- Use dict() instead of dict comprehension. (riehecky)
- Fix the pylint errors in the examples directory. (amulhern)
- Add __init__ file to examples directory. (amulhern)
2015-01-16 17:13:47 -08:00
Brian C. Lane
005439aeff - Use _resizefsUnit in resizeArgs() method implementations. (amulhern)
- Do not supply a default implementation for the resizeArgs() method.
  (amulhern)
- Use convertTo in humanReadable(). (amulhern)
- Change convertTo() and roundToNearest() so each takes a units specifier.
  (amulhern)
- Do not even pretend that ReiserFS is resizable. (amulhern)
- Get whole unit tuple in loop when searching for correct units. (amulhern)
- Make _parseUnits() return a unit constant, rather than a number. (amulhern)
- Add unitStr() method. (amulhern)
- Make _Prefix entries named constants. (amulhern)
- Hoist _BINARY_FACTOR * min_value calculation out of loop. (amulhern)
- Comment _prefixTestHelper() and eliminate some redundancies. (amulhern)
- Eliminate redundant test. (amulhern)
- Avoid using Size constant in FileDevice._create(). (amulhern)
- Do not compare the same two values twice. (amulhern)
- Make possiblePhysicalExtents() a bit more direct. (amulhern)
- Get rid of unnecessary use of long. (amulhern)
- Use _netdev mount option as needed. (#1166509) (dlehman)
- Don't crash when a free region is too small for an aligned partition.
  (dlehman)
- Multiple loops shouldn't be fatal (#980510) (bcl)
- If allowing degraded array, attempt to start it (#1090009) (amulhern)
- Add a method that looks at DEVNAME (#1090009) (amulhern)
- Add mdrun method to just start, not assemble, an array. (#1090009) (amulhern)
- Change allow_degraded_mdraid flag to allow_imperfect_devices (#1090009)
  (amulhern)
- Remove needsFSCheck() and what only it depends on. (amulhern)
- Remove allowDirty parameter and code that depends on it. (amulhern)
- Eliminate dirtyCB parameter from mountExistingSystem() params. (amulhern)
- Use correct package for FSError. (amulhern)
2015-01-09 17:12:08 -08:00
Brian C. Lane
d86569e3d8 - Mountpoint detection for removable devices (vtrefny)
- Fix adding partition after ActionDestroyDevice canceling (vtrefny)
- Avoid exception when aligned start and end are crossed over (exclusion)
- Substitute simple value for single element array. (amulhern)
- Change _matchNames so that it is less restrictive (amulhern)
- Change MDRaidArrayDevice to MDBiosRaidArrayDevice. (amulhern)
- Factor out MDRaidArrayDevice w/ type in ("mdcontainer", "mdbiosraidarray")
  (amulhern)
- Make it possible for NTFS to recognize the label it reads. (amulhern)
- Make unnecessarily verbose properties into simple class attributes.
  (amulhern)
- Change the generic badly formatted label to one that's bad for all.
  (amulhern)
- Don't make overridden values actual properties. (amulhern)
- Check the status of the format being mounted. (amulhern)
2014-12-19 16:06:32 -08:00
Brian C. Lane
99e52baaa7 - Add a bunch of simple tests for filesystem formats. (amulhern)
- Get rid of long() related code. (amulhern)
- Add another check for resizable in FS.doResize() (amulhern)
- Simplify FS.free(). (amulhern)
- Make an early exit if self._existingSizeFields is [] (amulhern)
- Change "Aggregate block size:" to "Physical block size:" for JFS. (amulhern)
- Split output from infofs program for size on whitespace. (amulhern)
- Simplify _getSize() and currentSize(). (amulhern)
- Check resizable when assigning a new target size. (amulhern)
- Make default exists value a boolean in DeviceFormat.__init__. (amulhern)
- Remove pointless overrides. (amulhern)
- Add a simple pylint checker for pointless overrides. (amulhern)
- Run dosfsck in non-interactive mode (#1167959) (bcl)
2014-12-05 10:04:23 -08:00
Brian C. Lane
409f33a9ee - Remove redundant import. (amulhern)
- Change inclusion to equality. (amulhern)
- Round filesystem target size to whole resize tool units. (#1163410) (dlehman)
- New method to round a Size to a whole number of a specified unit. (dlehman)
- Fix units for fs min size padding. (dlehman)
- Disable resize operations on filesystems whose current size is unknown.
  (dlehman)
- Run fsck before obtaining minimum filesystem size. (#1162215) (dlehman)
- Fix setupDiskImages when the devices are already in the tree. (dlehman)
- Make logging a little less verbose and more useful in FS.mount() (amulhern)
- Make selinux test less precise. (amulhern)
- Do not translate empty strings, gettext translates them into system
  information (vtrefny)
- Add a tearDown method to StorageTestCase. (dlehman)
- Remove pointless assignment to _formattable in Iso9660FS. (amulhern)
- Remove BTRFS._resizeArgs() (amulhern)
- Add more arguments to mpathconf (#1154347) (dshea)
- Check the minimum member size for BtrfsVolumeDevices. (amulhern)
- Get rid of FS._getRandomUUID() method. (amulhern)
- Eliminate TmpFS.minSize() (amulhern)
- Don't run selinux context tests when selinux is disabled. (dlehman)
- Temporarily disable a test that isn't working. (dlehman)
- Pass a path (not a name) to devicePathToName. (dlehman)
- devicePathToName should default to returning a basename. (dlehman)
- Fix test that guards forcible removal of dm partition nodes. (dlehman)
- Device status can never be True for non-existent devices. (#1156058)
  (dlehman)
- Use super to get much-needed MRO magic in constructor. (#1158968) (dlehman)
2014-11-21 17:32:45 -08:00
Brian C. Lane
e03a57abd9 - Add a method that determines whether a number is an exact power of 2. (amulhern)
- Put size values in Size universe eagerly. (amulhern)
- Update minSize method headers. (amulhern)
- Remove _minSize assignment to 0 where it's inherited from superclass. (amulhern)
- Make _minInstanceSize, a source of minSize() value, always a Size. (amulhern)
- Fix int * Size operation and add tests (#1158792) (bcl)
- getArch should return ppc64 or ppc64le (#1159271) (bcl)
- Pack data for the wait_for_entropy callback (vpodzime)
- Allow the wait_for_entropy callback enforce continue (vpodzime)
2014-11-06 17:24:06 -08:00
Brian C. Lane
2762aa6388 - Increase max depth of sphinx toc to show subpackage names. (dlehman)
- Temporarily disable the md devicetree tests due to mdadm issues. (dlehman)
- Add ability to set a default fstype for the boot partition (#1112697) (bcl)
- Pass a list of string items to log_method_return. (sbueno+anaconda)
- Require resize target sizes to yield aligned partitions. (#1120964) (dlehman)
- Split out code to determine max unaligned partition size to a property.
  (dlehman)
- Allow generating aligned geometry for arbitrary target size. (dlehman)
- Align end sector in the appropriate direction for resize. (#1120964)
  (dlehman)
- Specify ntfs resize target in bytes. (#1120964) (dlehman)
- Check new target size against min size and max size. (dlehman)
- Add a number of new tests. (amulhern)
- Add xlate parameter to humanReadable(). (amulhern)
- Rewrite _parseSpec() and convertTo() (amulhern)
- Make _lowerASCII() python 3 compatible and add a method header. (amulhern)
- Use b"", not u"", for _EMPTY_PREFIX. (amulhern)
- Strip lvm WARNING: lines from output (#1157864) (bcl)
- Add testing for MDRaidArrayDevice.mdadmFormatUUID (#1155151) (amulhern)
- Give mdadm format uuids to the outside world (#1155151) (amulhern)
- Make logSize, metaDataSize, and chunkSize always consistently Size objects.
  (amulhern)
2014-11-04 17:09:14 -08:00
Brian C. Lane
9d993c5dc6 - Only write label if there is a label AND labeling application. (amulhern)
- Handle unicode strings in Size spec parsing. (dshea)
- Fix typo in getting Thin Pool profile's name (vpodzime)
- Don't try to get no profile's name (#1151458) (vpodzime)
- Change signature of DiskLabel.addPartition to be more useful. (dlehman)
- Remove unused fallback code from DiskLabel. (dlehman)
- Let udev settle between writing partition flags and formatting. (#1109244)
  (dlehman)
- Set _partedDevice attribute before calling device constructor (#1150147)
  (amulhern)
- Fixed wrong Runtime Error raise in _preProcessActions (vtrefny)
- Set sysfsPath attribute before calling Device constructor (#1150147)
  (amulhern)
- Return all translated strings as unicode (#1144314) (dshea)
- Force __str__ to return str. (dshea)
- Use the i18n module instead of creating new gettext methods (dshea)
- Take care when checking relationship of parent and child UUIDs (#1151649)
  (amulhern)
- Further abstract loopbackedtestcase on block_size. (amulhern)
- Update tests to bring into line w/ previous commit (#1150147) (amulhern)
- Abstract ContainerDevice member format check into a method (#1150147)
  (amulhern)
- Register DeviceFormat class (#1150147) (amulhern)
- Don't append btrfs mount options to None (#1150872) (dshea)
- Convert int to str before passing it to run_program (#1151129) (amulhern)
2014-10-22 16:34:23 -07:00
Brian C. Lane
3dfb8301f3 - Don't pass --disable-overwrite to tx pull. (dlehman)
- Avoid unneccesarily tripping raid-level member count checks. (dlehman)
- Allow toggling encryption of raid container members. (#1148373) (dlehman)
- Include the new blivet.devices submodule in the built package. (clumens)
- Add a few test for setting dataLevel and metaDataLevel in BTRFS (amulhern)
- Add dataLevel and metaDataLevel attributes for testing. (amulhern)
- Add isleaf and direct to _state_functions (amulhern)
- Refactor setup of _state_functions into __init__() methods (amulhern)
- Move getting the attribute into the check methods. (amulhern)
- Adjust detection of exceptions raised. (amulhern)
- Update test setup so that it obeys RAID level requirements. (amulhern)
- Use new RaidDevice class in appropriate Device subclasses. (amulhern)
- Add new RaidDevice class for handling RAID aspects of devices. (amulhern)
- Do not set parents attribute if parents param is bad. (amulhern)
2014-10-09 17:36:35 -07:00
Brian C. Lane
692ffd50fe - Organize installer block device name blacklist. (#1148923) (dlehman)
- Add likely to be raised exceptions to catch block (#1150174) (amulhern)
- Canonicalize MD_UUID* values in udev.py (#1147087) (amulhern)
- Split up devices.py. (dlehman)
- Fix some pylint errors introduced in recent commits. (dlehman)
- Return early when setting new size for non-existent partition. (dlehman)
- Raise an exception when we find orphan partitions. (dlehman)
- Fall back to parted to detect dasd disklabels. (dlehman)
- Omit pylint false positive (amulhern)
- Revert "pylint hack" (amulhern)
- Remove unused import (amulhern)
- Remove unused import (amulhern)
- pylint hack (amulhern)
- Make sure autopart requests fit in somewhere (#978266) (vpodzime)
- Work with free region sizes instead of parted.Geometry objects (vpodzime)
- Check that we have big enough free space for the partition request (vpodzime)
- Allow specifying thin pool profiles (vpodzime)
- Allow specifying minimum entropy when creating LUKS (vpodzime)
- Allow user code provide callbacks for various actions/events (vpodzime)
- Change default min_value from 10 to 1 in humanReadable() (amulhern)
- Rewrite of Size.humanReadable() method (amulhern)
- Factor out commonalities in xlated_*_prefix() methods. (amulhern)
- Use named constants for binary and decimal factors. (amulhern)
- Use UPPER_CASE for constants (amulhern)
2014-10-08 17:44:09 -07:00
Brian C. Lane
7a686fe265 - Remove a problematic remnant of singlePV. (dlehman)
- Remove all traces of singlePV. (sbueno+anaconda)
- Change the default /boot part on s390x to not be lvm. (sbueno+anaconda)
- Remove redundant check for parents in Blivet.newBTRFS. (dlehman)
- Use Decimal for math in Size.convertTo. (dlehman)
- Filter out free regions too small for alignment of partitions. (dlehman)
- Disable LVM autobackup when doing image installs (#1066004) (wwoods)
- Add attribute 'flags.lvm_metadata_backup' (wwoods)
- lvm_test: refactoring + minor fix (wwoods)
- devicelibs.lvm: refactor _getConfigArgs()/lvm() (wwoods)
- devicelibs.lvm: fix pvmove(src, dest=DESTPATH) (wwoods)
- Only pad for md metadata if pvs use multiple disks. (dlehman)
- Align free regions used for partition growing calculations. (dlehman)
- Try to align end sector up when aligning new partitions. (dlehman)
- Remove obsolete conversion of size to float. (dlehman)
- Honor size specified for explicit extended partition requests. (dlehman)
- Honor zerombr regardless of clearpart setting. (dlehman)
- Fix treatment of percent as lvm lv size spec. (dlehman)
- Change variable keyword (#1075671) (amulhern)
- Remove unused import (#1075671) (amulhern)
- Don't mix target and discovery credentials (#1037564) (mkolman)
- Make sure /boot/efi is metadata 1.0 if it's on mdraid. (pjones)
- iscsi: fix root argument being overriden by local variable (#1144463)
  (rvykydal)
- iscsi: add iscsi singleton back (#1144463) (rvykydal)
2014-09-30 16:56:57 -07:00
Brian C. Lane
ef7adc2128 - Fix pylint errors from recent btrfs commits. (dlehman)
- Only cancel actions on disks related to the one we are hiding. (dlehman)
- Cancel actions before hiding descendent devices. (dlehman)
- Improve handling of device removals/additions from the devicetree. (dlehman)
- The first format destroy action should obsolete any others. (dlehman)
- Do not allow modification or removal of protected devices. (dlehman)
- Propagate mount options for btrfs members to all volumes/subvolumes.
  (dlehman)
- Properly identify dm devices even when udev info is incomplete. (dlehman)
- Do not mount btrfs to list subvolumes outside installer_mode. (dlehman)
- Reset default subvolume prior to removing the default subvolume. (dlehman)
- Increase max size for btrfs to 16 EiB. (#1114435) (dlehman)
- Improve adjustment for removal of a subvol in BTRFSFactory. (dlehman)
- Set dummy mountpoint in ksdata for lvm thin pools. (dlehman)
- Add an epoch to blivet. (sbueno+anaconda)
- Check if device has enough members when setting RAID level (#1019685)
  (amulhern)
- Add BTRFSValueError error and use in btrfs related code (#1019685) (amulhern)
- iscsi: mount partitions in initramfs for root on iscsi (#740106) (rvykydal)
- Remove poolMetaData (#1021505) (amulhern)
- Revert "Allow use of a single path if multipath activation fails. (#1054806)"
  (vpodzime)
- Add a release make target (bcl)
- Prefer ID_SERIAL over ID_SERIAL_SHORT (#1138254) (vpodzime)
- Allow use of a single path if multipath activation fails. (#1054806)
  (dlehman)
2014-09-19 17:23:39 -07:00
Brian C. Lane
8ad686bda9 - Update makebumpver to include flags on first request (bcl)
- Condense and comment some devicelibs.dasd methods (#1070115) (amulhern)
- Add a test file for DASD handling (#1070115) (amulhern)
- Pylint inspired cleanup (#1070115) (amulhern)
- Add a property for read-only devices. (dshea)
- Get rid of misleading comment (#1066721) (amulhern)
- Allow user code creating free space snapshot (vpodzime)
- Add two functions to enable manual addition of ECKD DASDs. (sbueno+anaconda)
- Make prefering leaves the default in getDeviceByPath (#1122081) (amulhern)
- Make _filterDevices() return a generator consistently (#1122081) (amulhern)
- Split string of symlinks into array of strings (#1136214) (amulhern)
- Don't put "Linux" in a root's name if it's already there. (clumens)
2014-09-10 17:32:30 -07:00
Brian C. Lane
eb0bb98384 - Mock pyudev since libudev will not be on the builders. (dlehman)
- Update selinux tests for default context of mounts under /tmp. (dlehman)
- Clean up mocking done by udev tests when finished. (dlehman)
- Remove unused lvm and md activation code. (dlehman)
- Bypass size getter when mocking new devices. (dlehman)
- Simplify udev.device_get_uuid. (dlehman)
- Don't pass md array UUID as member format UUID. (dlehman)
- Update md name when lookup relied on UUID. (dlehman)
- Remove an obsolete block related to unpredictable md device names. (dlehman)
- Get md member and array UUIDs for format ctor from udev. (dlehman)
- Look in udev data for md member UUID. (dlehman)
- Remove some unused multipath-specific functions from blivet.udev. (dlehman)
- Adapt multipath detection code to external pyudev module. (dlehman)
- Keep lvm and md metadata separate from udev info. (dlehman)
- Replace our pyudev with the package python-pyudev. (dlehman)
- Add a bunch of tests for mdadd. (amulhern)
- Make has_redundancy() a method rather than a property and revise mdadd.
  (amulhern)
- Omit unnecessary class hierarchy related boilerplate. (amulhern)
- Add a test for activation. (amulhern)
- Add a test for mddetail on containers. (amulhern)
- Still attempt to destroy even if remove failed. (amulhern)
- Use long messages for unittest errors. (amulhern)
- Fix mdnominate error message. (amulhern)
- Cosmetic changes for the swapSuggestion function (vpodzime)
- Break once metadata value is found. (amulhern)
- Fix issues reported by pyflakes (vpodzime)
- Remove tests for the sanityCheck (vpodzime)
- Move _verifyLUKSDevicesHaveKey and its exception to anaconda (vpodzime)
- Remove sanityCheck functions from blivet sources (vpodzime)
- Remove an unused closure function (vpodzime)
- Remove two methods that are never called (vpodzime)
- Add some tests for blivet.partitioning.addPartition. (dlehman)
- Add a couple of tests for blivet.partitioning.DiskChunk. (dlehman)
- Add a DiskFile class for testing partitioning code as a non-root user.
  (dlehman)
- Add a contextmanager to create and remove sparse tempfiles. (dlehman)
- Fix sphinx formatting of code blocks in devicefactory docstrings. (dlehman)
- Mock selinux when building docs. (dlehman)
- Include doc files when installing on readthedocs. (dlehman)
- _maxLabelChars is no longer used by anything (bcl)
- tests: Add tests for HFSPlus labels (#821201) (bcl)
- Write a fs label for HFS+ ESP (#821201) (bcl)
- Mock non-standard modules so we can generate API docs on readthedocs.
  (dlehman)
- Split mdadd into separate functions. (amulhern)
- Refactor mdraid tests. (amulhern)
- Add a method to extract information about an mdraid array (amulhern)
- Extend mdadm() to capture output (amulhern)
- Be more robust in the face of possible changes to mdadm's UUIDs. (amulhern)
- Factor canonicalize_UUID() into separate method. (amulhern)
- Add a docstring to mdraid.mdexamine (amulhern)
- Remove DeviceFormat.probe() method (amulhern)
- Remove all references to mdMinor in current code base. (amulhern)
- Generalize the error message for the array level (amulhern)
- Use super() instead of explicit parent name (amulhern)
- Remove commented out import. (amulhern)
- Make docstring more precise. (amulhern)
- Minor fix of a docstring. (rvykydal)
- Get rid of partedFlags field. (amulhern)
2014-08-28 19:54:32 -07:00
Brian C. Lane
69285c5ad3 - Fix conf.py version bumping (bcl)
- Add some tests for Chunk and Request class hierarchy. (dlehman)
- Honor the skip list when allocating leftover sectors. (dlehman)
- A Chunk is done growing when its pool is empty. (dlehman)
- Don't use integer division to calculate a fraction. (dlehman)
- Bump version in sphinx config from scripts/makebumpver. (dlehman)
- Remove spec= from Size usage in intro.rst. (dlehman)
- Attempt to reset the uuid of the mdraid member device (#1070095) (amulhern)
- Add new method udev.device_get_md_device_uuid() method (#1070095) (amulhern)
- Canonicalize mdadm generated UUIDS (#1070095) (amulhern)
- Add a udev.device_get_md_metadata() method to udev and use it. (amulhern)
- Change use of METADATA to MD_METADATA. (amulhern)
- Check for md_level of None (amulhern)
- Do not convert the result of udev.device_get_md_devices() to int. (amulhern)
- Add documentation to udev.device_get_md_*() methods. (amulhern)
- Document udev.device_get_uuid() method. (amulhern)
- Add a few small tests for mdexamine (amulhern)
- Add test for raid level descriptor None. (amulhern)
- Use context manager with assertRaises*() tests. (amulhern)
- Change uuid parameter to array_uuid (amulhern)
- Remove udev_ prefix from udev methods. (amulhern)
- Remove all references to DeviceFormat.majorminor (amulhern)
- Use add_metaclass instead of with_metaclass. (amulhern)
- Disable redefined-builtin warning. (amulhern)
- Use range instead of xrange in generateBackupPassphrase() (amulhern)
- Add a simple test of generateBackupPassphrase() result format (amulhern)
- Python3 compatibility (rkuska)
- Replace python-setuptools-devel BR with python-setuptools (bcl)
2014-07-11 18:08:20 -07:00
Brian C. Lane
0b6cd6b01e - Do not use udev info to get the name of the device. (amulhern)
- Remove unnecessary fanciness about importing devices. (amulhern)
- Disable some pylint warnings that arise due to anaconda versions. (amulhern)
- Allow RAID1 on EFI (#788313) (amulhern)
2014-07-02 17:40:54 -07:00
Toshio Kuratomi
453f93859f Replace python-setuptools-devel BR with python-setuptools 2014-06-30 14:30:46 -07:00
Brian C. Lane
546a539fe8 - When logging, indicate whether exception was ignored by blivet. (amulhern) 2014-06-26 17:24:26 -07:00
Brian C. Lane
09ea638e1d - Only import ROOT_PATH if needed (bcl)
- Add early keyword to setUpBootLoader (#1086811) (bcl)
- Only log a warning about labeling if something is wrong (#1075136) (amulhern)
- When adding an md array, allow adding incomplete arrays (#1090009) (amulhern)
- Add a flag to control whether a degraded md raid array is used (#1090009)
  (amulhern)
- Remove preferLeaves parameter from getDeviceByPath() (amulhern)
- Factor out commonalities among getDevice[s|]By* methods. (amulhern)
- Omit special check for md devices in addUdevDevice(). (amulhern)
- Remove unused 'slaves' variable. (amulhern)
- Move down or remove assignment to device in add* methods. (amulhern)
- Move DevicelibsTestCase up to the top level of the testing directory.
  (amulhern)
- Accept None for btrfs raid levels (#1109195) (amulhern)
- Add a test for a btrfs error associated with small devices (#1109195)
  (amulhern)
2014-06-25 16:58:40 -07:00
Brian C. Lane
e62d1ff802 - Make DevicelibsTestCase devices configurable. (amulhern)
- Use correct parameters in __init__() in subclasses of unittest.TestCase.
  (amulhern)
- Add num_blocks parameter to makeLoopDev(). (amulhern)
- Move skipUnless decorator to the top level class of skipped classes.
  (amulhern)
- Explicitly accept a string as well as a RAIDLevel object. (amulhern)
- Update BTRFS initializer comments for level type. (amulhern)
- Remove some extra imports. (amulhern)
- Add method to set the default disklabel (#1078537) (bcl)
- Do not try to activate dmraid sets if the dmraid usage flag is false
  (mkolman)
- Use the value of the Anaconda dmraid flag to set the Blivet dmraid flag
  (mkolman)
- Use the value of the Anaconda ibft flag to set the Blivet ibft flag (mkolman)
- Ignore _build directory in doc directory. (amulhern)
- Change intersphinx mapping to avoid linkcheck redirect errors. (amulhern)
- Remove doctest target from Makefile. (amulhern)
- Allow the table of contents to go one level deeper. (amulhern)
- Automate generation of the .rst files which just set up the modules.
  (amulhern)
2014-06-19 16:54:07 -07:00
Brian C. Lane
599982d087 - Skip device name validation for some device types. (dlehman)
- Add a property indicating whether a device is directly accessible. (dlehman)
- Add support for read-only btrfs snapshots. (dlehman)
- Add tests for snapshots. (dlehman)
- Special treatment for getting parted device for old-style lvm snapshots.
  (dlehman)
- Some devices have immutable formatting. (dlehman)
- Detect existing btrfs snapshots. (dlehman)
- Drop special accounting for snapshot space usage in VG. (dlehman)
- Use LVMSnapshotDevice when populating the devicetree. (dlehman)
- Add Device classes for snapshots. (dlehman)
- Add ignore_skip keyword arg to lvactivate. (dlehman)
- Add optional kwarg to force removal of a logical volume. (dlehman)
- Add backend functions for creating and managing snapshots. (dlehman)
- Add docstrings for BTRFSVolumeDevice and BTRFSSubVolumeDevice. (dlehman)
- Remove duplicate portion of lvm config string. (dlehman)
- Reset the devicetree before tearing everything down in _cleanUp. (dlehman)
- Make sure disk filters are applied even if populate fails. (dlehman)
- Sync the spec file with downstream (vpodzime)
2014-06-12 18:21:18 -07:00
Vratislav Podzimek
885ae44ac3 - IPSeriesPPC now supports GPT in Open Firmware (hamzy)
- Fix device name validation for devices that can contain / (#1103751) (dshea)
- Add a getRaidLevel() convenience method to raid.py (amulhern)
- Make a StorageDevice.raw_device property and use it where appropriate
  (amulhern)
- Simplify a small chunk of Blivet.updateKSData() (amulhern)
- Move the code for getting a space requirement from devicefactory to raid.
  (amulhern)
- Make all devicefactory classes uses RAID objects instead of strings.
  (amulhern)
- Remove devicefactory.get_raid_level from blivet (amulhern)
- Put get_supported_raid_levels in devicefactory.py (amulhern)
- Make BTRFS devices use RAID objects instead of strings for levels (amulhern)
- Add lists of supported RAID levels for btrfs and lvm (amulhern)
- Add "linear" to mdraid's list of supported raid levels. (amulhern)
- Remove getRaidLevel() from mdraid file and make RAID_levels public (amulhern)
- Check for required methods in MDRaidLevels.isRaidLevel. (amulhern)
- Use has_redundancy property to decide how to add a member to an array.
  (amulhern)
- Update the mdraid.mdadd comments (amulhern)
- Use has_redundancy raid property when checking whether a device is removable
  (amulhern)
- Make createBitmap() a property and update tests appropriately. (amulhern)
- Add a Dup class to the various descendants of RAIDLevel. (amulhern)
- Add an is_uniform property to the RAID levels. (amulhern)
- Add a has_redundancy method that returns True if there is actual redundancy
  (amulhern)
- Add Linear and Single to the RAID classes. (amulhern)
- Move Container class to raid package and tidy it up (amulhern)
- Allow the RAID object itself to be a valid RAID descriptor for lookup.
  (amulhern)
- Adjust RaidLevel hierarchy so that all raid level objects extend RAIDLevel
  (amulhern)
- No longer use _standard_levels as the default set of RAID levels. (amulhern)
- Extract selection of members in complete() into a separate method. (amulhern)
- Remove DMRaidArrayDevice.members property. (amulhern)
- Comment mdraid.mdcreate() and update tests appropriately. (amulhern)
- Import name 'lvm' instead of names from lvm package. (amulhern)
 Please enter the commit message for your changes. Lines starting
2014-06-09 08:06:18 +02:00
Dennis Gilmore
df8e05936f - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 13:52:27 -05:00
Brian C. Lane
816f2b3d45 - Add tests for setting device's parent list directly (vpodzime)
- Do not alter the ParentList being iterated over (#1083581) (vpodzime)
- Do not limit ThinLV's size to VG's free space (vpodzime)
- Take extra RAID metadata into account when growing LV (#1093144) (vpodzime)
- Move apply_chunk_growth outside of a for-cycle (vpodzime)
- Multiple arguments for string formatting need to be in parentheses (#1100263)
  (mkolman)
- Make print statements Python 3 compatible (mkolman)
- Validate device names (dshea)
- Use a setter for Device.name as foretold by the prophecy of TODO (dshea)
2014-05-28 16:58:13 -07:00
Brian C. Lane
c148c01ec1 - Remove extra quotes from the xfs_db arguments. (dshea)
- Factor duplicate code in __deepcopy__ methods into one method (#1095244)
  (amulhern)
- Rearrange code related to handleUdevDeviceFormat() (#1095329) (amulhern)
- Make dumpState catch and log all AttributeErrors (#1095329) (amulhern)
- Add sectorSize property to catch and handle missing partedDevice (#1095329)
  (amulhern)
- Get rid of remaining uses of spec keyword for Size() in examples directory.
  (amulhern)
- Generalize false positive regular expression for multiple pylint versions
  (amulhern)
- Do not run some tests unless running on Jenkins. (amulhern)
- Miscellaneous pylint fixes. (amulhern)
- Globally disable pointless string statement warning (amulhern)
- Disable unused argument warning for 'args' in TmpFSDevice constructor
  (amulhern)
- Omit 'args' parameter from formats constructors (amulhern)
- Disabled unused argument warning for kwargs in formats.destroy() (amulhern)
- Omit *args from parameters for format.create() and formats.destroy()
  (amulhern)
- Omit *args from parameters in formats.setup() (amulhern)
- Make formats.teardown() not take any extra parameters. (amulhern)
- Make formats.mount use explicit keywords instead of kwargs. (amulhern)
- Remove non-self params from FS.doResize method (amulhern)
- Make doFormat use regular style keyword parameters (amulhern)
- Do not use *args, **kwargs idiom in scheduleCreateFormat. (amulhern)
- Do not use *args, **kwargs idiom in various schedule* auxiliary test methods.
  (amulhern)
- Remove upgrading param from turnOnSwap() (amulhern)
- Disable unused-argument warning (amulhern)
- Disable pylint unused-argument warning. (amulhern)
2014-05-20 16:49:43 -07:00
Brian C. Lane
5b0eab2604 - Split ROOT_PATH usage into getTargetPhysicalRoot()/getSysroot() (walters)
- Update and fix copyright info for docs. (dlehman)
- Add some tests for extended partition management. (dlehman)
- Add some tests that verify the results of DeviceTree.populate. (dlehman)
- Add a base class for tests backed by disk image storage. (dlehman)
- Adapt examples to examples/common.py function dispersement. (dlehman)
- Change devices.SparseFileDevice._create to use util.create_sparse_file.
  (dlehman)
- Move set_up_logging and create_sparse_file into blivet.util for reuse.
  (dlehman)
- Make examples.common.tear_down_disk_images a DeviceTree method. (dlehman)
- Fix handling of devices activated as a side-effect of actions. (dlehman)
- Check for problematic active devices before processing any actions. (dlehman)
- Split some large blocks out of DeviceTree.processActions. (dlehman)
- Explicitly requested extended partitions already have an action. (dlehman)
- Fix handling of extended partitions across various modes of operation.
  (dlehman)
- Handle the case of md arrays getting activated from outside blivet. (dlehman)
- Make an extra effort to remove dm partition nodes that want to stay.
  (dlehman)
- Fix handling of clearing a partitioned disk and leaving it cleared. (dlehman)
- Don't check for disklabels on partitions. (dlehman)
- Update targetSize to reflect actual size after a device is created. (dlehman)
- Remove redundant msecs from logging timestamp. (dlehman)
- Make signature of Size.__new__ match signature of Decimal.__new__ (amulhern)
- Change Size so that it takes a single value parameter. (amulhern)
- Change all 'format' keyword args to 'fmt' in Device constructors (amulhern)
- Change format keyword argument to fmt in scheduleCreateFormat (amulhern)
- Change keyword parameters in devicetree.findActions (amulhern)
- Change ActionCreateFormat constructor keyword argument to 'fmt' (amulhern)
- Remove unused parameter 'ignoreErrors' from umountFilesystems() (amulhern)
- Remove parameter 'raiseErrors' from mountFilesystems() methods. (amulhern)
- Disable unused argument warning for 'major' and 'minor' (amulhern)
- Set dummy functions as values rather than via function definition syntax.
  (amulhern)
- Pass size value to superconstructor for LVMVolumeGroupDevice. (amulhern)
- Sort the pylint-false-positives file (amulhern)
- Do not disable unused argument warning. (amulhern)
- Omit pylint warning about disabled warnings or errors from pylint log.
  (amulhern)
- Put the pyblock warning in pylint-false-positives (amulhern)
- Remove obsolete documentation for parameter 'label'. (amulhern)
2014-05-08 17:31:58 -07:00
Brian C. Lane
5c5e71ed1e - Adjust the available size on each disk using chunk size. (amulhern)
- Removed some now unused methods from devices (#1085474) (amulhern)
- Rename size() method to get_size() method. (amulhern)
- Remove unused get_size method (#1085474) (amulhern)
- Use raid.size method to get size of device (#1085474) (amulhern)
- Add a size() method to the raid classes (#1085474) (amulhern)
- Move line that might throw an MDRaid exception inside try block (#1085474)
  (amulhern)
- Check whether type is mdbiosraidarray before checking smallest member
  (#1085474) (amulhern)
- Log if there was a failure to calculate the size of the MDRaidArrayDevice
  (#1085474) (amulhern)
- Rename get_raw_array_size to get_net_array_size (#1085474) (amulhern)
- Rename _get_size to _trim, which describes its function better (#1085474)
  (amulhern)
- Improve comments on a few methods (#1085474) (amulhern)
- Make RAIDLevels iterable (#1085474) (amulhern)
- Update makebumpver for python-bugzilla 1.0.0 (bcl)
- Disable unused argument warning for 'key_file' in devicelibs.crypto methods
  (amulhern)
- Disable unused argument warning for 'del_passphrase' in luks_remove_key
  (amulhern)
- Disable unused argument warning for 'data' in doAutoPartition (amulhern)
- Disable unused argument warning for 'info' in handleUdevLuksFormat (amulhern)
- Disable unused argument warning for 'disks' in get_pv_space. (amulhern)
- Remove pointless parameters from unittest methods. (amulhern)
- Disable a no member warning for EddTestFS initializer. (amulhern)
- Get rid of unused argument 'args' in MakeBumpVer constructors (amulhern)
- Changes to _parseOneLine() and its single invocation. (amulhern)
- Remove obsolete comment (amulhern)
- Rename to avoid redefining parameter built-ins (amulhern)
- Change name to avoid redefining built-in (amulhern)
- Remove unused parameter in makeupdates. (amulhern)
- Removed unused argument 'options' from testMount (amulhern)
- Make signature of _setSize match that of the method it overrrides. (amulhern)
- Actually use argv parameter (amulhern)
- Pass fname as first argument to shutil.copy2 (amulhern)
- Remove minimumSector method and _minimumSector attribute (amulhern)
- Disable not-callable pylint warning. (amulhern)
- Set child_factory_fstype to None in DeviceFactory (amulhern)
- Suppress unpacking-non-sequence pylint warning (amulhern)
- Prefix name with defining package (amulhern)
- Update Platform instance from flags instead of replacing it. (#1090646)
  (dlehman)
- Rename to avoid redefining built-ins where the redefinition is method local.
  (amulhern)
- Set device.format in else block of try/except/else. (amulhern)
- Do not run pylint on sphinx generated conf.py (amulhern)
- Get rid of a redefined builtin while simplifying method. (amulhern)
- Compress loop into generator list comprehension (amulhern)
- Rewrite resize() method to depend on _resizable. (amulhern)
- Remove definition of LVMThinLogicalVolumeDevice._resizable (amulhern)
- Add an attribute docstring for _resizable. (amulhern)
- Correct comment on resizable property (amulhern)
2014-05-05 16:24:03 -07:00
Brian C. Lane
9c68a85146 - Don't apply action until after all checks have passed. (dlehman)
- Apply action for extended partition creation. (dlehman)
- Fix an issue introduced in commit a210eb5c. (dlehman)
- Move changes from action ctors into apply methods. (dlehman)
- Tell lvm to prefer /dev/mapper/ and /dev/md/ to dm-X and mdX nodes. (dlehman)
- Use the right md UUID when trying to look one up from addUdevDevice.
  (dlehman)
- Pass UUID of existing md array to superclass constructor. (dlehman)
- Fix accounting related to addition of md member devices. (dlehman)
- Add some more tests for the Size.humanReadable method (vpodzime)
- If size is an integer value, show it as an integer value (vpodzime)
- Make sure that using just k/m/g/... results in KiB/MiB/GiB/... (vpodzime)
- Make humanReadable size use binary prefixes and nicer units (vpodzime)
- Round sizes in humanReadable instead of flooring them (vpodzime)
- Do not assign result of evaluating EddTestFS() to a variable (amulhern)
- Rename bits() to numBits() (amulhern)
- Rename to avoid conflict with name in outer scope. (amulhern)
- Put module level code in a method (amulhern)
- Do not use strip() incorrectly (amulhern)
- Disable E1101 (no-member) error (amulhern)
- Use isResize in isShrink and isGrow. (amulhern)
- Suppress W0612 (unused-variable) false positives (amulhern)
- Suppress W0621 warnings (amulhern)
- Add a stub function for get_bootloader (amulhern)
- Suppress W0602 false positives (amulhern)
- Remove BootLoaderError definitions (amulhern)
- Disable E1003 warning. (amulhern)
- Do not cache the DeviceFormat object (amulhern)
- Suppress W0201 error where attribute is set in __new__. (amulhern)
- Add to false positives an error which is not suppressed by a pragma.
  (amulhern)
- Suppress W0201 errors (amulhern)
- Make signature of Size.__str__ match signature of Decimal.__str__ (amulhern)
- Do not evaluate % operator in log message arguments (amulhern)
- Remove suite() methods in tests (amulhern)
- Remove addKeyFromFile() method (amulhern)
- Import name 'deviceaction' where needed (amulhern)
- Setting variables in __init__ (amulhern)
- Log exception information and disable W0703 warning. (amulhern)
- Disable some W0703 warnings (amulhern)
- Disable some W0703 warnings. (amulhern)
- Add a function that logs available exception info. (amulhern)
- Restrict scope of pylint pragmas as much as possible (amulhern)
- Change all pylint numeric codes to mnemonic strings. (amulhern)
2014-04-24 17:04:31 -07:00
Brian C. Lane
5d14ef5e6a - Slightly reduce loop and get rid of obsolete comment (amulhern)
- Slightly rewrite loop to avoid a redefining builtin error (amulhern)
- Simplify find_library and fix redefining built-in errors. (amulhern)
- Make loop variables a little more descriptive (amulhern)
- Make regular expressions raw strings. (amulhern)
- Suppress unused variable warning and check for failure. (amulhern)
- Add W0105 warning about attribute docstrings to false positives (amulhern)
- Make signature of setup() in parent class same as in children (amulhern)
- Suppress some correct pylint warnings (amulhern)
- Get _loopMap.values() when all that's needed is the values (amulhern)
- Obvious fix inspired by pylint E0602 error (amulhern)
- Suppress W0631 warning for abbr and prefix. (amulhern)
- Do not do formatting operation in the argument of the translation (amulhern)
- Remove unnecessary global statements (amulhern)
- Disable W0703 message in test (amulhern)
- Explicitly set the module level platform variable (amulhern)
2014-04-17 17:32:22 -07:00
Brian C. Lane
8aaeca0090 - Do not execute smallestMember property method twice. (amulhern)
- Remove unnecessary function definitions in abstract properties (amulhern)
- Pass format args as arguments to debug method (#1085057) (amulhern)
- Move udev_settle call from util into fs to break circular dependency
  (amulhern)
- Change implicit relative imports to explicit relative imports (amulhern)
- Remove unused imports (amulhern)
- Get rid of os.path import (amulhern)
- Really avoid dynamic import of formats/__init__.py by itself (amulhern)
- Ignore E1101 errors in savePassphrase. (amulhern)
- Add a bunch of E1120 errors to the false positives file (amulhern)
- Make LabelingAsRoot class an abstract class and define two properties
  (amulhern)
- Suppress false positive W0631 error. (amulhern)
- Use self.nic instead of nic (amulhern)
- Make sure _state_functions is a dictionary in base class (amulhern)
- Remove unnecessary lambda wrappers on assertion functions (amulhern)
- Obvious fix inspired by an "Undefined variable warning" (amulhern)
- Remove all references to lvm_vg_blacklist and blacklistVG. (amulhern)
- Update for changes in the anaconda errorHandler API. (dshea)
- Remove unused imports. (amulhern)
- Import from the defining module. (amulhern)
- Move import to top level. (amulhern)
- Do not use implicit relative imports (amulhern)
- Remove wildcard import (amulhern)
- Fix a bug and catch a change in lvm's thin pool layout. (dlehman)
- Plumb uuid down through DMDevice. (dlehman)
2014-04-10 17:17:18 -07:00
Brian C. Lane
c6a73f89a8 - Change labelApp to a more concisely defined abstract property (amulhern)
- Change defaultLabel to a more concisely defined abstract property. (amulhern)
- Change _labelstrRegex to a more concisely defined abstract property.
  (amulhern)
- Make reads property a bit more succinct. (amulhern)
- Make name an abstract property and omit _name (amulhern)
- Remove an unused import from devicelibs/raid.py (vpodzime)
- Fix all pylint errors in pylintcodediff (amulhern)
- Don't run test if the git branch is dirty (amulhern)
- Exit if the specified log file does not exist. (amulhern)
- Update lvm devicelibs tests to reflect recent changes. (dlehman)
- Add required LVs as needed instead of trying to sort by attrs. (dlehman)
- Fix missed conversion of rm->missing in vgreduce call. (dlehman)
- Only gather lvm information one time per DeviceTree.populate call. (dlehman)
- Add support for listing everything to pvinfo and lvs. (dlehman)
- Get lv list from lvm in a more straightforward format. (dlehman)
- Gather lv list where we use it to save from having to stash it. (dlehman)
- Split out common lvm parsing code. (dlehman)
- Add tests that use ParentList as part of Device. (dlehman)
- Parent list length doesn't reflect new member in _addParent. (dlehman)
- Rearrange _startEdd to be a little more obvious. (amulhern)
- Raise exceptions using the new syntax (amulhern)
- Do not import logging twice. (amulhern)
- Suppress unused variable warning (amulhern)
- Get rid of writeRandomUUID. (amulhern)
- Remove unused variable but retain call for its side-effects (amulhern)
- Put docstring in class (amulhern)
- Remove appendiceal assignment (amulhern)
- Keep first parameter "self" (amulhern)
- Omit compile flag (amulhern)
- Move lines beneath __main__ into a main method (amulhern)
- Indent with spaces, not tabs (amulhern)
- Change param default [] to None and convert in method (amulhern)
- Change to a semantically equivalent version of FileDevice.path (amulhern)
- Adapt existing tests to changed signature of some methods (amulhern)
- Don't assign return value to unused variable (amulhern)
- Be specific when catching exceptions (dshea)
- Remove appendiceal assignments (amulhern)
- Remove a lot of unused variables extracted from udev info (amulhern)
- Don't get return values from communicate() if they are ignored (amulhern)
- Use the disk's name in log message (amulhern)
- Get rid of old exception unpacking syntax (dshea)
- Rearranged some iffy exception checking (dshea)
- Replace with a semantically equivalent chunk. (amulhern)
- Remove some unused exception names. (amulhern)
- Remove unused assignment to boot. (amulhern)
- Delete method-local pruneFile function. (amulhern)
- Don't comment out function headers but leave their bodies uncommented
  (amulhern)
- Get rid of unnecessary pass statements (amulhern)
- Put a field and a method in the base class (amulhern)
- Spell parameter self correctly (amulhern)
- Give abstract method the same signature as its overriding methods. (amulhern)
- Catch correct error and disable warning. (amulhern)
2014-04-02 16:27:16 -07:00
Brian C. Lane
c59fbe4f81 - Adapt callers to use the new parent list interface. (dlehman)
- Change management of Device parents to use a simple list interface. (dlehman)
- Convert ContainerDevice to an abstract base class. (dlehman)
- Set device uuid before calling Device ctor. (dlehman)
- Improve the mechanism for VG completeness. (dlehman)
- Support mutually-obsoleting actions. (dlehman)
- Add some checking to MDRaidArrayDevice._setSpares. (dlehman)
- Make sorting by action type part of the action classes. (dlehman)
- Add action classes for container member set management. (dlehman)
- Add a property to provide consistent access to parent container device.
  (dlehman)
- Add type-specific methods for member set management. (dlehman)
- Adapt callers to new method names for add/remove member device. (dlehman)
- Add a ContainerDevice class to consolidate member management code. (dlehman)
- Add backend functions for container member set management. (dlehman)
- Teardown RAID device once testing is over (amulhern)
- Make lvm tests runnable. (amulhern)
- Make crypt tests runnable. (amulhern)
- Replace unnecessarily complicated expression with string multiplication
  (amulhern)
- Suppress unused variable warning for index in range (amulhern)
- Suppress some unused variable warnings. (amulhern)
- Suppress some unused variable warnings (amulhern)
- Update to the new raise syntax (dshea)
- Removed an unnecessary semicolon (dshea)
- Removed a redundant definition of NoDisksError (dshea)
- Specify regular expressions containing backslashes as raw strings (dshea)
- Fixed some questionable indentation (dshea)
- Fix logging function string format warnings. (dshea)
- All size specifications should be Size instances (#1077163) (vpodzime)
- Make sure StorageDevice's self._size is a Size instance (#1077179) (vpodzime)
- Allow creating Size instance from another Size instance (vpodzime)
- Force removal of hidden devices (#1078163) (amulhern)
- Get action_test into working order. (dlehman)
- Update action_test.py to specify sizes using blivet.size.Size. (dlehman)
- Don't corrupt the environment when setting up StorageTestCase. (dlehman)
- Make minSize, maxSize consistent and correct. (dlehman)
- Don't prevent grow actions on devices with no max size. (dlehman)
2014-03-26 17:32:20 -07:00