Project

General

Profile

Actions

Bug #6367

closed

ceph-deploy destroy broken

Added by Alfredo Deza over 10 years ago. Updated over 10 years ago.

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

0%

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

Description

Since the new hostname shortname refactoring was done into place, the remote function
that allows one to destroy a monitor is completely broken.

ceph-deploy mon destroy node1
[ceph_deploy.mon][DEBUG ] Removing mon from node1
[ceph_deploy.sudo_pushy][DEBUG ] will use a remote connection with sudo
Traceback (most recent call last):
  File "/Users/alfredo/.virtualenvs/ceph-deploy/bin/ceph-deploy", line 8, in <module>
    load_entry_point('ceph-deploy==1.2.6', 'console_scripts', 'ceph-deploy')()
  File "/Users/alfredo/python/ceph-deploy/ceph_deploy/util/decorators.py", line 83, in newfunc
    return f(*a, **kw)
  File "/Users/alfredo/python/ceph-deploy/ceph_deploy/cli.py", line 147, in main
    return args.func(args)
  File "/Users/alfredo/python/ceph-deploy/ceph_deploy/mon.py", line 311, in mon
    mon_destroy(args)
  File "/Users/alfredo/python/ceph-deploy/ceph_deploy/mon.py", line 248, in mon_destroy
    is_running=is_running,
  File "/Users/alfredo/.virtualenvs/ceph-deploy/lib/python2.7/site-packages/pushy-0.5.3-py2.7.egg/pushy/protocol/proxy.py", line 255, in <lambda>
    (conn.operator(type_, self, args, kwargs))
  File "/Users/alfredo/.virtualenvs/ceph-deploy/lib/python2.7/site-packages/pushy-0.5.3-py2.7.egg/pushy/protocol/connection.py", line 66, in operator
    return self.send_request(type_, (object, args, kwargs))
  File "/Users/alfredo/.virtualenvs/ceph-deploy/lib/python2.7/site-packages/pushy-0.5.3-py2.7.egg/pushy/protocol/baseconnection.py", line 329, in send_request
    return self.__handle(m)
  File "/Users/alfredo/.virtualenvs/ceph-deploy/lib/python2.7/site-packages/pushy-0.5.3-py2.7.egg/pushy/protocol/baseconnection.py", line 645, in __handle
    raise e
pushy.protocol.proxy.ExceptionProxy: global name 'remote_shortname' is not defined
Actions #1

Updated by Alfredo Deza over 10 years ago

  • Status changed from In Progress to Fix Under Review
Actions #2

Updated by Alfredo Deza over 10 years ago

  • Status changed from Fix Under Review to Resolved

Merged in ceph-deploy master branch with hash: f551755

The call to resolve the shortname of the host in the remote function was not defined inside the function which is a requirement for all remotely executed
functions.

Actions

Also available in: Atom PDF