Bug 1359539

Summary: [ceph-ansible]: purge-cluster - task - 'check for anything running ceph' fails with error 'stderr: grep: write error'
Product: [Red Hat Storage] Red Hat Storage Console Reporter: Rachana Patel <racpatel>
Component: ceph-ansibleAssignee: Christina Meno <gmeno>
Status: CLOSED DUPLICATE QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2CC: adeza, aschoen, ceph-eng-bugs, nthomas, sankarshan
Target Milestone: ---   
Target Release: 2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-25 12:16:03 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 Rachana Patel 2016-07-24 19:54:43 UTC
Description of problem:
=======================
while purging cluster failures have been observed for Task - 'check for anything running ceph' 


Version-Release number of selected component (if applicable):
==============================================================
ceph-ansible-1.0.5-24.el7scon.noarch
or
ceph-ansible-1.0.5-22.el7scon.noarch

How reproducible:
=================
always


Steps to Reproduce:
==================
1. created  cluster with one MON and 3 OSD node
2. Did some I/O using rgw and rados
3. purge cluster using below command:-


Actual results:
================

[root@magna044 ceph-ansible]# ansible-playbook purge-cluster.yml 



TASK: [check for anything running ceph] *************************************** 
<magna078> REMOTE_MODULE command ps awux | grep -v grep | grep -q -- ceph- #USE_SHELL
<magna084> REMOTE_MODULE command ps awux | grep -v grep | grep -q -- ceph- #USE_SHELL
<magna085> REMOTE_MODULE command ps awux | grep -v grep | grep -q -- ceph- #USE_SHELL
<magna090> REMOTE_MODULE command ps awux | grep -v grep | grep -q -- ceph- #USE_SHELL
failed: [magna090] => {"changed": true, "cmd": "ps awux | grep -v grep | grep -q -- ceph-", "delta": "0:00:00.017119", "end": "2016-07-11 02:23:16.142153", "failed": true, "failed_when_result": true, "rc": 0, "start": "2016-07-11 02:23:16.125034", "stdout_lines": [], "warnings": []}
stderr: grep: write error
changed: [magna078] => {"changed": true, "cmd": "ps awux | grep -v grep | grep -q -- ceph-", "delta": "0:00:00.016761", "end": "2016-07-11 02:23:16.142792", "failed": false, "failed_when_result": false, "rc": 1, "start": "2016-07-11 02:23:16.126031", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
failed: [magna084] => {"changed": true, "cmd": "ps awux | grep -v grep | grep -q -- ceph-", "delta": "0:00:00.017559", "end": "2016-07-11 02:23:16.145490", "failed": true, "failed_when_result": true, "rc": 0, "start": "2016-07-11 02:23:16.127931", "stdout_lines": [], "warnings": []}
stderr: grep: write error
failed: [magna085] => {"changed": true, "cmd": "ps awux | grep -v grep | grep -q -- ceph-", "delta": "0:00:00.017466", "end": "2016-07-11 02:23:16.147364", "failed": true, "failed_when_result": true, "rc": 0, "start": "2016-07-11 02:23:16.129898", "stdout_lines": [], "warnings": []}
stderr: grep: write error

Expected results:


Additional info:

Comment 3 Alfredo Deza 2016-07-25 12:16:03 UTC

*** This bug has been marked as a duplicate of bug 1339576 ***

Comment 4 Rachana Patel 2016-07-27 22:44:00 UTC
This bug has been marked p of bug  1339576
1) bug  1339576 it about ubuntu so either we should change description and summary of that bug and mentioned RHEL also or we should have different bug.
(reasoning - verification needs to be done on both and if bug summary , description talks about ubuntu only someone might skip RHEL verification

@alfredo, Could you please do the needful here.

Just mentioning observation here.
In case of RHEL, it proceed to remaining task but on UBNTU it exits process

Comment 5 Alfredo Deza 2016-07-29 14:09:09 UTC
Description for bug #1339576 has been updated