Feature #4766
closedceph-deploy: commands should continue to execute the next argument in case of failure
0%
Description
currently, when trying to create multiple osds using the "osd create" command, the command returns failure when the first disk fails.
tamil@ubuntu:~/ceph-deploy-latest/ceph-deploy$ ./ceph-deploy osd create burnupi06:sdc burnupi07:sde burnupi07:sdf --zap-disk
ceph-disk: Error: Device is mounted: /dev/sdc1Traceback (most recent call last):
File "./ceph-deploy", line 9, in <module>
load_entry_point('ceph-deploy==0.0.1', 'console_scripts', 'ceph-deploy')()
File "/home/tamil/ceph-deploy-latest/ceph-deploy/ceph_deploy/cli.py", line 112, in main
return args.func(args)
File "/home/tamil/ceph-deploy-latest/ceph-deploy/ceph_deploy/osd.py", line 286, in osd
prepare(args, cfg, activate_prepared_disk=True)
File "/home/tamil/ceph-deploy-latest/ceph-deploy/ceph_deploy/osd.py", line 175, in prepare
dmcrypt_dir=args.dmcrypt_key_dir,
File "/home/tamil/ceph-deploy-latest/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/tamil/ceph-deploy-latest/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/tamil/ceph-deploy-latest/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/tamil/ceph-deploy-latest/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 '['ceph-disk-prepare', '--zap-disk', '--', '/dev/sdc']' returned non-zero exit status 1
It would be nice, if it could continue with the other osds in the event of osd failures and finally report them in the ceph.log.