]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix generic activation with raw osds 59598/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 3 Sep 2024 08:20:34 +0000 (10:20 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 4 Sep 2024 11:28:45 +0000 (11:28 +0000)
commit8dc10a4f3f68a64787fad6496a1f2134f022e198
tree5cc403d6d6f69b8111e2f0741aa43514cb852a5d
parenta7f3b4a397d639843cc4088f596a498fd11cde03
ceph-volume: fix generic activation with raw osds

Typical failure:

```
Running command: /usr/bin/ceph-authtool --gen-print-key
Running command: /usr/bin/ceph-authtool --gen-print-key
--> Failed to activate via raw: activate() takes 1 positional argument but 5 were given
Running command: /usr/bin/ceph-authtool --gen-print-key
Running command: /usr/bin/ceph-authtool --gen-print-key
--> Failed to activate via LVM: could not find osd.0 with osd_fsid 1e764f4a-db4b-4b41-86eb-468efe4c3f44
--> Failed to activate via simple: 'Namespace' object has no attribute 'json_config'
--> Failed to activate any OSD(s)
```

04c93a1ed42 seems to have broken it.
This commit fixes it.

Fixes: https://tracker.ceph.com/issues/67873
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 710747031b78948d4a373036f5b8c41269b5a399)
src/ceph-volume/ceph_volume/activate/main.py