Project

General

Profile

Bug #5210

ceph_deploy: purge and purgedata fails on ceph master branch

Added by Tamilarasi muthamizhan almost 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
ceph-deploy
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

test set up: plana08

ubuntu@plana08:~/cdep/ceph-deploy$ ./ceph-deploy purge plana08
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/ubuntu/cdep/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 268, in serve_forever
    self.__handle(m)
  File "/home/ubuntu/cdep/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 653, in __handle
    self.__send_message(MessageType.exception, e)
  File "/home/ubuntu/cdep/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 560, in __send_message
    self.__ostream.send_message(m)
  File "/home/ubuntu/cdep/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 97, in send_message
    self.__file.write(bytes_)
ValueError: I/O operation on closed file

Reading package lists...

ubuntu@plana08:~/cdep/ceph-deploy$ ./ceph-deploy purgedata plana08
rm: skipping `/var/lib/ceph/osd/ceph-0', since it's on a different device
rm: skipping `/var/lib/ceph/osd/ceph-1', since it's on a different device
Traceback (most recent call last):
  File "./ceph-deploy", line 9, in <module>
umount: /var/lib/ceph/osd: not mounted
umount: /var/lib/ceph/osd/ceph-0: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
umount: /var/lib/ceph/osd/ceph-1: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
rm: skipping `/var/lib/ceph/osd/ceph-0', since it's on a different device
rm: skipping `/var/lib/ceph/osd/ceph-1', since it's on a different device
    load_entry_point('ceph-deploy==0.1', 'console_scripts', 'ceph-deploy')()
  File "/home/ubuntu/cdep/ceph-deploy/ceph_deploy/cli.py", line 112, in main
    return args.func(args)
  File "/home/ubuntu/cdep/ceph-deploy/ceph_deploy/install.py", line 456, in purge_data
    purge_data_any_r()
  File "/home/ubuntu/cdep/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/proxy.py", line 255, in <lambda>
    (conn.operator(type_, self, args, kwargs))
  File "/home/ubuntu/cdep/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/connection.py", line 66, in operator
    return self.send_request(type_, (object, args, kwargs))
  File "/home/ubuntu/cdep/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 323, in send_request
    return self.__handle(m)
  File "/home/ubuntu/cdep/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py", line 639, in __handle
    raise e
pushy.protocol.proxy.ExceptionProxy: Command '['rm', '-rf', '--one-file-system', '--', '/var/lib/ceph']' returned non-zero exit status 1

also, please note that though purge command failed, it did remove ceph packages

History

#1 Updated by Tamilarasi muthamizhan almost 11 years ago

  • Assignee deleted (Anonymous)
  • Priority changed from Normal to Urgent

#2 Updated by Tamilarasi muthamizhan almost 11 years ago

  • Assignee set to Sage Weil

#3 Updated by Sage Weil almost 11 years ago

  • Status changed from New to Resolved

daemons weren't getting stopped. fixed as of commit:cf9aa7a0037e56eada8b3c1bb59d59d0bfe7bba5

Also available in: Atom PDF