按照官网的来,能创建、能查看、但是删除就报错,找度娘也没找到怎么回事,说是代码问题
ceph osd pool create jiayuan 100
pool 'jiayuan' created
[root@admin-node bin]# ceph osd lspools
0 rbd,1 .rgw.root,2 default.rgw.control,3 default.rgw.data.root,4 default.rgw.gc,5 default.rgw.log,6 default.rgw.users.uid,7 jiayuan,
[root@admin-node bin]# ceph osd pool delete jiayuan jiayuan --yes-i-really-really-mean-it
Traceback (most recent call last):
File "/usr/bin/ceph", line 948, in <module>
retval = main()
File "/usr/bin/ceph", line 881, in main
sigdict, inbuf, verbose)
File "/usr/bin/ceph", line 429, in new_style_command
valid_dict = validate_command(sigdict, cmdargs, verbose)
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 982, in validate_command
matched = matchnum(args, sig, partial=True)
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 790, in matchnum
validate_one(word, desc, partial and (len(words) == 0))
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 761, in validate_one
desc.instance.valid(word, partial)
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 454, in valid
raise ArgumentValid("{0} not in {1}". format(s, self))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 0: ordinal not in range(128)
[root@admin-node bin]# ceph osd pool delete jiayuan jiayuan
Traceback (most recent call last):
File "/usr/bin/ceph", line 948, in <module>
retval = main()
File "/usr/bin/ceph", line 881, in main
sigdict, inbuf, verbose)
File "/usr/bin/ceph", line 429, in new_style_command
valid_dict = validate_command(sigdict, cmdargs, verbose)
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 982, in validate_command
matched = matchnum(args, sig, partial=True)
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 790, in matchnum
validate_one(word, desc, partial and (len(words) == 0))
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 761, in validate_one
desc.instance.valid(word, partial)
File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 454, in valid
raise ArgumentValid("{0} not in {1}". format(s, self))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 0: ordinal not in range(128)
|
|