lp://staging/~tribaal/charm-helpers/stable-device-mounted-accepts-partitions

Created by Chris Glass and last modified
Get this branch:
bzr branch lp://staging/~tribaal/charm-helpers/stable-device-mounted-accepts-partitions
Only Chris Glass can upload to this branch. If you are Chris Glass please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Chris Glass
Project:
Charm Helpers
Status:
Development

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.

157. By James Page

Cherry pick fix for apt race during version comparison

156. By James Page

[hopem,r=james-page] Fixup support for sectional configuration elements.

155. By James Page

Cherry pick additional fix for fstab persistence

154. By James Page

Cherry pick fix for fstab persistent from lp:charm-helpers

153. By James Page

[tribaal,r=james-page] Use in-memory cache when querying apt to avoid filesystem races

152. By Marco Ceppi

[tvansteenburgh] Add Config wrapper around charm config dictionary.

151. By James Page

[gnuoy,r=james-page] Add helper for comparing package versions

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
This branch contains Public information 
Everyone can see this information.

Subscribers