Project

General

Profile

Actions

Feature #8906

closed

New task: Calamari nose tests

Added by Anonymous almost 10 years ago. Updated over 9 years ago.

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

0%

Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:

Description

Nose testing of Calamari would probably make a cool teuthology task that widens the scope of things that teuthology is capable of doing.

This probably should be considered until the ceph-qa-suite core-teuthology split is completed.

Actions #1

Updated by Anonymous over 9 years ago

  • Assignee set to Anonymous
Actions #2

Updated by Zack Cerza over 9 years ago

  • Target version set to sprint16
Actions #3

Updated by Anonymous over 9 years ago

  • Status changed from New to In Progress
Actions #4

Updated by Zack Cerza over 9 years ago

  • Target version changed from sprint16 to sprint17
Actions #5

Updated by Dan Mick over 9 years ago

I'm kinda hacking around at this.

Actions #6

Updated by Ian Colle over 9 years ago

  • Target version changed from sprint17 to sprint18
Actions #7

Updated by Anonymous over 9 years ago

I tried running the changes on RHEL 6.5 and I got the following:

2014-11-24T18:02:19.575 INFO:teuthology.packaging:Installing package git on ubuntu@vpm107.front.sepia.ceph.com
2014-11-24T18:02:31.427 INFO:teuthology.orchestra.run.vpm107:Running: 'lsb_release -ics'
2014-11-24T18:02:31.482 INFO:teuthology.orchestra.run.vpm107:Running: 'lsb_release -irs'
2014-11-24T18:04:09.841 INFO:teuthology.orchestra.run.vpm107:Running: 'lsb_release -ics'
2014-11-24T18:04:10.035 INFO:teuthology.orchestra.run.vpm107:Running: 'lsb_release -irs'
2014-11-24T18:04:12.289 INFO:teuthology.orchestra.run.vpm107:Running: 'lsb_release -ics'
2014-11-24T18:04:12.423 INFO:teuthology.orchestra.run.vpm107:Running: 'lsb_release -irs'
2014-11-24T18:04:12.622 ERROR:teuthology.contextutil:Saw exception from nested tasks
Traceback (most recent call last):
  File "/home/wusui/src/teuthology/teuthology/contextutil.py", line 27, in nested
    vars.append(enter())
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "../ceph-qa-suite/tasks/calamari_nosetests.py", line 55, in install_git
    packaging.remove_package('git', client)
  File "/home/wusui/src/teuthology/teuthology/packaging.py", line 219, in remove_package
    flavor = _get_relmap(remote)['flavor']
  File "/home/wusui/src/teuthology/teuthology/packaging.py", line 59, in _get_relmap
    raise RuntimeError('Can\'t get release info for {}'.format(rem))
RuntimeError: Can't get release info for ubuntu@vpm107.front.sepia.ceph.com
2014-11-24T18:04:12.624 ERROR:teuthology.run_tasks:Saw exception from tasks.
Traceback (most recent call last):
  File "/home/wusui/src/teuthology/teuthology/run_tasks.py", line 55, in run_tasks
    manager.__enter__()
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "../ceph-qa-suite/tasks/calamari_nosetests.py", line 220, in task
    lambda: run_nosetests(ctx, client0),
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/wusui/src/teuthology/teuthology/contextutil.py", line 27, in nested
    vars.append(enter())
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "../ceph-qa-suite/tasks/calamari_nosetests.py", line 55, in install_git
    packaging.remove_package('git', client)
  File "/home/wusui/src/teuthology/teuthology/packaging.py", line 219, in remove_package
    flavor = _get_relmap(remote)['flavor']
  File "/home/wusui/src/teuthology/teuthology/packaging.py", line 59, in _get_relmap
    raise RuntimeError('Can\'t get release info for {}'.format(rem))
