]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix has_bluestore_label() function
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 4 Feb 2020 21:02:26 +0000 (22:02 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 5 Feb 2020 07:49:03 +0000 (08:49 +0100)
commit148069a20fef79ef8fe510f06879a0de02987eac
treed3ef597cde451c9db95a6cc41e4ae2c02c73a671
parente7c7e513aed3fbf93793bc83d0a7fd461703bf83
ceph-volume: fix has_bluestore_label() function

When using vg/lv, this function throws an error like following:

```
 stderr: unable to read label for test_group/data-lv2: (2) No such file or directory
 stderr: 2020-02-04T21:03:32.153+0000 7fe091af4200 -1 bluestore(test_group/data-lv2) _read_bdev_label failed to open test_group/data-lv2: (2) No such file or directory
```

using `self.abspath` fixes this error.

Fixes: https://tracker.ceph.com/issues/43970
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
src/ceph-volume/ceph_volume/util/device.py