Project

General

Profile

Actions

Bug #53220

closed
CB YL

notification tests failing: 'find /home/ubuntu/cephtest -ls ; rmdir -- /home/ubuntu/cephtest'

Bug #53220: notification tests failing: 'find /home/ubuntu/cephtest -ls ; rmdir -- /home/ubuntu/cephtest'

Added by Casey Bodley about 5 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Urgent
Target version:
-
Due date:
% Done:

100%

Source:
Backport:
pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v17.0.0-10101-gb709091d81
Released In:
v17.2.0~141
Upkeep Timestamp:
2025-07-14T15:51:58+00:00

Description

2021-11-10T19:01:40.487 INFO:teuthology.task.internal:Tidying up after the test...
2021-11-10T19:01:40.488 DEBUG:teuthology.orchestra.run.smithi129:> find /home/ubuntu/cephtest -ls ; rmdir -- /home/ubuntu/cephtest
2021-11-10T19:01:40.490 DEBUG:teuthology.orchestra.run.smithi188:> find /home/ubuntu/cephtest -ls ; rmdir -- /home/ubuntu/cephtest
2021-11-10T19:01:40.501 INFO:teuthology.orchestra.run.smithi129.stdout:   394301      4 drwxr-xr-x   3  ubuntu   ubuntu       4096 Nov 10 19:01 /home/ubuntu/cephtest
2021-11-10T19:01:40.501 INFO:teuthology.orchestra.run.smithi129.stdout:  1446708      4 drwxrwxr-x   3  ubuntu   ubuntu       4096 Nov 10 19:01 /home/ubuntu/cephtest/kafka-2.6.0-src
2021-11-10T19:01:40.502 INFO:teuthology.orchestra.run.smithi129.stdout:  1446709      4 drwxrwxr-x   2  ubuntu   ubuntu       4096 Nov 10 19:01 /home/ubuntu/cephtest/kafka-2.6.0-src/logs
2021-11-10T19:01:40.503 DEBUG:teuthology.orchestra.run:got remote process result: 1
2021-11-10T19:01:40.503 INFO:teuthology.orchestra.run.smithi129.stderr:rmdir: failed to remove '/home/ubuntu/cephtest': Directory not empty
2021-11-10T19:01:40.504 ERROR:teuthology.run_tasks:Manager failed: internal.base
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_91815aeb94449f1ea4365867a0fd4c60103057e1/teuthology/run_tasks.py", line 176, in run_tasks
    suppress = manager.__exit__(*exc_info)
  File "/usr/lib/python3.6/contextlib.py", line 88, in __exit__
    next(self.gen)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_91815aeb94449f1ea4365867a0fd4c60103057e1/teuthology/task/internal/__init__.py", line 58, in base
    wait=False,
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_91815aeb94449f1ea4365867a0fd4c60103057e1/teuthology/orchestra/run.py", line 479, in wait
    proc.wait()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_91815aeb94449f1ea4365867a0fd4c60103057e1/teuthology/orchestra/run.py", line 161, in wait
    self._raise_for_status()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_91815aeb94449f1ea4365867a0fd4c60103057e1/teuthology/orchestra/run.py", line 183, in _raise_for_status
    node=self.hostname, label=self.label
teuthology.exceptions.CommandFailedError: Command failed on smithi129 with status 1: 'find /home/ubuntu/cephtest -ls ; rmdir -- /home/ubuntu/cephtest'

from http://qa-proxy.ceph.com/teuthology/cbodley-2021-11-10_18:18:35-rgw-wip-cbodley-testing-distro-basic-smithi/6496484/teuthology.log

Related issues 1 (0 open — 1 closed)

Copied to rgw - Backport #53866: pacific: notification tests failing: 'find /home/ubuntu/cephtest -ls ; rmdir -- /home/ubuntu/cephtest'RejectedYuval Lifshitz

Actions

CB Updated by Casey Bodley about 5 years ago Actions #1

  • Description updated (diff)

YL Updated by Yuval Lifshitz about 5 years ago Actions #2

  • Assignee changed from Yuval Lifshitz to Kalpesh Pandya

KP Updated by Kalpesh Pandya about 5 years ago Actions #3

Hello,

I don't see this issue here: https://pulpito.ceph.com/kapandya-2021-11-11_10:31:30-rgw:notifications-wip-rgw-kafka-teuth-cleanup-distro-basic-smithi/

I tried to dig out the reason behind the failure which you saw but couldn't find it.

P.S: I didn't change anything in my code. Just created a branch off master and ran it in teuthology with a log message change.

Thanks,
Kalpesh Pandya

CB Updated by Casey Bodley about 5 years ago Actions #4

another example of the failure: http://qa-proxy.ceph.com/teuthology/teuthology-2021-11-04_03:05:02-rgw-master-distro-default-gibba/6483755/teuthology.log

2021-11-10T23:03:26.683 INFO:tasks.kafka:Removing packaged dependencies of Kafka...
2021-11-10T23:03:26.683 DEBUG:teuthology.orchestra.run.gibba001:> rm -rf /home/ubuntu/cephtest/kafka-2.6.0-src/logs
2021-11-10T23:03:26.735 DEBUG:teuthology.orchestra.run.gibba001:> rm -rf /home/ubuntu/cephtest/kafka-2.6.0-src
2021-11-10T23:03:26.895 DEBUG:teuthology.orchestra.run.gibba001:> rm -rf /home/ubuntu/cephtest/kafka-2.6.0-src.tgz