RuntimeError: Can't get release info for ubuntu@vpm107.front.sepia.ceph.com
2014-11-24T18:04:12.630 WARNING:teuthology.run_tasks:Saw failure, going into interactive mode...
2014-11-24T18:04:15.209 DEBUG:teuthology.run_tasks:Unwinding manager calamari_setup
2014-11-24T18:04:15.210 ERROR:teuthology.contextutil:Saw exception from nested tasks
Traceback (most recent call last):
  File "/home/wusui/src/teuthology/teuthology/contextutil.py", line 29, in nested
    yield vars
  File "../ceph-qa-suite/tasks/calamari_setup.py", line 72, in task
    yield
  File "/home/wusui/src/teuthology/teuthology/run_tasks.py", line 55, in run_tasks
    manager.__enter__()
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "../ceph-qa-suite/tasks/calamari_nosetests.py", line 220, in task
    lambda: run_nosetests(ctx, client0),
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/wusui/src/teuthology/teuthology/contextutil.py", line 27, in nested
    vars.append(enter())
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "../ceph-qa-suite/tasks/calamari_nosetests.py", line 55, in install_git
    packaging.remove_package('git', client)
  File "/home/wusui/src/teuthology/teuthology/packaging.py", line 219, in remove_package
    flavor = _get_relmap(remote)['flavor']
  File "/home/wusui/src/teuthology/teuthology/packaging.py", line 59, in _get_relmap
    raise RuntimeError('Can\'t get release info for {}'.format(rem))
RuntimeError: Can't get release info for ubuntu@vpm107.front.sepia.ceph.com
2014-11-24T18:04:15.210 INFO:tasks.calamari_setup:Calamari test terminating
2014-11-24T18:04:15.211 INFO:teuthology.orchestra.run.vpm116:Running: 'sudo stop ceph-all || sudo service ceph stop'
2014-11-24T18:04:15.244 INFO:teuthology.orchestra.run.vpm116.stderr:stop: Unknown job: ceph-all
2014-11-24T18:04:15.300 INFO:teuthology.orchestra.run.vpm116.stdout:=== osd.2 ===
2014-11-24T18:04:16.377 INFO:teuthology.orchestra.run.vpm116.stdout:Stopping Ceph osd.2 on vpm116...kill 2627...done
2014-11-24T18:04:16.381 INFO:teuthology.orchestra.run.vpm145:Running: 'sudo stop ceph-all || sudo service ceph stop'
2014-11-24T18:04:16.420 INFO:teuthology.orchestra.run.vpm145.stderr:stop: Unknown job: ceph-all

I set a pdb.set_trace() call before this line in install_package in teuthology/packaging:

    flavor = _get_relmap(remote)['flavor']

and got the following results:

2014-11-24 18:02:31,427.427 INFO:teuthology.orchestra.run.vpm107:Running: 'lsb_release -ics'
2014-11-24 18:02:31,482.482 INFO:teuthology.orchestra.run.vpm107:Running: 'lsb_release -irs'
*** RuntimeError: Can't get release info for ubuntu@vpm107.front.sepia.ceph.com

However, when I ssh'ed to vpm107, everything seemed fine:

[ubuntu@vpm107 ~]$ lsb_release -ics
RedHatEnterpriseServer Santiago
[ubuntu@vpm107 ~]$ lsb_release -irs
RedHatEnterpriseServer 6.5
[ubuntu@vpm107 ~]$ 

Actions #8

Updated by Anonymous over 9 years ago

This also has the same behavior on RHEL 7.0

Actions #9

Updated by Zack Cerza over 9 years ago

  • Target version changed from sprint18 to sprint19
Actions #10

Updated by Dan Mick over 9 years ago

Warren's errors were in code that I've already removed in teuthology (old packaging support code for the old Calamari 1.1 tests that were never really used). The current change branches are:

teuthology: wip-dmick
ceph-qa-suite: wip-calamari-nosetests
calamari: wip-testing and wip-testing-1.2.2

Actions #11

Updated by Anonymous over 9 years ago

Dan made some changes that are currently being reviewed.

Actions #12

Updated by Anonymous over 9 years ago

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

Updated by Zack Cerza over 9 years ago

  • Target version changed from sprint19 to sprint20
Actions #14

Updated by Dan Mick over 9 years ago

  • Assignee changed from Anonymous to Dan Mick

I've really taken this over; there's currently a branch to review at wip-calamari-nosetests

Actions #15

Updated by Zack Cerza over 9 years ago

  • Target version changed from sprint20 to sprint21
Actions #16

Updated by Zack Cerza over 9 years ago

  • Target version changed from sprint21 to sprint22
Actions #17

Updated by Dan Mick over 9 years ago

  • Status changed from Fix Under Review to Resolved
  • Source changed from other to Development
Actions

Also available in: Atom PDF