Project

General

Profile

Actions

Bug #54992

closed

pacific: rados/dashboard: tasks/dashboard: cannot stat '/etc/containers/registries.conf': No such file or directory

Added by Kamoltat (Junior) Sirivadhna about 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
% Done:

0%

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

Description

/a/yuriw-2022-03-17_14:54:32-rados-wip-yuri10-testing-2022-03-16-1432-pacific-distro-default-smithi/6742377

2022-03-17T17:06:57.876 DEBUG:teuthology.orchestra.run.smithi040:> TESTDIR=/home/ubuntu/cephtest bash -s
2022-03-17T17:06:57.877 INFO:teuthology.task.pexec:Running commands on host ubuntu@smithi125.front.sepia.ceph.com
2022-03-17T17:06:57.877 DEBUG:teuthology.orchestra.run.smithi125:> TESTDIR=/home/ubuntu/cephtest bash -s
2022-03-17T17:06:57.918 INFO:teuthology.orchestra.run.smithi125.stderr:cp: cannot stat '/etc/containers/registries.conf': No such file or directory
2022-03-17T17:06:57.919 DEBUG:teuthology.orchestra.run:got remote process result: 1
2022-03-17T17:06:57.920 ERROR:teuthology.run_tasks:Saw exception from tasks.
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/run_tasks.py", line 91, in run_tasks
    manager = run_one_task(taskname, ctx=ctx, config=config)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/run_tasks.py", line 70, in run_one_task
    return task(**kwargs)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/task/pexec.py", line 149, in task
    p.spawn(_exec_host, barrier, barrier_queue, remote[0], sudo, testdir, remote[1])
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/parallel.py", line 84, in __exit__
    for result in self:
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/parallel.py", line 98, in __next__
    resurrect_traceback(result)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/parallel.py", line 30, in resurrect_traceback
    raise exc.exc_info[1]
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/parallel.py", line 23, in capture_traceback
    return func(*args, **kwargs)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/task/pexec.py", line 60, in _exec_host
    tor.wait([r])
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/orchestra/run.py", line 479, in wait
    proc.wait()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/orchestra/run.py", line 161, in wait
    self._raise_for_status()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/orchestra/run.py", line 183, in _raise_for_status
    node=self.hostname, label=self.label
teuthology.exceptions.CommandFailedError: Command failed on smithi125 with status 1: 'TESTDIR=/home/ubuntu/cephtest bash -s'
2022-03-17T17:06:58.017 ERROR:teuthology.run_tasks: Sentry event: https://sentry.ceph.com/organizations/ceph/?query=9636d9d49b2b403ca15242337274d90f
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/run_tasks.py", line 91, in run_tasks
    manager = run_one_task(taskname, ctx=ctx, config=config)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/run_tasks.py", line 70, in run_one_task
    return task(**kwargs)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/task/pexec.py", line 149, in task
    p.spawn(_exec_host, barrier, barrier_queue, remote[0], sudo, testdir, remote[1])
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/parallel.py", line 84, in __exit__
    for result in self:
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/parallel.py", line 98, in __next__
    resurrect_traceback(result)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/parallel.py", line 30, in resurrect_traceback
    raise exc.exc_info[1]
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/parallel.py", line 23, in capture_traceback
    return func(*args, **kwargs)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/task/pexec.py", line 60, in _exec_host
    tor.wait([r])
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/orchestra/run.py", line 479, in wait
    proc.wait()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/orchestra/run.py", line 161, in wait
    self._raise_for_status()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_a09009223dc44ca923b2e6ad4cd4c4fe88381b22/teuthology/orchestra/run.py", line 183, in _raise_for_status
    node=self.hostname, label=self.label
teuthology.exceptions.CommandFailedError: Command failed on smithi125 with status 1: 'TESTDIR=/home/ubuntu/cephtest bash -s'


Related issues 1 (0 open1 closed)

Has duplicate teuthology - Bug #54086: Permission denied when trying to unlink and open /var/log/ntpstats/...DuplicateAishwarya Mathuria

Actions
Actions #1

Updated by Kamoltat (Junior) Sirivadhna about 2 years ago

/a/yuriw-2022-03-26_19:49:47-rados-wip-yuri10-testing-2022-03-22-1809-pacific-distro-default-smithi/6762737

Actions #2

Updated by Laura Flores almost 2 years ago

