Project

General

Profile

Bug #6337

Updated by Alfredo Deza over 10 years ago

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. 

 <pre> 
 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' 
 </pre>

Back