Project

General

Profile

Bug #22871

ceph-deploy disk zap subcommand needs debug argument

Added by Ryan Leimenstoll 10 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/01/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:

Description

It looks like ceph-deploy disk zap is expecting a debug argument in args but none seems to have been supplied in the argument parser for zap [0].

Target version, since it's not selectable in the Tracker, is 2.0.0.

(env)-bash-4.2$ ceph-deploy disk zap obj10 /dev/sdah
[ceph_deploy.conf][DEBUG ] found configuration file at: /etc/cephadmin/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (2.0.0): /etc/cephadmin/obj/env/bin/ceph-deploy disk zap obj10 /dev/sdah
[ceph_deploy.cli][INFO  ] ceph-deploy options:
[ceph_deploy.cli][INFO  ]  username                      : None
[ceph_deploy.cli][INFO  ]  verbose                       : False
[ceph_deploy.cli][INFO  ]  overwrite_conf                : False
[ceph_deploy.cli][INFO  ]  subcommand                    : zap
[ceph_deploy.cli][INFO  ]  quiet                         : False
[ceph_deploy.cli][INFO  ]  cd_conf                       : <ceph_deploy.conf.cephdeploy.Conf instance at 0x2e57f38>
[ceph_deploy.cli][INFO  ]  cluster                       : ceph
[ceph_deploy.cli][INFO  ]  host                          : obj10
[ceph_deploy.cli][INFO  ]  func                          : <function disk at 0x2e03758>
[ceph_deploy.cli][INFO  ]  ceph_conf                     : None
[ceph_deploy.cli][INFO  ]  default_release               : False
[ceph_deploy.cli][INFO  ]  disk                          : ['/dev/sdah']
[ceph_deploy.osd][DEBUG ] zapping /dev/sdah on obj10
[obj10][DEBUG ] connection detected need for sudo
[obj10][DEBUG ] connected to host: obj10 
[obj10][DEBUG ] detect platform information from remote host
[obj10][DEBUG ] detect machine type
[obj10][DEBUG ] find the location of an executable
[ceph_deploy.osd][INFO  ] Distro info: Red Hat Enterprise Linux Server 7.4 Maipo
[obj10][DEBUG ] zeroing last few blocks of device
[obj10][DEBUG ] find the location of an executable
[ceph_deploy][ERROR ] Traceback (most recent call last):
[ceph_deploy][ERROR ]   File "/etc/cephadmin/obj/env/lib/python2.7/site-packages/ceph_deploy/util/decorators.py", line 69, in newfunc
[ceph_deploy][ERROR ]     return f(*a, **kw)
[ceph_deploy][ERROR ]   File "/etc/cephadmin/obj/env/lib/python2.7/site-packages/ceph_deploy/cli.py", line 164, in _main
[ceph_deploy][ERROR ]     return args.func(args)
[ceph_deploy][ERROR ]   File "/etc/cephadmin/obj/env/lib/python2.7/site-packages/ceph_deploy/osd.py", line 438, in disk
[ceph_deploy][ERROR ]     disk_zap(args)
[ceph_deploy][ERROR ]   File "/etc/cephadmin/obj/env/lib/python2.7/site-packages/ceph_deploy/osd.py", line 336, in disk_zap
[ceph_deploy][ERROR ]     if args.debug:
[ceph_deploy][ERROR ] AttributeError: 'Namespace' object has no attribute 'debug'
[ceph_deploy][ERROR ] 

[0] https://github.com/ceph/ceph-deploy/blob/70aca4051457cb6aa1673bfb6f79bb359d0699f6/ceph_deploy/osd.py#L565

History

#1 Updated by Alfredo Deza 9 months ago

  • Status changed from New to Resolved

PR https://github.com/ceph/ceph-deploy/pull/464

merged commit 42a8fde into master

Also available in: Atom PDF