Project

General

Profile

Bug #5814

test_daemon.sh - [Errno 13] Permission denied

Added by Samuel Just over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
-
Category:
ceph cli
Target version:
-
% Done:

0%

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

Description

2013-07-31T01:56:50.625 INFO:teuthology.task.workunit.client.0.err:[10.214.132.26]: will thrash map for 10 epochs
2013-07-31T01:56:50.637 INFO:teuthology.task.workunit.client.0.out:[10.214.132.26]: OK
2013-07-31T01:56:50.637 INFO:teuthology.task.workunit.client.0.err:[10.214.132.26]: + echo OK
2013-07-31T01:56:50.637 DEBUG:teuthology.orchestra.run:Running [10.214.132.26]: 'sudo rm rf - /home/ubuntu/cephtest/91029/mnt.0/client.0/tmp'
2013-07-31T01:56:50.650 INFO:teuthology.task.workunit:Running workunit cephtool/test_daemon.sh...
2013-07-31T01:56:50.651 DEBUG:teuthology.orchestra.run:Running [10.214.132.26]: 'mkdir p - /home/ubuntu/cephtest/91029/mnt.0/client.0/tmp && cd -- /home/ubuntu/cephtest/91029/mnt.0/client.0/tmp && CEPH_CLI_TEST_DUP_COMMAND=1 CEPH_REF=00dc634451687756ef16f176753d0bd0ba385584 TESTDIR="/home/ubuntu/cephtest/91029" CEPH_ID="0" PYTHONPATH="$PYTHONPATH:/home/ubuntu/cephtest/91029/binary/usr/local/lib/python2.7/dist-packages:/home/ubuntu/cephtest/91029/binary/usr/local/lib/python2.6/dist-packages" /home/ubuntu/cephtest/91029/adjust-ulimits ceph-coverage /home/ubuntu/cephtest/91029/archive/coverage /home/ubuntu/cephtest/91029/workunit.client.0/cephtool/test_daemon.sh'
2013-07-31T01:56:50.726 INFO:teuthology.task.workunit.client.0.err:[10.214.132.26]: + set e
2013-07-31T01:56:50.726 INFO:teuthology.task.workunit.client.0.err:[10.214.132.26]: + echo note: assuming mon.a is on the currenet host
2013-07-31T01:56:50.726 INFO:teuthology.task.workunit.client.0.err:[10.214.132.26]: + ceph daemon mon.a version
2013-07-31T01:56:50.726 INFO:teuthology.task.workunit.client.0.err:[10.214.132.26]: + grep version
2013-07-31T01:56:50.727 INFO:teuthology.task.workunit.client.0.out:[10.214.132.26]: note: assuming mon.a is on the currenet host
2013-07-31T01:56:50.817 INFO:teuthology.task.workunit.client.0.err:[10.214.132.26]: admin_socket: exception getting command descriptions: [Errno 13] Permission denied
2013-07-31T01:56:50.825 INFO:teuthology.task.workunit:Stopping cephtool on client.0...
2013-07-31T01:56:50.825 DEBUG:teuthology.orchestra.run:Running [10.214.132.26]: 'rm -rf -
/home/ubuntu/cephtest/91029/workunits.list /home/ubuntu/cephtest/91029/workunit.client.0'
2013-07-31T01:56:50.869 ERROR:teuthology.run_tasks:Saw exception from tasks
Traceback (most recent call last):
File "/home/teuthworker/teuthology-next/teuthology/run_tasks.py", line 25, in run_tasks
manager = run_one_task(taskname, ctx=ctx, config=config)
File "/home/teuthworker/teuthology-next/teuthology/run_tasks.py", line 14, in run_one_task
return fn(**kwargs)
File "/home/teuthworker/teuthology-next/teuthology/task/workunit.py", line 94, in task
_spawn_on_all_clients(ctx, refspec, all_tasks, config.get('env'), config.get('subdir'))
File "/home/teuthworker/teuthology-next/teuthology/task/workunit.py", line 213, in _spawn_on_all_clients
p.spawn(_run_tests, ctx, refspec, role, [unit], env, subdir)
File "/home/teuthworker/teuthology-next/teuthology/parallel.py", line 83, in exit
for result in self:
File "/home/teuthworker/teuthology-next/teuthology/parallel.py", line 100, in next
resurrect_traceback(result)
File "/home/teuthworker/teuthology-next/teuthology/parallel.py", line 19, in capture_traceback
return func(*args, **kwargs)
File "/home/teuthworker/teuthology-next/teuthology/task/workunit.py", line 301, in _run_tests
args=args,
File "/home/teuthworker/teuthology-next/teuthology/orchestra/remote.py", line 43, in run
r = self._runner(client=self.ssh, **kwargs)
File "/home/teuthworker/teuthology-next/teuthology/orchestra/run.py", line 267, in run
r.exitstatus = _check_status(r.exitstatus)
File "/home/teuthworker/teuthology-next/teuthology/orchestra/run.py", line 263, in _check_status
raise CommandFailedError(command=r.command, exitstatus=status, node=host)
CommandFailedError: Command failed on 10.214.132.26 with status 1: 'mkdir p - /home/ubuntu/cephtest/91029/mnt.0/client.0/tmp && cd -- /home/ubuntu/cephtest/91029/mnt.0/client.0/tmp && CEPH_CLI_TEST_DUP_COMMAND=1 CEPH_REF=00dc634451687756ef16f176753d0bd0ba385584 TESTDIR="/home/ubuntu/cephtest/91029" CEPH_ID="0" PYTHONPATH="$PYTHONPATH:/home/ubuntu/cephtest/91029/binary/usr/local/lib/python2.7/dist-packages:/home/ubuntu/cephtest/91029/binary/usr/local/lib/python2.6/dist-packages" /home/ubuntu/cephtest/91029/adjust-ulimits ceph-coverage /home/ubuntu/cephtest/91029/archive/coverage /home/ubuntu/cephtest/91029/workunit.client.0/cephtool/test_daemon.sh'
2013-07-31T01:56:50.870 DEBUG:teuthology.run_tasks:Unwinding manager <contextlib.GeneratorContextManager object at 0x1e98fd0>
2013-07-31T01:56:50.871 ERROR:teuthology.contextutil:Saw exception from nested tasks
Traceback (most recent call last):
File "/home/teuthworker/teuthology-next/teuthology/contextutil.py", line 27, in nested

Associated revisions

Revision b4ed4e2e (diff)
Added by Sage Weil over 10 years ago

qa/workunits/cephtool/test_daemon.sh: sudo

Fixes: #5814
Signed-off-by: Sage Weil <>

History

#1 Updated by Samuel Just over 10 years ago

ubuntu@teuthology:/a/teuthology-2013-07-31_01:00:23-rados-next-testing-basic-plana/91029

#2 Updated by Sage Weil over 10 years ago

Script just needs to sudo I think

#3 Updated by Dan Mick over 10 years ago

teuthworker can't passwordless sudo, although ubuntu can; that might complicate things. Should we make teuthworker be able to, and then update test_daemon.sh?

#4 Updated by Sage Weil over 10 years ago

Dan Mick wrote:

teuthworker can't passwordless sudo, although ubuntu can; that might complicate things. Should we make teuthworker be able to, and then update test_daemon.sh?

the workunit runs as ubuntu... i think the script just needs to be 'sudo ceph daemon ...' since /var/run/ceph/* isn't world writeable.

#5 Updated by Sage Weil over 10 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF