Bug 1896448

Summary: [ceph-ansible] : switch from rpm to containerized - set proper permission - './block': Permission denied
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-AnsibleAssignee: Dimitri Savineau <dsavinea>
Status: CLOSED ERRATA QA Contact: Ameena Suhani S H <amsyedha>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.3CC: anharris, aschoen, ceph-eng-bugs, dsavinea, gabrioux, gmeno, kdreyer, mhackett, nthomas, tserlin, vereddy, vumrao, ykaul
Target Milestone: ---   
Target Release: 3.3z7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.2.53-1.el7cp Ubuntu: ceph-ansible_3.2.53-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-06 18:32:04 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-11-10 15:10:56 UTC
Description of problem:
Tried to migrate rpm based ceph daemons to container based daemons 
pleaybook failed at task "set proper ownership on ceph directories" saying chown: cannot dereference './block': Permission denied"

Version-Release number of selected component (if applicable):
ceph-ansible-3.2.52-1.el7cp.noarch

How reproducible:
Always 2/2

Steps to Reproduce:
1. Configure rpm based cluster on ubuntu node with monitor collocated with OSD (lvm based)
2. configure ceph-ansible on a rhel node and takeover cluster
3. run switch-from-non-containerized-to-containerized-ceph-daemons.yml playbook

Actual results:
"stderr_lines": [
        "chown: cannot dereference './block': Permission denied", 
        "chown: cannot dereference './block': Permission denied", 
        "chown: cannot dereference './block': Permission denied"


Expected results:
Playbook must succesfully migrate all daemons

Additional info:
Had another node whether monitor and OSDs were collocated bu OSD was not lvm based 
I'll be adding my inventory file for reference

Comment 8 errata-xmlrpc 2021-05-06 18:32:04 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 (Important: Red Hat Ceph Storage 3.3 Security and 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/RHSA-2021:1518