lp://staging/~tribaal/charm-helpers/stable-device-mounted-accepts-partitions
- Get this branch:
- bzr branch lp://staging/~tribaal/charm-helpers/stable-device-mounted-accepts-partitions
Branch merges
- OpenStack Charmers: Pending requested
-
Diff: 68 lines (+45/-1)2 files modifiedcharmhelpers/contrib/storage/linux/utils.py (+3/-0)
tests/contrib/storage/test_linux_storage_utils.py (+42/-1)
Related bugs
Related blueprints
Branch information
Recent revisions
- 158. By Chris Glass
-
Make the is_device_mounted() helper accept partitions as well as devices.
This allows for calling code not to care about wether the device is a partition or a root device:
is_device_mounted( "/dev/sda" ) is valid, and now is_device_ mounted( "/dev/sda1" ) is valid as well and should return sensible values. - 153. By James Page
-
[tribaal,
r=james- page] Use in-memory cache when querying apt to avoid filesystem races - 150. By Marco Ceppi
-
[tribaal] In case the passed device path does not exist, do not bother checking if it's a block device (return False instead of raising).
[tribaal] Add a "is_device_mounted" function to the storage utils on linux. This will be used in the cinder charm, and should replace the similar "device_mounted" function in the ceph charm. The Ceph charm function does not actually work, but since ceph does the right thing and skips devices with mounted partitions, we haven't noticed. - 149. By Marco Ceppi
-
[tribaal] This branch refactors the fetch/__init__.py file to use a common _run_apt_command that retries in case the apt lock cannot be acquired.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://staging/charm-helpers