Bug 1371710

Summary: [1.3.2 - 0.94.5-15] ERROR: test_rbd.TestCloneRollback.test_rollback_parented_to_flattened
Product: Red Hat Ceph Storage Reporter: Vasu Kulkarni <vakulkar>
Component: RBDAssignee: Jason Dillaman <jdillama>
Status: CLOSED NOTABUG QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.3.2CC: ceph-eng-bugs, kdreyer
Target Milestone: rc   
Target Release: 2.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-31 23:18:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vasu Kulkarni 2016-08-30 21:57:00 UTC
Description of problem:

Running python api tests fail for following 2 tests

2016-08-30T16:03:13.322 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.TestImage.test_set_snap_sparse ... ok
2016-08-30T16:03:13.323 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.TestImage.test_size ... ok
2016-08-30T16:03:13.324 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.TestImage.test_stat ... ok
2016-08-30T16:03:13.324 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.TestImage.test_write ... ok
2016-08-30T16:03:13.325 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.TestImage.test_write_read ... ok
2016-08-30T16:03:13.326 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.TestImage.test_write_with_fadvise_flags ... ok
2016-08-30T16:03:13.327 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.test_version ... ok
2016-08-30T16:03:13.327 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.test_create ... ok
2016-08-30T16:03:13.328 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.test_create_defaults ... ok
2016-08-30T16:03:13.329 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.test_context_manager ... ok
2016-08-30T16:03:13.329 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.test_open_read_only ... ok
2016-08-30T16:03:13.330 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.test_open_dne ... ok
2016-08-30T16:03:13.331 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.test_open_readonly_dne ... ok
2016-08-30T16:03:13.331 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.test_remove_dne ... ok
2016-08-30T16:03:13.332 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.test_list_empty ... ok
2016-08-30T16:03:13.333 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.test_list ... ok
2016-08-30T16:03:13.334 INFO:tasks.workunit.client.0.pluto005.stderr:test_rbd.test_rename ... ok
2016-08-30T16:03:13.334 INFO:tasks.workunit.client.0.pluto005.stderr:
2016-08-30T16:03:13.335 INFO:tasks.workunit.client.0.pluto005.stderr:======================================================================
2016-08-30T16:03:13.336 INFO:tasks.workunit.client.0.pluto005.stderr:ERROR: test_rbd.TestCloneRollback.test_rollback_parented_to_flattened
2016-08-30T16:03:13.336 INFO:tasks.workunit.client.0.pluto005.stderr:----------------------------------------------------------------------
2016-08-30T16:03:13.337 INFO:tasks.workunit.client.0.pluto005.stderr:Traceback (most recent call last):
2016-08-30T16:03:13.338 INFO:tasks.workunit.client.0.pluto005.stderr:  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
2016-08-30T16:03:13.338 INFO:tasks.workunit.client.0.pluto005.stderr:    self.test(*self.arg)
2016-08-30T16:03:13.339 INFO:tasks.workunit.client.0.pluto005.stderr:  File "/home/ubuntu/cephtest/mnt.0/client.0/tmp/test_rbd.py", line 1108, in test_rollback_parented_to_flattened
2016-08-30T16:03:13.339 INFO:tasks.workunit.client.0.pluto005.stderr:    _, image, snap = clone.parent_info()
2016-08-30T16:03:13.340 INFO:tasks.workunit.client.0.pluto005.stderr:  File "/usr/lib/python2.7/site-packages/rbd.py", line 479, in parent_info
2016-08-30T16:03:13.341 INFO:tasks.workunit.client.0.pluto005.stderr:    raise make_ex(ret, 'error getting parent info for image %s' % (self.name,))
2016-08-30T16:03:13.341 INFO:tasks.workunit.client.0.pluto005.stderr:ImageNotFound: error getting parent info for image image41_cloned
2016-08-30T16:03:13.342 INFO:tasks.workunit.client.0.pluto005.stderr:
2016-08-30T16:03:13.343 INFO:tasks.workunit.client.0.pluto005.stderr:======================================================================
2016-08-30T16:03:13.343 INFO:tasks.workunit.client.0.pluto005.stderr:FAIL: test_rbd.TestCloneRollback.test_rollback_flattened_to_parented
2016-08-30T16:03:13.344 INFO:tasks.workunit.client.0.pluto005.stderr:----------------------------------------------------------------------
2016-08-30T16:03:13.345 INFO:tasks.workunit.client.0.pluto005.stderr:Traceback (most recent call last):
2016-08-30T16:03:13.345 INFO:tasks.workunit.client.0.pluto005.stderr:  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
2016-08-30T16:03:13.346 INFO:tasks.workunit.client.0.pluto005.stderr:    self.test(*self.arg)
2016-08-30T16:03:13.347 INFO:tasks.workunit.client.0.pluto005.stderr:  File "/home/ubuntu/cephtest/mnt.0/client.0/tmp/test_rbd.py", line 1094, in test_rollback_flattened_to_parented
2016-08-30T16:03:13.347 INFO:tasks.workunit.client.0.pluto005.stderr:    eq(head, expected_head)
2016-08-30T16:03:13.348 INFO:tasks.workunit.client.0.pluto005.stderr:AssertionError: '\x00\x00\x00\x00\x00\x00' != 'FOOBAR'
2016-08-30T16:03:13.349 INFO:tasks.workunit.client.0.pluto005.stderr:
2016-08-30T16:03:13.349 INFO:tasks.workunit.client.0.pluto005.stderr:----------------------------------------------------------------------
2016-08-30T16:03:13.350 INFO:tasks.workunit.client.0.pluto005.stderr:Ran 74 tests in 515.146s
2016-08-30T16:03:13.350 INFO:tasks.workunit.client.0.pluto005.stderr:
2016-08-30T16:03:13.351 INFO:tasks.workunit.client.0.pluto005.stderr:FAILED (SKIP=10, errors=1, failures=1)


Version:
python-rados-0.94.5-15.el7cp.x86_64 


Full logs:
http://magna002.ceph.redhat.com/vasu-2016-08-30_14:40:28-smoke-hammer---basic-multi/250321/teuthology.log

Comment 3 Jason Dillaman 2016-08-31 23:18:34 UTC
A new 0.94.8 test case that verified a bug fix was executed against 0.94.5

Comment 4 Vasu Kulkarni 2016-08-31 23:31:49 UTC
Jason,

:( , well i knew this was for 94.5(not far from 94.8) but there are api's that skip execution if not valid for the current ceph version, so its confusing and also this test looks so valid.

I am not sure how we can solve this problem for downstream, its going to be one ref based on the release(hammer, jewel etc), unless downstream rcm provides full cloned ref of the build associated with the errata build.

Comment 5 Ken Dreyer (Red Hat) 2016-09-01 04:09:47 UTC
When we can automate more of the build process, we'll be able to have Jenkins tag every Brew build's -patches ref, which will give us a straightforward way to "git checkout" the patches for a particular build.

An alternative solution would be to unpack the build's SRPM and use the tests in there, since that will have the exact code.