Description of problem:
If we try to remove offline brick, the operation is failing with error message "volume remove-brick start: failed: Found stopped brick <hostname>:/bricks/brick1/a1" and this condition is added newly in 3.7.9-6 build.
Currently we have use force option to remove the offline brick and same thing is expected in the failure message to use force option to remove the offline brick to guide the user.
With this users will know the how to remove the offline brick.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a simple volume of any type and start it
2. Kill one of the volume brick
3. Try to remove the killed brick (offline brick)
4. Check the brick failure error message //message won't convey how to remove the brick.
Failure message getting:
]# gluster volume remove-brick Dis <hostname>:/bricks/brick1/a1 start
volume remove-brick start: failed: Found stopped brick <hostname>:/bricks/brick1/a1
Failure is not saying how to remove the offline brick.
Failure message need to have force option help message to remove the offline brick.
Upstream patch : https://review.gluster.org/16630
Verified this bug for distributed volume and distributed replica volume with 3 node cluster.
-> Created Distributed volume with each brick from each node in 3 node cluster.
-> Killed one of the volume brick
-> And tried remove the offline brick using "remove-brick" command
-> Command thrown proper error message like below
"volume remove-brick start: failed: Found stopped brick 10.70.35.216:/bricks/brick0/rep3-2. Use force option to remove the offline brick"
-> Above process tried for distributed replica volume also got proper error message.
Moving this bug to verified state
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.