]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks: Fixed AttributeError: can't set attribute 31428/head
authorJos Collin <jcollin@redhat.com>
Wed, 6 Nov 2019 07:47:40 +0000 (13:17 +0530)
committerJos Collin <jcollin@redhat.com>
Wed, 27 Nov 2019 03:00:58 +0000 (08:30 +0530)
Fixes: https://tracker.ceph.com/issues/42636
Signed-off-by: Jos Collin <jcollin@redhat.com>
qa/tasks/ceph_manager.py
qa/tasks/mds_thrash.py
qa/tasks/mon_thrash.py
qa/tasks/rbd_mirror_thrash.py
qa/tasks/thrasher.py

index bf7d131a6d74f122970621d6ac4b4efc5c4afec4..ed5b2c92624ee042f8ae5e0266b13a9baf84be0a 100644 (file)
@@ -967,7 +967,7 @@ class OSDThrasher(Thrasher):
             self._do_thrash()
         except Exception as e:
             # See _run exception comment for MDSThrasher
-            self.exception = e
+            self.set_thrasher_exception(e)
             self.logger.exception("exception:")
             # Allow successful completion so gevent doesn't see an exception.
             # The DaemonWatchdog will observe the error and tear down the test.
index fc5a5514fefa1a6d60d2ef8c39f191446ce5afb0..d8c74250dd53590967f893fd0e1714530fedde58 100644 (file)
@@ -136,7 +136,7 @@ class MDSThrasher(Thrasher, Greenlet):
             #   File "/usr/lib/python2.7/traceback.py", line 13, in _print
             #     file.write(str+terminator)
             # 2017-02-03T14:34:01.261 CRITICAL:root:IOError
-            self.exception = e
+            self.set_thrasher_exception(e)
             self.logger.exception("exception:")
             # allow successful completion so gevent doesn't see an exception...
 
index d82141574e221b1df80fc890b8b0c32df6195a8e..16680538b5d9d097251ec852bedd3c0aec6e0eea 100644 (file)
@@ -232,7 +232,7 @@ class MonitorThrasher(Thrasher):
             self._do_thrash()
         except Exception as e:
             # See _run exception comment for MDSThrasher
-            self.exception = e
+            self.set_thrasher_exception(e)
             self.logger.exception("exception:")
             # Allow successful completion so gevent doesn't see an exception.
             # The DaemonWatchdog will observe the error and tear down the test.
index 2dbe43ceea071c6cdd13231a9ac4d99dbcc3dd55..d7fdf5607f9fdaeb6d95ca2c0008531e8ee21da4 100644 (file)
@@ -86,7 +86,7 @@ class RBDMirrorThrasher(Thrasher, Greenlet):
             self.do_thrash()
         except Exception as e:
             # See _run exception comment for MDSThrasher
-            self.exception = e
+            self.set_thrasher_exception(e)
             self.logger.exception("exception:")
             # Allow successful completion so gevent doesn't see an exception.
             # The DaemonWatchdog will observe the error and tear down the test.
index b34c747703adc24bb2f8d70bb553aa047c2cbdb2..0ea1bf0ee9bc4d9001850eb8e528464ae99d238f 100644 (file)
@@ -11,6 +11,5 @@ class Thrasher(object):
     def exception(self):
         return self._exception
 
-    @exception.setter
-    def exception(self, e):
+    def set_thrasher_exception(self, e):
         self._exception = e