Running zap-disk action with devices separated by more then one space dies with an unhelpful error message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph OSD Charm |
In Progress
|
Undecided
|
Peter Sabaini |
Bug Description
Running zap-disk with:
juju run-action --wait ceph-osd/48 zap-disk devices=
This dies with:
2021-05-31 09:23:09 DEBUG zap-disk Traceback (most recent call last):
2021-05-31 09:23:09 DEBUG zap-disk File "/var/lib/
2021-05-31 09:23:09 DEBUG zap-disk zap()
2021-05-31 09:23:09 DEBUG zap-disk File "/var/lib/
2021-05-31 09:23:09 DEBUG zap-disk devices = get_devices()
2021-05-31 09:23:09 DEBUG zap-disk File "/var/lib/
2021-05-31 09:23:09 DEBUG zap-disk raise
2021-05-31 09:23:09 DEBUG zap-disk RuntimeError: No active exception to reraise
This is due to the action not handling the two consecutive whitespaces in the args
Fix proposed to branch: master /review. opendev. org/c/openstack /charm- ceph-osd/ +/793812
Review: https:/