Bug 1511901

Summary: [Ceph-ansible][Ubuntu] Ansible is failing looking for loop devices when osd_auto_discovery is true
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Pratik Surve <prsurve>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Pratik Surve <prsurve>
Severity: high Docs Contact:
Priority: high    
Version: 3.0CC: adeza, aschoen, ceph-eng-bugs, edonnell, gmeno, hnallurv, nthomas, sankarshan, shan, tserlin
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.0.11-1.el7cp Ubuntu: ceph-ansible_3.0.11-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:50:29 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:
Attachments:
Description Flags
Contains all.yml,osd.yml,inventory and ansible logs none

Description Pratik Surve 2017-11-10 11:56:41 UTC
Created attachment 1350437 [details]
Contains all.yml,osd.yml,inventory and ansible logs

Description of problem:
ceph-ansible is looking for loop device on ubuntu for OSD and getting the failure



Version-Release number of selected component (if applicable):
1-ceph-ansible 3.0.9-2
2-Ubuntu 16.04.3 LTS

How reproducible:
always

Steps to Reproduce:
1.configure all.yml as per doc
2.in osd.yml set osd_auto_discovery: true and osd_scenerio: collocated


Actual results:
"stderr": "create_partition: refusing to create journal on /dev/loop0\ncreate_partition: journal size (5120M) is bigger than device (0M)\nceph-disk: Error: /dev/loop0 device size (0M) is not big enough for journal", 
    "stderr_lines": [
        "create_partition: refusing to create journal on /dev/loop0", 
        "create_partition: journal size (5120M) is bigger than device (0M)", 
        "ceph-disk: Error: /dev/loop0 device size (0M) is not big enough for journal"


Expected results:
Cluster installation must be successfull

Additional info: 

1.tries running ansible after removing loop devices with with OSError: [Errno 2] No such file or directory: '/dev/loop0'" 
2.running playbook on RHEL with creating loop devices playbook was successfull

Comment 5 Christina Meno 2017-11-10 16:11:29 UTC
This bug is not-crucial for 3.0 imho -- moving to 3.1

Comment 7 Sébastien Han 2017-11-13 16:15:05 UTC
Fixed in 3.0.11

Comment 17 errata-xmlrpc 2017-12-05 23:50:29 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, 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-2017:3387

Comment 18 Red Hat Bugzilla 2023-09-14 04:11:38 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days