/a/yuriw-2022-05-04_20:09:21-rados-pacific-distro-default-smithi/6821407

Actions #3

Updated by Laura Flores almost 2 years ago

  • Has duplicate Bug #54086: Permission denied when trying to unlink and open /var/log/ntpstats/... added
Actions #4

Updated by Laura Flores almost 2 years ago

/a/yuriw-2022-06-02_00:50:42-rados-wip-yuri4-testing-2022-06-01-1350-pacific-distro-default-smithi/6859624

Actions #5

Updated by Matan Breizman over 1 year ago

/a/yuriw-2022-08-22_21:19:34-rados-wip-yuri4-testing-2022-08-18-1020-pacific-distro-default-smithi/6986466

Actions #6

Updated by Laura Flores over 1 year ago

  • Translation missing: en.field_tag_list set to test-failure
  • Priority changed from Normal to High

Marking this as high since it appears in the rados suite a lot.

/a/amathuri-2022-09-08_14:19:23-rados-wip-yuri5-testing-2022-09-06-1334-pacific-distro-default-smithi/7020554

Actions #7

Updated by Adam King over 1 year ago

  • Project changed from Orchestrator to Dashboard
  • Subject changed from cannot stat '/etc/containers/registries.conf': No such file or directory to pacific: rados/dashboard: tasks/dashboard: cannot stat '/etc/containers/registries.conf': No such file or directory

moving this to dashboard component given the failure only exists in a dashboard specific test. My guess is this is an issue with something the test is doing rather than an actual bug in Ceph or the dashboard, but maybe someone who knows the dashboard tests a bit better can investigate. It also seems to only happen in pacific if that info is useful.

Actions #8

Updated by Aishwarya Mathuria over 1 year ago

/a/yuriw-2022-11-29_22:29:58-rados-wip-yuri10-testing-2022-11-29-1005-pacific-distro-default-smithi/7097412

Actions #9

Updated by Laura Flores over 1 year ago

This bug occurs on Pacific whenever the test is run on ubuntu.

There are clear messages about ubuntu not supporting Selinux in the log:

2022-11-30T01:15:07.924 DEBUG:teuthology.task:Applying overrides for task selinux: {'whitelist': ['scontext=system_u:system_r:logrotate_t:s0']}
2022-11-30T01:15:07.925 DEBUG:teuthology.task.selinux:Excluding smithi143: OS 'ubuntu' does not support SELinux
2022-11-30T01:15:07.925 DEBUG:teuthology.task.selinux:Excluding smithi175: OS 'ubuntu' does not support SELinux

Which leads to:

