Bug 1962511
| Summary: | [cephadm] devices with GPT header : Available devices fail to become OSDs | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Vasishta <vashastr> |
| Component: | Cephadm | Assignee: | Adam King <adking> |
| Status: | CLOSED ERRATA | QA Contact: | Manasa <mgowri> |
| Severity: | low | Docs Contact: | Akash Raj <akraj> |
| Priority: | medium | ||
| Version: | 5.0 | CC: | adking, akraj, jharriga, kdreyer, tserlin |
| Target Milestone: | --- | ||
| Target Release: | 5.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ceph-16.2.8-14.el8cp | Doc Type: | Bug Fix |
| Doc Text: |
.Unavailable devices are no longer passed when creating OSDs in a batch
Previously, devices with GPT headers were not marked as unavailable. Cephadm would attempt to create OSDs on those devices, along with other valid devices, in a batch leading to failure of the batch OSD creation, since OSDs cannot be created on devices with GPT headers. This would not create OSDs.
With this fix, unavailable devices are no longer passed when creating OSDs in a batch and having devices with GPT headers no longer blocks creating OSDs on valid devices.
|
Story Points: | --- |
| Clone Of: | 1908065 | Environment: | |
| Last Closed: | 2022-08-09 17:35:53 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2102272 | ||
|
Description
Vasishta
2021-05-20 08:51:38 UTC
Sequence of operations - 1) Boot strapped cluster using - cephadm -v --image registry-proxy.engineering.redhat.com/rh-osbs/rhceph:ceph-5.0-rhel-8-containers-candidate-54312-20210519174049 bootstrap --mon-ip 10.8.129.101 --cluster-network 172.20.20.0/24 2) checked cephadm shell ceph-volume inventory and cephadm shell ceph orch device ls To make sure that all three devices on host we listed as available 3) Created gpt labels on one of the devices using parted /dev/sdd mklabel gpt and checked cephadm shell ceph-volume inventory and cephadm shell ceph orch device ls to make sure that the device with gpt label created was marked as not available. 'cephadm shell ceph orch device ls' had to be tried after intervals to see that changes updated (Did not know about --refresh) 4) Executed ceph orch apply osd --all-available-devices And observed mgr logs sudo journalctl -fu ceph-d66b64e4-b923-11eb-ac53-0cc47a6ee150.juyiug.service and observed that device with gpt label was not excluded from the list of available devices and operation failed as ceph-volume fails to configure OSD on devices with GPT headers. doesn't block 5.0 This bug was not blocker for 5.0 , so i guess we can wait to have Cephadm agent in downstream. WDYT Sebastian? Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Red Hat Ceph Storage Security, Bug Fix, and Enhancement Update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5997 |