(ctx, cluster_name, remote, args, extra_cephadm_args=[], **kwargs)
| 37 | |
| 38 | |
| 39 | def _shell(ctx, cluster_name, remote, args, extra_cephadm_args=[], **kwargs): |
| 40 | teuthology.get_testdir(ctx) |
| 41 | return remote.run( |
| 42 | args=[ |
| 43 | 'sudo', |
| 44 | ctx.cephadm, |
| 45 | '--image', ctx.ceph[cluster_name].image, |
| 46 | 'shell', |
| 47 | '-c', '/etc/ceph/{}.conf'.format(cluster_name), |
| 48 | '-k', '/etc/ceph/{}.client.admin.keyring'.format(cluster_name), |
| 49 | '--fsid', ctx.ceph[cluster_name].fsid, |
| 50 | ] + extra_cephadm_args + [ |
| 51 | '--', |
| 52 | ] + args, |
| 53 | **kwargs |
| 54 | ) |
| 55 | |
| 56 | |
| 57 | def _cephadm_remotes(ctx, log_excluded=False): |
no test coverage detected