Bug 1339576
Summary: | [ceph-ansible] purge-cluster fails with "grep: write error" | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Storage Console | Reporter: | Tejas <tchandra> |
Component: | ceph-ansible | Assignee: | Alfredo Deza <adeza> |
Status: | CLOSED ERRATA | QA Contact: | ceph-qe-bugs <ceph-qe-bugs> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2 | CC: | adeza, aschoen, ceph-eng-bugs, flucifre, hnallurv, kdreyer, nthomas, racpatel, sankarshan, tchandra |
Target Milestone: | --- | ||
Target Release: | 2 | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | ceph-ansible-2.1.1-1.el7scon | Doc Type: | No Doc Update |
Doc Text: |
undefined
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-03-14 15:50:34 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
Tejas
2016-05-25 11:20:07 UTC
@tejas can you try to run manually the grep command when this failure happens? I wasn't able to reproduce locally: ps awux | grep -v grep | grep -q -- ceph- hi Alfredo, when I run the command manually: root@magna052:~# ps awux | grep -v grep | grep -q -- ceph- root@magna052:~ there is no output. However the ceph processes are running on the system: root@magna052:~# ps awux | grep ceph- ceph 21422 0.1 0.1 352988 48352 ? Ssl 05:55 0:00 /usr/bin/ceph-mon -f --cluster ceph-cluster12 --id magna052 --setuser ceph --setgroup ceph ceph 23214 5.8 0.1 850816 45836 ? Ssl 05:55 0:30 /usr/bin/ceph-osd -f --cluster ceph-cluster12 --id 0 --setuser ceph --setgroup ceph ceph 23814 3.0 0.1 848780 39468 ? Ssl 05:56 0:15 /usr/bin/ceph-osd -f --cluster ceph-cluster12 --id 1 --setuser ceph --setgroup ceph ceph 24359 1.7 0.1 846732 38504 ? Ssl 05:56 0:08 /usr/bin/ceph-osd -f --cluster ceph-cluster12 --id 2 --setuser ceph --setgroup ceph root 25366 0.0 0.0 16576 2096 pts/0 S+ 06:04 0:00 grep --color=auto ceph- root@magna052:~# Maybe the "ps awux | grep -v grep | grep -q -- ceph-" is not able to see the ceph processes? Thanks, Tejas @tejas the "-q" flag in grep will silent output. It doesn't mean that it "is not able to see ceph processes". Did you run "ps awux | grep -v grep | grep -q -- ceph-" when the failure was triggered? (this is a requirement) *** Bug 1359539 has been marked as a duplicate of this bug. *** After investigating this a bit, I found that the "-q" flag in the last portion of the shell command is causing the error. If removed, the command will not fail and work as expected. The idea behind the "-q" flag is that it will exit immediately at the first match while not sending any output to stdout. Since it is causing the (reproducible) issue, the code change will only involve a removal *** Bug 1359537 has been marked as a duplicate of this bug. *** Pull request opened: https://github.com/ceph/ceph-ansible/pull/900 This will ship concurrently with RHCS 2.1. *** Bug 1354687 has been marked as a duplicate of this bug. *** This issue was raised with the older ceph-ansible. In ceph-ansible 2.1 I have not not seen this issue on Ubuntu, so I will mark this verified. Thanks, Tejas 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/RHSA-2017:0515 |