cluster_name = config['cluster']
testdir = teuthology.get_testdir(ctx)
- if config.get('ceph_daemon_mode') != 'packaged-ceph-daemon':
- ref = config.get('ceph_daemon_branch', ref)
+ if config.get('cephadm_mode') != 'cephadm-package':
+ ref = config.get('cephadm_branch', ref)
git_url = teuth_config.get_ceph_git_url()
log.info('Downloading cephadm (repo %s ref %s)...' % (git_url, ref))
ctx.cluster.run(
'--force',
])
- if config.get('ceph_daemon_mode') == 'root':
+ if config.get('cephadm_mode') == 'root':
log.info('Removing cephadm ...')
ctx.cluster.run(
args=[
cluster_name = config['cluster']
ctx.ceph[cluster_name] = argparse.Namespace()
- # ceph-daemon mode?
- if 'ceph_daemon_mode' not in config:
- config['ceph_daemon_mode'] = 'root'
- assert config['ceph_daemon_mode'] in ['root', 'packaged-ceph-daemon']
- if config['ceph_daemon_mode'] == 'root':
+ # cephadm mode?
+ if 'cephadm_mode' not in config:
+ config['cephadm_mode'] = 'root'
+ assert config['cephadm_mode'] in ['root', 'cephadm-package']
+ if config['cephadm_mode'] == 'root':
ctx.ceph_daemon = testdir + '/cephadm'
else:
ctx.ceph_daemon = 'cephadm' # in the path
{
'name': 'mode',
'type': 'str',
- 'enum_allowed': ['root', 'ceph-daemon-package'],
+ 'enum_allowed': ['root', 'cephadm-package'],
'default': 'root',
- 'desc': 'mode for remote execution of ceph-daemon',
+ 'desc': 'mode for remote execution of cephadm',
},
{
'name': 'container_image_base',
if self.mode == 'root':
self.ssh_user = 'root'
- elif self.mode == 'ceph-daemon-package':
+ elif self.mode == 'cephadm-package':
self.ssh_user = 'cephadm'
@staticmethod
conn,
['/usr/bin/python', '-u'],
stdin=script.encode('utf-8'))
- elif self.mode == 'ceph-daemon-package':
+ elif self.mode == 'cephadm-package':
out, err, code = remoto.process.check(
conn,
['sudo', '/usr/bin/cephadm'] + final_args,