...

2021-11-10T23:03:54.747 DEBUG:teuthology.orchestra.run.gibba001:> find /home/ubuntu/cephtest -ls ; rmdir -- /home/ubuntu/cephtest
2021-11-10T23:03:54.750 DEBUG:teuthology.orchestra.run.gibba017:> find /home/ubuntu/cephtest -ls ; rmdir -- /home/ubuntu/cephtest
2021-11-10T23:03:54.759 INFO:teuthology.orchestra.run.gibba001.stdout:   394898      4 drwxr-xr-x   3  ubuntu   ubuntu       4096 Nov 10 23:03 /home/ubuntu/cephtest
2021-11-10T23:03:54.759 INFO:teuthology.orchestra.run.gibba001.stdout:  1179649      4 drwxrwxr-x   3  ubuntu   ubuntu       4096 Nov 10 23:03 /home/ubuntu/cephtest/kafka-2.6.0-src
2021-11-10T23:03:54.759 INFO:teuthology.orchestra.run.gibba001.stdout:  1179650      4 drwxrwxr-x   2  ubuntu   ubuntu       4096 Nov 10 23:03 /home/ubuntu/cephtest/kafka-2.6.0-src/logs
2021-11-10T23:03:54.760 DEBUG:teuthology.orchestra.run:got remote process result: 1
2021-11-10T23:03:54.760 INFO:teuthology.orchestra.run.gibba001.stderr:rmdir: failed to remove '/home/ubuntu/cephtest': Directory not empty

CB Updated by Casey Bodley about 5 years ago Actions #5

from that same log:

2021-11-10T23:03:26.598 INFO:tasks.kafka:Stopping Zookeeper and Kafka Services...
2021-11-10T23:03:26.599 DEBUG:teuthology.orchestra.run.gibba001:> cd /home/ubuntu/cephtest/kafka-2.6.0-src/bin && ./kafka-server-stop.sh /home/ubuntu/cephtest/kafka-2.6.0-src/config/kafka.properties
2021-11-10T23:03:26.622 DEBUG:teuthology.orchestra.run.gibba001:> cd /home/ubuntu/cephtest/kafka-2.6.0-src/bin && ./zookeeper-server-stop.sh /home/ubuntu/cephtest/kafka-2.6.0-src/config/zookeeper.properties
2021-11-10T23:03:26.683 INFO:tasks.kafka:Removing packaged dependencies of Kafka...
2021-11-10T23:03:26.683 DEBUG:teuthology.orchestra.run.gibba001:> rm -rf /home/ubuntu/cephtest/kafka-2.6.0-src/logs
2021-11-10T23:03:26.735 DEBUG:teuthology.orchestra.run.gibba001:> rm -rf /home/ubuntu/cephtest/kafka-2.6.0-src
2021-11-10T23:03:26.895 DEBUG:teuthology.orchestra.run.gibba001:> rm -rf /home/ubuntu/cephtest/kafka-2.6.0-src.tgz
2021-11-10T23:03:26.909 DEBUG:teuthology.run_tasks:Unwinding manager notification-tests
2021-11-10T23:03:26.921 DEBUG:teuthology.run_tasks:Unwinding manager rabbitmq
2021-11-10T23:03:26.945 INFO:tasks.rabbitmq:Stopping RabbitMQ Service...

if the ./kafka-server-stop.sh script isn't actually waiting for the kafka process to exit, it may continue to log things under kafka-2.6.0-src/logs after we remove the directory with 'rm -rf'?

CB Updated by Casey Bodley about 5 years ago Actions #6

  • Status changed from New to Fix Under Review
  • Pull request ID set to 43995

CB Updated by Casey Bodley almost 5 years ago Actions #7

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to pacific

UB Updated by Upkeep Bot almost 5 years ago Actions #8

  • Copied to Backport #53866: pacific: notification tests failing: 'find /home/ubuntu/cephtest -ls ; rmdir -- /home/ubuntu/cephtest' added

CS Updated by Cory Snyder over 4 years ago Actions #9

Casey, the qa/tasks/kafka.py file that was modified in the fix associated with this ticket does not exist on Pacific. Should I close the backport or look into backporting that teuthology task as well?

CB Updated by Casey Bodley over 4 years ago Actions #10

  • Assignee changed from Kalpesh Pandya to Yuval Lifshitz

^ what do you think Yuval? the kafka stuff exists in pacific, should we backport the tests as well?

YL Updated by Yuval Lifshitz over 4 years ago Actions #11

the tests have to be backported first.
there is a PR for that: https://github.com/ceph/ceph/pull/41850 open now for 10 month

CB Updated by Casey Bodley over 4 years ago Actions #12

oof, thanks. it looks like it never got picked up for testing/merge because it was missing the needs-qa tag

KS Updated by Konstantin Shalygin almost 3 years ago Actions #14

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100

UB Updated by Upkeep Bot over 1 year ago Actions #15

  • Merge Commit set to b709091d812f5fd0c4fa3fd19c67717a16cf8f18
  • Fixed In set to v17.0.0-10101-gb709091d81
  • Released In set to v17.2.0~141
  • Upkeep Timestamp set to 2025-07-14T15:51:58+00:00
Actions

Also available in: PDF Atom