Project

General

Profile

Actions

Bug #6337

closed

Closed connection causes import errors for Debian mon create commands

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

Because of a last minute fix to prevent connections hanging on `mon create` that meant closing the pushy connection
as early as possible, it caused another call that used pushy to determine the path for `service` to break.

ceph-deploy -v mon create hamtaro.exhosting.fr hamiral.exhosting.fr bijou.exhosting.fr
[ceph_deploy.mon][DEBUG ] Deploying mon, cluster ceph hosts hamtaro.exhosting.fr hamiral.exhosting.fr bijou.exhosting.fr
[ceph_deploy.mon][DEBUG ] detecting platform for host hamtaro ...
[ceph_deploy.sudo_pushy][DEBUG ] will use a remote connection without sudo
[ceph_deploy.mon][INFO  ] distro info: Debian 7.1 wheezy
[hamtaro][DEBUG ] determining if provided host has same hostname in remote
[hamtaro][DEBUG ] deploying mon to hamtaro
[hamtaro][DEBUG ] remote hostname: hamtaro
[hamtaro][INFO  ] write cluster configuration to /etc/ceph/{cluster}.conf
[hamtaro][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-hamtaro/done
[hamtaro][INFO  ] create a done file to avoid re-doing the mon deployment
[hamtaro][INFO  ] create the init path if it does not exist
[hamtaro][INFO  ] locating `service` executable...
Traceback (most recent call last):
  File "/usr/bin/ceph-deploy", line 21, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/ceph_deploy/util/decorators.py", line 83, in newfunc
    return f(*a, **kw)
  File "/usr/lib/python2.7/dist-packages/ceph_deploy/cli.py", line 147, in main
    return args.func(args)
  File "/usr/lib/python2.7/dist-packages/ceph_deploy/mon.py", line 246, in mon
    mon_create(args)
  File "/usr/lib/python2.7/dist-packages/ceph_deploy/mon.py", line 105, in mon_create
    distro.mon.create(distro, rlogger, args, monitor_keyring)
  File "/usr/lib/python2.7/dist-packages/ceph_deploy/hosts/debian/mon/create.py", line 30, in create
    service = common.which_service(distro.sudo_conn, logger)
  File "/usr/lib/python2.7/dist-packages/ceph_deploy/hosts/common.py", line 24, in which_service
    if conn.modules.os.path.exists(location):
  File "/usr/lib/python2.7/dist-packages/pushy/client.py", line 250, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'AutoImporter' object has no attribute 'os'
Actions #1

Updated by Alfredo Deza over 10 years ago

  • Description updated (diff)
Actions #2

Updated by Alfredo Deza over 10 years ago

  • Status changed from 12 to Fix Under Review
Actions #3

Updated by Alfredo Deza over 10 years ago

Merged into ceph-deploy master branch: b67281e

Actions #4

Updated by Alfredo Deza over 10 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF