Project

General

Profile

Actions

Bug #25031

closed

mimic: ceph-disk: test fails to install pytest on rhel

Added by Yuri Weinstein almost 6 years ago. Updated about 5 years ago.

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

0%

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

Description

Run: http://pulpito.ceph.com/yuriw-2018-07-20_16:43:48-ceph-disk-mimic-distro-basic-ovh/
Job: 2801791
Logs: http://qa-proxy.ceph.com/teuthology/yuriw-2018-07-20_16:43:48-ceph-disk-mimic-distro-basic-ovh/2801791/teuthology.log

2018-07-20T17:03:32.709 INFO:tasks.workunit.client.0.ovh014.stderr:+ PATH=/home/ubuntu/cephtest/clone.client.0/qa/workunits/ceph-disk:/home/ubuntu/cephtest/clone.client.0/qa/workunits/ceph-disk/..:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/sbin
2018-07-20T17:03:32.709 INFO:tasks.workunit.client.0.ovh014.stderr:+ : python
2018-07-20T17:03:32.709 INFO:tasks.workunit.client.0.ovh014.stderr:++ python --version
2018-07-20T17:03:32.711 INFO:tasks.workunit.client.0.ovh014.stderr:+ PY_VERSION='Python 2.7.5'
2018-07-20T17:03:32.711 INFO:tasks.workunit.client.0.ovh014.stderr:+ python -m pytest --version
2018-07-20T17:03:32.731 INFO:tasks.workunit.client.0.ovh014.stdout:py.test not installed for Python 2.7.5
2018-07-20T17:03:32.731 INFO:tasks.workunit.client.0.ovh014.stderr:+ echo 'py.test not installed for Python 2.7.5'
2018-07-20T17:03:32.731 INFO:tasks.workunit.client.0.ovh014.stderr:+ exit 1
2018-07-20T17:03:32.736 INFO:tasks.workunit:Stopping ['ceph-disk/ceph-disk.sh'] on client.0...
2018-07-20T17:03:32.736 INFO:teuthology.orchestra.run.ovh014:Running: 'rm -rf -- /home/ubuntu/cephtest/workunits.list.client.0 /home/ubuntu/cephtest/clone.client.0'
2018-07-20T17:03:33.191 ERROR:teuthology.run_tasks:Saw exception from tasks.
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/run_tasks.py", line 86, in run_tasks
    manager = run_one_task(taskname, ctx=ctx, config=config)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/run_tasks.py", line 65, in run_one_task
    return task(**kwargs)
  File "/home/teuthworker/src/github.com_ceph_ceph_mimic/qa/tasks/workunit.py", line 206, in task
    cleanup=cleanup)
  File "/home/teuthworker/src/github.com_ceph_ceph_mimic/qa/tasks/workunit.py", line 356, in _spawn_on_all_clients
    timeout=timeout)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/parallel.py", line 85, in __exit__
    for result in self:
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/parallel.py", line 99, in next
    resurrect_traceback(result)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/parallel.py", line 22, in capture_traceback
    return func(*args, **kwargs)
  File "/home/teuthworker/src/github.com_ceph_ceph_mimic/qa/tasks/workunit.py", line 479, in _run_tests
    label="workunit test {workunit}".format(workunit=workunit)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/remote.py", line 193, in run
    r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 423, in run
    r.wait()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 155, in wait
    self._raise_for_status()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 177, in _raise_for_status
    node=self.hostname, label=self.label
CommandFailedError: Command failed (workunit test ceph-disk/ceph-disk.sh) on ovh014 with status 1: 'mkdir -p -- /home/ubuntu/cephtest/mnt.0/client.0/tmp && cd -- /home/ubuntu/cephtest/mnt.0/client.0/tmp && CEPH_CLI_TEST_DUP_COMMAND=1 CEPH_REF=mimic TESTDIR="/home/ubuntu/cephtest" CEPH_ARGS="--cluster ceph" CEPH_ID="0" PATH=$PATH:/usr/sbin CEPH_BASE=/home/ubuntu/cephtest/clone.client.0 CEPH_ROOT=/home/ubuntu/cephtest/clone.client.0 adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 3h /home/ubuntu/cephtest/clone.client.0/qa/workunits/ceph-disk/ceph-disk.sh'

