Project

General

Profile

Actions

Bug #17125

closed

teuthology-nuke fails when not running as ubuntu user

Added by David Galloway over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
Core
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

2016-08-24 15:25:47,122.122 INFO:teuthology.orchestra.run:Running command with timeout 30
2016-08-24 15:25:47,122.122 INFO:teuthology.orchestra.run.smithi011:Running: 'rm -f /home/ubuntu/.cephdeploy.conf'
2016-08-24 15:25:47,338.338 INFO:teuthology.orchestra.run.smithi011.stderr:rm: cannot remove ‘/home/ubuntu/.cephdeploy.conf’: Permission denied
2016-08-24 15:25:47,339.339 ERROR:teuthology.nuke:Could not nuke {'smithi011.front.sepia.ceph.com': 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDskvOPgCDaXoVp9MBpKDGuyDlDK5RM61ccAzTx3rOEjPa6BE/O7oS0yqWb+bbxYlkRw79tA/YHgE92gGNIP8S+0adPD+LBoNOK8z48oKgNsM9IFTmavqMQo7DGH+ANkY4T10B2wFi10AxD1vxhxdS5GVwFcOofCXKfjQTAkIbu12U4Ja7F5xvOF/WzojlhEmycOetOdWXMQkEX61haY6lj1NjQs3O7wa8YJfr84DA5Mi8EBE/bH9w84pNvRZAIE3/JoSwCQZBxsC6gGNNjtR6+eo+/sMAb7zwLooVdo40Zs2aWoC1QYgHTZteUNeL0YhJaUMuzOojiheaqYmjI+HTF'}
Traceback (most recent call last):
  File "/home/dgalloway/git/ceph/teuthology/teuthology/nuke/__init__.py", line 280, in nuke_one
    nuke_helper(ctx, should_unlock)
  File "/home/dgalloway/git/ceph/teuthology/teuthology/nuke/__init__.py", line 357, in nuke_helper
    remove_configuration_files(ctx)
  File "/home/dgalloway/git/ceph/teuthology/teuthology/nuke/actions.py", line 338, in remove_configuration_files
    timeout=30
  File "/home/dgalloway/git/ceph/teuthology/teuthology/orchestra/cluster.py", line 64, in run
    return [remote.run(**kwargs) for remote in remotes]
  File "/home/dgalloway/git/ceph/teuthology/teuthology/orchestra/remote.py", line 192, in run
    r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
  File "/home/dgalloway/git/ceph/teuthology/teuthology/orchestra/run.py", line 402, in run
    r.wait()
  File "/home/dgalloway/git/ceph/teuthology/teuthology/orchestra/run.py", line 166, in wait
    label=self.label)
CommandFailedError: Command failed on smithi011 with status 1: 'rm -f /home/ubuntu/.cephdeploy.conf'
2016-08-24 15:25:47,341.341 ERROR:teuthology.nuke:Could not nuke the following targets:
targets:
  smithi011.front.sepia.ceph.com: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDskvOPgCDaXoVp9MBpKDGuyDlDK5RM61ccAzTx3rOEjPa6BE/O7oS0yqWb+bbxYlkRw79tA/YHgE92gGNIP8S+0adPD+LBoNOK8z48oKgNsM9IFTmavqMQo7DGH+ANkY4T10B2wFi10AxD1vxhxdS5GVwFcOofCXKfjQTAkIbu12U4Ja7F5xvOF/WzojlhEmycOetOdWXMQkEX61haY6lj1NjQs3O7wa8YJfr84DA5Mi8EBE/bH9w84pNvRZAIE3/JoSwCQZBxsC6gGNNjtR6+eo+/sMAb7zwLooVdo40Zs2aWoC1QYgHTZteUNeL0YhJaUMuzOojiheaqYmjI+HTF

Just missing sudo here?


Related issues 2 (2 open0 closed)

Related to teuthology - Bug #17237: teuthology does not use explicit username (ubuntu) from YAML file if ssh config specifies a usernameNew09/07/2016

Actions
Related to teuthology - Bug #17351: stale dirs left at the end of the nukeNew09/20/2016

Actions
Actions

Also available in: Atom PDF