Actions
Bug #10950
closedUnable to remove MDS host: error handling
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Recap:
I have this situation (Ceph 0.87 on Centos 7):
- ceph mds dump
dumped mdsmap epoch 84
epoch 84
flags 0
created 2015-02-24 15:55:10.631958
modified 2015-02-25 16:18:23.019144
tableserver 0
root 0
session_timeout 60
session_autoclose 300
max_file_size 1099511627776
last_failure 62
last_failure_osd_epoch 1656
compat compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table}
max_mds 1
in 0
up {0=23376}
failed
stopped
data_pools 7,8
metadata_pool 6
inline_data disabled
23376: 192.168.0.1:6927/713332 'z-srv-m-cph01' mds.0.9 up:active seq 7
23432: 192.168.0.1:6801/754154 '192.168.0.1' mds.-1.0 up:standby seq 1
To remove '192.168.0.1'
I have to:- service ceph stop mds.'192.168.0.1'
=== mds.192.168.0.1 ===
Stopping Ceph mds.192.168.0.1 on zrh-srv-m-cph01...kill 754154...done
- ceph mds fail 23432
- ceph mds rm 23432 '192.168.0.1'
Traceback (most recent call last):
File "/bin/ceph", line 862, in <module>
sys.exit(main())
File "/bin/ceph", line 805, in main
sigdict, inbuf, verbose)
File "/bin/ceph", line 405, in new_style_command
valid_dict = validate_command(sigdict, cmdargs, verbose)
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 910, in validate_command
matched = matchnum(args, sig, partial=True)
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 730, in matchnum
validate_one(word, desc, partial)
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 705, in validate_one
desc.instance.valid(word, partial)
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 356, in valid
t, i = s.split('.')
ValueError: too many values to unpack
OR:
- ceph mds rm 23432 mds.'192.168.0.1'
Traceback (most recent call last):
File "/bin/ceph", line 862, in <module>
sys.exit(main())
File "/bin/ceph", line 805, in main
sigdict, inbuf, verbose)
File "/bin/ceph", line 405, in new_style_command
valid_dict = validate_command(sigdict, cmdargs, verbose)
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 910, in validate_command
matched = matchnum(args, sig, partial=True)
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 730, in matchnum
validate_one(word, desc, partial)
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 705, in validate_one
desc.instance.valid(word, partial)
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 356, in valid
t, i = s.split('.')
ValueError: too many values to unpack
Updated by Loïc Dachary almost 9 years ago
- Project changed from Ceph to CephFS
- Regression set to No
Updated by Greg Farnum almost 9 years ago
- Subject changed from Unable to remove MDS host to Unable to remove MDS host: error handling
- Assignee set to John Spray
This is just unfriendly error handling. John says one of the other commands has a spurious argument that needs to get cleaned up, though.
Updated by John Spray almost 9 years ago
- Status changed from New to Fix Under Review
Updated by Greg Farnum almost 9 years ago
- Status changed from Fix Under Review to Resolved
Merged to master in commit:5441f89c022aa1f4df084a4280e45c5c5b278f00
Actions