Related issues 1 (0 open1 closed)

Related to Ceph - Bug #25005: AnsibleFailedError in ceph-diskResolved07/19/2018

Actions
Actions #1

Updated by Nathan Cutler almost 6 years ago

The ceph-disk workunit needs pytest to be able to do its work. It tries to install pytest like so:

install python-pytest || true
install pytest || true

(In other words, it tries to install the packages "python-pytest" and "pytest")

In the case of RHEL, both of these fail. How does one install pytest on RHEL?

Actions #2

Updated by Nathan Cutler almost 6 years ago

  • Subject changed from ceph-disk test fails on rhel to ceph-disk test fails to install pytest on rhel
Actions #3

Updated by Patrick Donnelly almost 6 years ago

  • Subject changed from ceph-disk test fails to install pytest on rhel to ceph-disk: test fails to install pytest on rhel
Actions #4

Updated by Patrick Donnelly over 5 years ago

  • Project changed from Ceph to devops
Actions #5

Updated by Nathan Cutler over 5 years ago

The RHEL machines in the lab are not registered, and my guess is that yum can't easily be convinced to install python-pytest on an unregistered RHEL system:

2018-07-30T20:29:36.725 INFO:tasks.workunit.client.0.ovh026.stderr:+ sudo yum install -y python-pytest
2018-07-30T20:29:36.999 INFO:tasks.workunit.client.0.ovh026.stdout:Loaded plugins: fastestmirror, langpacks, priorities, product-id, search-
2018-07-30T20:29:37.000 INFO:tasks.workunit.client.0.ovh026.stdout:              : disabled-repos, subscription-manager
2018-07-30T20:29:38.002 INFO:tasks.workunit.client.0.ovh026.stdout:This system is not registered with an entitlement server. You can use subscription-manager to register.
2018-07-30T20:29:38.016 INFO:tasks.workunit.client.0.ovh026.stdout:Loading mirror speeds from cached hostfile
2018-07-30T20:29:38.017 INFO:tasks.workunit.client.0.ovh026.stdout: * epel: mirror.oss.ou.edu
2018-07-30T20:29:39.069 INFO:tasks.workunit.client.0.ovh026.stdout:No package python-pytest available.

Two workarounds come to mind:

1. pre-install python-pytest on the OVH image when creating it
2. hack the workunit so it installs pytest via pip if the RPM install fails

Actions #6

Updated by Nathan Cutler over 5 years ago

Note to self: https://github.com/smithfarm/ceph/tree/wip-qa-ceph-detect-init-alt

teuthology-suite -k distro --machine-type ovh --email ncutler@suse.cz --priority 70 --ceph wip-smithfarm-testing --suite-repo https://github.com/smithfarm/ceph.git --suite-branch wip-qa-ceph-detect-init-alt --suite ceph-disk/basic --filter rhel

Actions #7

Updated by Nathan Cutler over 5 years ago

  • Status changed from New to In Progress
  • Assignee set to Nathan Cutler
Actions #8

Updated by Nathan Cutler over 5 years ago

  • Status changed from In Progress to Fix Under Review
Actions #9

Updated by Nathan Cutler over 5 years ago

  • Subject changed from ceph-disk: test fails to install pytest on rhel to mimic: ceph-disk: test fails to install pytest on rhel
  • Backport set to luminous
Actions #10

Updated by Nathan Cutler over 5 years ago

  • Related to Bug #25005: AnsibleFailedError in ceph-disk added
Actions #11

Updated by Nathan Cutler about 5 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #12

Updated by Nathan Cutler about 5 years ago

  • Status changed from Pending Backport to Resolved
  • Backport deleted (luminous)

backport to luminous being handled at #18163

Actions

Also available in: Atom PDF