Merge lp:~bjornt/charms/trusty/ceph-radosgw/apt-cache-memonly into lp:~openstack-charmers-archive/charms/trusty/ceph-radosgw/trunk
Proposed by
Björn Tillenius
Status: | Superseded |
---|---|
Proposed branch: | lp:~bjornt/charms/trusty/ceph-radosgw/apt-cache-memonly |
Merge into: | lp:~openstack-charmers-archive/charms/trusty/ceph-radosgw/trunk |
Diff against target: |
35 lines (+9/-5) 1 file modified
hooks/ceph.py (+9/-5) |
To merge this branch: | bzr merge lp:~bjornt/charms/trusty/ceph-radosgw/apt-cache-memonly |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenStack Charmers | Pending | ||
Review via email: mp+227873@code.launchpad.net |
This proposal has been superseded by a proposal from 2014-07-23.
Description of the change
Build the Apt cache in memory when checking the ceph version.
This avoids a race condition where something else is rebuilding
the Apt cache in the same directory.
I also changed the imports, so it's clear that it's the apt_pkg
that is being used. There's another module called apt, which
provides a different API, and importing apt_pkg as apt has
fooled me more than once.
To post a comment you must log in.