Bug 1827349

Summary: [ceph-volume] : devices were filtered when wal-devices are are mentioned causing ceph-ansible failure
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-VolumeAssignee: Andrew Schoen <aschoen>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: high Docs Contact:
Priority: medium    
Version: 4.1CC: aschoen, bniver, ceph-eng-bugs, ceph-qe-bugs, gabrioux, gmeno, hyelloji, nthomas, ravic, tserlin, ykaul
Target Milestone: z2   
Target Release: 4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-14.2.8-99.el8cp, ceph-14.2.8-99.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-30 17:25:33 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:

Description Vasishta 2020-04-23 17:18:14 UTC
Description of problem:
When ceph-volume batch report is already tried on configured OSDs which were configured using wal-dbs, ceph-volume returning RuntimeError saying devices were filtered in non-interactive mode

Version-Release number of selected component (if applicable):
ceph version 14.2.8-39.el7cp 

How reproducible:
Just tried once

Steps followed:
1. Configure cluster with at least once OSD with wal-devices
2. after OSD gets created successfully, run same command again

Actual results:
$ sudo ceph-volume lvm batch --bluestore --yes --prepare --osds-per-device 4 /dev/sdd --wal-devices /dev/sdd /dev/sdc --report --format=json
-->  RuntimeError: 2 devices were filtered in non-interactive mode, bailing out

Expected results:
ceph-volume must not return error if OSDs are running already

Additional info:
Tried on a node where wal-devices were not used
$ sudo ceph-volume lvm batch --bluestore --yes --prepare --osds-per-device 2 /dev/sdc /dev/sdb /dev/sdd --report --format=json
{
    "changed": false, 
    "osds": [], 
    "vgs": []
}

Comment 14 Vasishta 2020-07-21 16:11:45 UTC
*** Bug 1855142 has been marked as a duplicate of this bug. ***

Comment 26 errata-xmlrpc 2020-09-30 17:25:33 UTC
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 (Red Hat Ceph Storage 4.1 Bug Fix 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/RHBA-2020:4144