]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix generic activation with raw osds 59573/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 3 Sep 2024 08:20:34 +0000 (10:20 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 3 Sep 2024 08:22:32 +0000 (10:22 +0200)
commit710747031b78948d4a373036f5b8c41269b5a399
treec5857f027d3790ed26f020de7cbf80b89de4e98d
parent73c193453328b3c554c82a3bf245d5f1982fed11
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>
src/ceph-volume/ceph_volume/activate/main.py