from cStringIO import StringIO
from ceph_deploy import conf, exc, hosts, mon
-from ceph_deploy.util import constants, system
+from ceph_deploy.util import constants, system, packages
from ceph_deploy.cliutil import priority
from ceph_deploy.lib import remoto
if disk is None:
raise exc.NeedDiskError(hostname)
- distro = hosts.get(hostname, username=args.username)
+ distro = hosts.get(
+ hostname,
+ username=args.username,
+ callbacks=[packages.ceph_is_installed]
+ )
LOG.info(
'Distro info: %s %s %s',
distro.name,
for hostname, disk, journal in args.disk:
- distro = hosts.get(hostname, username=args.username)
+ distro = hosts.get(
+ hostname,
+ username=args.username,
+ callbacks=[packages.ceph_is_installed]
+ )
LOG.info(
'Distro info: %s %s %s',
distro.name,
if not disk or not hostname:
raise RuntimeError('zap command needs both HOSTNAME and DISK but got "%s %s"' % (hostname, disk))
LOG.debug('zapping %s on %s', disk, hostname)
- distro = hosts.get(hostname, username=args.username)
+ distro = hosts.get(
+ hostname,
+ username=args.username,
+ callbacks=[packages.ceph_is_installed]
+ )
LOG.info(
'Distro info: %s %s %s',
distro.name,
def disk_list(args, cfg):
for hostname, disk, journal in args.disk:
- distro = hosts.get(hostname, username=args.username)
+ distro = hosts.get(
+ hostname,
+ username=args.username,
+ callbacks=[packages.ceph_is_installed]
+ )
LOG.info(
'Distro info: %s %s %s',
distro.name,
# get the osd tree from a monitor host
mon_host = monitors[0]
- distro = hosts.get(mon_host, username=args.username)
+ distro = hosts.get(
+ mon_host,
+ username=args.username,
+ callbacks=[packages.ceph_is_installed]
+ )
+
tree = osd_tree(distro.conn, args.cluster)
distro.conn.exit()