for hostname in args.client:
LOG.debug('Pushing admin keys and conf to %s', hostname)
try:
- distro = hosts.get(hostname)
+ distro = hosts.get(hostname, username=args.username)
hostname = distro.conn.remote_module.shortname()
distro.conn.remote_module.write_conf(
for hostname in args.client:
LOG.debug('Pushing config to %s', hostname)
try:
- distro = hosts.get(hostname)
+ distro = hosts.get(hostname, username=args.username)
distro.conn.remote_module.write_conf(
args.cluster,
for hostname in args.client:
try:
LOG.debug('Checking %s for %s', hostname, frompath)
- distro = hosts.get(hostname)
+ distro = hosts.get(hostname, username=args.username)
conf_file_contents = distro.conn.remote_module.get_file(frompath)
if conf_file_contents is not None:
else:
for hostname in _hosts:
LOG.debug('Checking %s for %s', hostname, frompath)
- distro = hosts.get(hostname)
+ distro = hosts.get(hostname, username=args.username)
key = distro.conn.remote_module.get_file(
frompath.format(hostname=hostname)
)
LOG.debug('Detecting platform for host %s ...', hostname)
# TODO username
- distro = hosts.get(hostname)
+ distro = hosts.get(hostname, username=args.username)
LOG.info('Distro info: %s %s %s', distro.name, distro.release, distro.codename)
rlogger = logging.getLogger(hostname)
rlogger.info('uninstalling ceph on %s' % hostname)
LOG.debug('Detecting platform for host %s ...', hostname)
# TODO username
- distro = hosts.get(hostname)
+ distro = hosts.get(hostname, username=args.username)
LOG.info('Distro info: %s %s %s', distro.name, distro.release, distro.codename)
rlogger = logging.getLogger(hostname)
rlogger.info('purging host ... %s' % hostname)
installed_hosts = []
for hostname in args.host:
- distro = hosts.get(hostname)
+ distro = hosts.get(hostname, username=args.username)
if ceph_is_installed(distro.conn):
installed_hosts.append(hostname)
distro.conn.exit()
for hostname in args.host:
# TODO username
- distro = hosts.get(hostname)
+ distro = hosts.get(hostname, username=args.username)
LOG.info('Distro info: %s %s %s', distro.name, distro.release, distro.codename)
rlogger = logging.getLogger(hostname)
rlogger.info('purging data on %s' % hostname)
for hostname, name in args.mds:
try:
# TODO username
- distro = hosts.get(hostname)
+ distro = hosts.get(hostname, username=args.username)
rlogger = distro.conn.logger
LOG.info(
'Distro info: %s %s %s',
raise exc.NeedDiskError(hostname)
# TODO username
- distro = hosts.get(hostname)
+ distro = hosts.get(hostname, username=args.username)
LOG.info(
'Distro info: %s %s %s',
distro.name,
for hostname, disk, journal in args.disk:
# TODO username
- distro = hosts.get(hostname)
+ distro = hosts.get(hostname, username=args.username)
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)
+ distro = hosts.get(hostname, username=args.username)
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)
+ distro = hosts.get(hostname, username=args.username)
LOG.info(
'Distro info: %s %s %s',
distro.name,