Bug #6368
closedrbd nosetests keep failing with AttributeError
0%
Description
We keep seeing failures for tests against rbd, I think this has something to do with the use of globals
in the test suite (as opposed to proper setup/teardwon methods).
The complete list of failures are here: http://qa-proxy.ceph.com/teuthology/teuthology-2013-09-23_01:10:03-ceph-deploy-master-testing-basic-vps/12417/teuthology.log
This is a sample of how all fail though:
2013-09-23T01:51:29.168 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: ====================================================================== 2013-09-23T01:51:29.169 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: ERROR: test_rbd.TestImage.test_large_write 2013-09-23T01:51:29.169 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: ---------------------------------------------------------------------- 2013-09-23T01:51:29.170 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: Traceback (most recent call last): 2013-09-23T01:51:29.170 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: File "/usr/lib/python2.6/site-packages/nose/case.py", line 363, in setUp 2013-09-23T01:51:29.170 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: try_run(self.inst, ('setup', 'setUp')) 2013-09-23T01:51:29.170 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: File "/usr/lib/python2.6/site-packages/nose/util.py", line 453, in try_run 2013-09-23T01:51:29.170 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: return func() 2013-09-23T01:51:29.170 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: File "/home/ubuntu/cephtest/mnt.0/client.0/tmp/test_rbd.py", line 225, in setUp 2013-09-23T01:51:29.170 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: create_image() 2013-09-23T01:51:29.170 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: File "/home/ubuntu/cephtest/mnt.0/client.0/tmp/test_rbd.py", line 45, in create_image 2013-09-23T01:51:29.170 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: RBD().create(ioctx, IMG_NAME, IMG_SIZE, IMG_ORDER, old_format=True) 2013-09-23T01:51:29.170 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: File "/usr/lib/python2.6/site-packages/rbd.py", line 175, in create 2013-09-23T01:51:29.170 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: ret = self.librbd.rbd_create(ioctx.io, c_char_p(name), 2013-09-23T01:51:29.170 INFO:teuthology.task.workunit.client.0.err:[10.214.138.92]: AttributeError: 'NoneType' object has no attribute 'io'
Updated by Alfredo Deza over 10 years ago
- Subject changed from rbs nosetests keep failing with AttributeError to rbd nosetests keep failing with AttributeError
Updated by Alfredo Deza over 10 years ago
This is still failing as of today: http://qa-proxy.ceph.com/teuthology/teuthology-2013-10-01_01:10:01-ceph-deploy-next-testing-basic-vps/27223/teuthology.log
Updated by Alfredo Deza over 10 years ago
Issue #6648 was opened recently with a `Can't reproduce` status.
I believe that re-writing these tests to avoid global state will give us better insight to what is going on.
They are still failing: http://qa-proxy.ceph.com/teuthology/teuthology-2013-11-07_01:10:14-ceph-deploy-next-testing-basic-vps/87788/teuthology.log
Updated by Alfredo Deza over 10 years ago
- Priority changed from Normal to Urgent
Changing the priority of this so that we can (hopefully) get it fixed soon.
This is still an issue for the nightly tests
Updated by Josh Durgin over 10 years ago
- Status changed from 12 to Resolved
This turned out to be a silly version skew problem. centos and rhel have older versions of nosetests that needed different function names. Fixed by commit:f753d56a9edba6ce441520ac9b52b93bd8f1b5b4 in next and master.