ceph/ceph-deploy — pull request #181 by osynge (2014-04-24 14:41:47+00:00)
Title: distro is important object that should not be overwritern with a string

Without this patch on SUSE you get:

$/tmp/ve/bin/ceph-deploy -v -v -v --username ceph install ceph-node1
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/oms101/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.4.0): /tmp/ve/bin/ceph-deploy -v -v -v --username ceph install ceph-node1
[ceph_deploy.install][DEBUG ] Installing stable version emperor on cluster ceph hosts ceph-node1
[ceph_deploy.install][DEBUG ] Detecting platform for host ceph-node1 ...
X11 forwarding request failed on channel 0
[ceph-node1][DEBUG ] connected to host: ceph@ceph-node1
[ceph-node1][DEBUG ] detect platform information from remote host
[ceph-node1][DEBUG ] detect machine type
[ceph_deploy.install][INFO ] Distro info: SUSE Linux Enterprise Server 11 x86_64
[ceph-node1][INFO ] installing ceph on ceph-node1
Traceback (most recent call last):
File "/tmp/ve/bin/ceph-deploy", line 9, in
load_entry_point('ceph-deploy==1.4.0', 'console_scripts', 'ceph-deploy')()
File "/tmp/ve/lib/python2.7/site-packages/ceph_deploy-1.4.0-py2.7.egg/ceph_deploy/util/decorators.py", line 62, in newfunc
return f(*a, **kw)
File "/tmp/ve/lib/python2.7/site-packages/ceph_deploy-1.4.0-py2.7.egg/ceph_deploy/cli.py", line 147, in main
return args.func(args)
File "/tmp/ve/lib/python2.7/site-packages/ceph_deploy-1.4.0-py2.7.egg/ceph_deploy/install.py", line 93, in install
args.adjust_repos
File "/tmp/ve/lib/python2.7/site-packages/ceph_deploy-1.4.0-py2.7.egg/ceph_deploy/hosts/suse/install.py", line 21, in install
distro.conn,
AttributeError: 'str' object has no attribute 'conn'