Bug 1862489
| Summary: | LSO autoprovisioning should exclude top level disks that are part of LVM volume group. | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Rohan CJ <rojoseph> | |
| Component: | Storage | Assignee: | Rohan CJ <rojoseph> | |
| Storage sub component: | Local Storage Operator | QA Contact: | Chao Yang <chaoyang> | |
| Status: | CLOSED ERRATA | Docs Contact: | ||
| Severity: | medium | |||
| Priority: | unspecified | CC: | aos-bugs, chaoyang, hekumar, jsafrane, sabose, tsmetana | |
| Version: | 4.6 | |||
| Target Milestone: | --- | |||
| Target Release: | 4.7.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | No Doc Update | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1886835 (view as bug list) | Environment: | ||
| Last Closed: | 2021-02-24 15:14:01 UTC | Type: | Bug | |
| 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: | 1886835 | |||
|
Description
Rohan CJ
2020-07-31 14:25:42 UTC
1.oc get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
local-pv-af4ec62b 2Gi RWO Delete Available lvs 3m46s
local-pv-e20c5fa6 5Gi RWO Delete Available lvs 3m46s
2.
oc get pv local-pv-af4ec62b -ojson | jq .spec.local
{
"path": "/mnt/local-storage/lvs/nvme-Amazon_Elastic_Block_Store_vol005f87b58241cba06-part1"
}
3.
lsblk -o +FSTYPE
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT FSTYPE
nvme0n1 259:0 0 120G 0 disk
|-nvme0n1p1 259:1 0 384M 0 part /boot ext4
|-nvme0n1p2 259:2 0 127M 0 part /boot/efi vfat
|-nvme0n1p3 259:3 0 1M 0 part
`-nvme0n1p4 259:4 0 119.5G 0 part crypto_LUKS
`-coreos-luks-root-nocrypt 253:0 0 119.5G 0 dm /sysroot xfs
nvme1n1 259:5 0 5G 0 disk
`-nvme1n1p1 259:6 0 2G 0 part LVM2_member
`-vgpool-lvstuff 253:1 0 1G 0 lvm
4.
lrwxrwxrwx. 1 root root 15 Oct 9 09:47 nvme-Amazon_Elastic_Block_Store_vol005f87b58241cba06-part1 -> ../../nvme1n1p1
5.
oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.6.0-0.nightly-2020-10-08-210814 True False 7h30m Cluster version is 4.6.0-0.nightly-2020-10-08-210814
oc get csv
NAME DISPLAY VERSION REPLACES PHASE
local-storage-operator.4.6.0-202010061132.p0 Local Storage 4.6.0-202010061132.p0 Succeeded
If prepare the disk first like below: nvme1n1 259:5 0 10G 0 disk `-nvme1n1p1 259:7 0 2G 0 part LVM2_member `-vgpool-lvstuff 253:1 0 1G 0 lvm Then create localvolumeset, there is no pv provisioned for disk nvme1n1p1. Update this bz status based on #7 Will track issue https://bugzilla.redhat.com/show_bug.cgi?id=1862489#c4 in other bugs. Comment 7 seems to indicate that the behaviour is correct. Was Comment 4 differently run? Was the disk made part of a VG after provisioning in the Comment 4 run? -> This can't be helped, the LSO Or was the PV created using a LocalVolume? -> This feature is only for auto-provisioning (localvolumeset) Typo fix, dropped half a sentence: Was the disk made part of a VG after provisioning in the Comment 4 run? -> This can't be helped, the LSO can't help anything after the PV is provisioned. Update the bz status Change target release to 4.6.0? Thanks everyone! Seems like it's all set in the end. *** Bug 1886835 has been marked as a duplicate of this bug. *** 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: OpenShift Container Platform 4.7.0 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-2020:5633 |