2022-11-30T01:19:48.277 INFO:teuthology.orchestra.run.smithi175.stdout:30 Nov 01:19:48 ntpd[17296]: Listening on routing socket on fd #22 for interface updates
2022-11-30T01:19:49.259 INFO:teuthology.orchestra.run.smithi143.stderr:30 Nov 01:19:49 ntpd[17328]: couldn't unlink /var/log/ntpstats/rawstats: Permission denied
2022-11-30T01:19:49.260 INFO:teuthology.orchestra.run.smithi143.stderr:30 Nov 01:19:49 ntpd[17328]: can't open /var/log/ntpstats/rawstats.20221130: Permission denied
2022-11-30T01:19:49.260 INFO:teuthology.orchestra.run.smithi143.stderr:30 Nov 01:19:49 ntpd[17328]: couldn't unlink /var/log/ntpstats/rawstats: Permission denied
2022-11-30T01:19:49.260 INFO:teuthology.orchestra.run.smithi143.stderr:30 Nov 01:19:49 ntpd[17328]: can't open /var/log/ntpstats/rawstats.20221130: Permission denied
2022-11-30T01:19:49.261 INFO:teuthology.orchestra.run.smithi143.stderr:30 Nov 01:19:49 ntpd[17328]: couldn't unlink /var/log/ntpstats/peerstats: Permission denied
2022-11-30T01:19:49.261 INFO:teuthology.orchestra.run.smithi143.stderr:30 Nov 01:19:49 ntpd[17328]: can't open /var/log/ntpstats/peerstats.20221130: Permission denied
2022-11-30T01:19:50.262 INFO:teuthology.orchestra.run.smithi175.stderr:30 Nov 01:19:50 ntpd[17296]: couldn't unlink /var/log/ntpstats/rawstats: Permission denied
2022-11-30T01:19:50.262 INFO:teuthology.orchestra.run.smithi175.stderr:30 Nov 01:19:50 ntpd[17296]: can't open /var/log/ntpstats/rawstats.20221130: Permission denied
2022-11-30T01:19:50.263 INFO:teuthology.orchestra.run.smithi175.stderr:30 Nov 01:19:50 ntpd[17296]: couldn't unlink /var/log/ntpstats/rawstats: Permission denied
2022-11-30T01:19:50.263 INFO:teuthology.orchestra.run.smithi175.stderr:30 Nov 01:19:50 ntpd[17296]: can't open /var/log/ntpstats/rawstats.20221130: Permission denied
2022-11-30T01:19:50.264 INFO:teuthology.orchestra.run.smithi175.stderr:30 Nov 01:19:50 ntpd[17296]: couldn't unlink /var/log/ntpstats/rawstats: Permission denied
2022-11-30T01:19:50.264 INFO:teuthology.orchestra.run.smithi175.stderr:30 Nov 01:19:50 ntpd[17296]: can't open /var/log/ntpstats/rawstats.20221130: Permission denied
2022-11-30T01:19:50.265 INFO:teuthology.orchestra.run.smithi175.stderr:30 Nov 01:19:50 ntpd[17296]: couldn't unlink /var/log/ntpstats/rawstats: Permission denied
2022-11-30T01:19:50.265 INFO:teuthology.orchestra.run.smithi175.stderr:30 Nov 01:19:50 ntpd[17296]: can't open /var/log/ntpstats/rawstats.20221130: Permission denied
2022-11-30T01:19:50.265 INFO:teuthology.orchestra.run.smithi175.stderr:30 Nov 01:19:50 ntpd[17296]: couldn't unlink /var/log/ntpstats/peerstats: Permission denied
2022-11-30T01:19:50.265 INFO:teuthology.orchestra.run.smithi175.stderr:30 Nov 01:19:50 ntpd[17296]: can't open /var/log/ntpstats/peerstats.20221130: Permission denied

And eventually..

2022-11-30T01:19:56.318 INFO:teuthology.run_tasks:Running task pexec...
2022-11-30T01:19:56.328 INFO:teuthology.task.pexec:Executing custom commands...
2022-11-30T01:19:56.329 INFO:teuthology.task.pexec:Running commands on host ubuntu@smithi143.front.sepia.ceph.com
2022-11-30T01:19:56.329 DEBUG:teuthology.orchestra.run.smithi143:> TESTDIR=/home/ubuntu/cephtest bash -s
2022-11-30T01:19:56.331 INFO:teuthology.task.pexec:Running commands on host ubuntu@smithi175.front.sepia.ceph.com
2022-11-30T01:19:56.331 DEBUG:teuthology.orchestra.run.smithi175:> TESTDIR=/home/ubuntu/cephtest bash -s
2022-11-30T01:19:56.349 INFO:teuthology.orchestra.run.smithi143.stderr:cp: cannot stat '/etc/containers/registries.conf': No such file or directory

As we've established, this bug only seems to occur on Pacific. The difference between tasks/dashboard tests on main/quincy vs. pacific is that we don't symlink to "supported-random-distros$" in main/quincy. There must be a commit somewhere where we dropped support for ubuntu that just needs to be backported.

tasks/dashboard for main: https://github.com/ceph/ceph/tree/main/qa/suites/rados/dashboard
tasks/dashboard for quincy: https://github.com/ceph/ceph/tree/quincy/qa/suites/rados/dashboard
tasks/dashboard for pacific: https://github.com/ceph/ceph/tree/pacific/qa/suites/rados/dashboard

Actions #10

Updated by Laura Flores over 1 year ago

These two commits pinned dashboard e2e test on centos only:

https://github.com/ceph/ceph/pull/42084
https://github.com/ceph/ceph/pull/42158

Both are from Kefu, so I may ask his opinion on this to make sure we are backporting the right things.

Actions #11

Updated by Laura Flores over 1 year ago

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

I think all that's needed is to remove the random distros facet, so I'm proposing backporting that commit. But I will ask for Kefu's opinion.

Actions #12

Updated by Laura Flores over 1 year ago

  • Assignee set to Laura Flores
Actions #13

Updated by Laura Flores over 1 year ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF