Bug 1359539 - [ceph-ansible]: purge-cluster - task - 'check for anything running ceph' fails with error 'stderr: grep: write error'
Summary: [ceph-ansible]: purge-cluster - task - 'check for anything running ceph' fail...
Keywords:
Status: CLOSED DUPLICATE of bug 1339576
Alias: None
Product: Red Hat Storage Console
Classification: Red Hat Storage
Component: ceph-ansible
Version: 2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: 2
Assignee: Christina Meno
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-24 19:54 UTC by Rachana Patel
Modified: 2016-07-29 14:09 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-25 12:16:03 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.