Charm errs if any rbd pool is erasure encoded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph RBD Mirror Charm |
In Progress
|
Medium
|
Billy Olsen | ||
OpenStack Cinder-Ceph charm |
In Progress
|
Medium
|
Billy Olsen |
Bug Description
As near as I can tell, erasure-coded pools are not supported as the source with rbd-mirror. When the ceph-rbd-mirror charm tries to "mirror pool enable" on an ec pool we get the following error:
librbd:
To work around this, I modified eligible pools in lib/charm/
--- lib/charm/
+++ lib/charm/
@@ -71,7 +71,8 @@
:rtype: dict
"""
return {pool: attrs for pool, attrs in pools.items()
- if 'rbd' in attrs['
+ if ('rbd' in attrs['
+ and 'erasure_
def custom_
"""Provide mirrored pool statistics through juju status."""
The full trace of the above error:
2020-10-05 04:15:55.440 7f14a0fce0c0 -1 librbd:
Traceback (most recent call last):
File "hooks/
main()
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
charm_
File "lib/charm/
subprocess.
File "/usr/lib/
raise CalledProcessEr
subprocess.
Changed in charm-ceph-rbd-mirror: | |
status: | New → In Progress |
assignee: | nobody → Billy Olsen (billy-olsen) |
milestone: | none → 21.04 |
importance: | Undecided → Medium |
Changed in charm-cinder-ceph: | |
importance: | Undecided → Medium |
Changed in charm-glance: | |
importance: | Undecided → Medium |
assignee: | nobody → Billy Olsen (billy-olsen) |
Changed in charm-cinder-ceph: | |
assignee: | nobody → Billy Olsen (billy-olsen) |
status: | New → In Progress |
Changed in charm-ceph-rbd-mirror: | |
milestone: | 21.04 → none |
no longer affects: | charm-glance |
tags: | added: stale |
Subscribed field-medium to see if we can get this change (or something like it) into the charm.