TestNovaMigrationsMySQL randomly fails with "sqlalchemy.exc.ResourceClosedError: This result object does not return rows. It has been closed automatically."
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
High
|
Unassigned |
Bug Description
Seen here:
http://
2017-12-20 21:18:29.233663 | ubuntu-xenial | {1} nova.tests.
2017-12-20 21:18:29.233713 | ubuntu-xenial |
2017-12-20 21:18:29.233737 | ubuntu-xenial | Captured pythonlogging:
2017-12-20 21:18:29.233758 | ubuntu-xenial | ~~~~~~~
2017-12-20 21:18:29.233808 | ubuntu-xenial | 2017-12-20 21:07:36,961 WARNING [oslo_config.cfg] Config option key_manager.
2017-12-20 21:18:29.233865 | ubuntu-xenial | 2017-12-20 21:07:36,985 INFO [oslo_db.
2017-12-20 21:18:29.233945 | ubuntu-xenial | 2017-12-20 21:18:29,205 INFO [oslo_db.
2017-12-20 21:18:29.233964 | ubuntu-xenial |
2017-12-20 21:18:29.233979 | ubuntu-xenial |
2017-12-20 21:18:29.233998 | ubuntu-xenial | Captured traceback:
2017-12-20 21:18:29.234017 | ubuntu-xenial | ~~~~~~~~~~~~~~~~~~~
2017-12-20 21:18:29.234041 | ubuntu-xenial | Traceback (most recent call last):
2017-12-20 21:18:29.234075 | ubuntu-xenial | File "nova/tests/
2017-12-20 21:18:29.234108 | ubuntu-xenial | sa_migration.
2017-12-20 21:18:29.234142 | ubuntu-xenial | File "nova/db/
2017-12-20 21:18:29.234164 | ubuntu-xenial | repository, version)
2017-12-20 21:18:29.234215 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.234250 | ubuntu-xenial | return _migrate(url, repository, version, upgrade=True, err=err, **opts)
2017-12-20 21:18:29.234277 | ubuntu-xenial | File "<decorator-
2017-12-20 21:18:29.234331 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.234357 | ubuntu-xenial | return f(*a, **kw)
2017-12-20 21:18:29.234409 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.234437 | ubuntu-xenial | schema.
2017-12-20 21:18:29.234489 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.234512 | ubuntu-xenial | change.
2017-12-20 21:18:29.234571 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.234596 | ubuntu-xenial | script_func(engine)
2017-12-20 21:18:29.234644 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.234668 | ubuntu-xenial | index.create(
2017-12-20 21:18:29.234719 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.234746 | ubuntu-xenial | bind._run_
2017-12-20 21:18:29.234798 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.234828 | ubuntu-xenial | conn._run_
2017-12-20 21:18:29.234880 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.234905 | ubuntu-xenial | **kwargs)
2017-12-20 21:18:29.235532 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.235575 | ubuntu-xenial | return meth(obj, **kw)
2017-12-20 21:18:29.235630 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.235658 | ubuntu-xenial | self.connection
2017-12-20 21:18:29.235708 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.235734 | ubuntu-xenial | return meth(self, multiparams, params)
2017-12-20 21:18:29.235787 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.235818 | ubuntu-xenial | return connection.
2017-12-20 21:18:29.235870 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.235889 | ubuntu-xenial | compiled
2017-12-20 21:18:29.235941 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.235960 | ubuntu-xenial | context)
2017-12-20 21:18:29.236089 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.236139 | ubuntu-xenial | util.raise_
2017-12-20 21:18:29.236194 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.236225 | ubuntu-xenial | reraise(
2017-12-20 21:18:29.236278 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.236297 | ubuntu-xenial | context)
2017-12-20 21:18:29.236349 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.236374 | ubuntu-xenial | cursor.
2017-12-20 21:18:29.236422 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.236446 | ubuntu-xenial | result = self._query(query)
2017-12-20 21:18:29.236494 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.236514 | ubuntu-xenial | conn.query(q)
2017-12-20 21:18:29.236563 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.236596 | ubuntu-xenial | self._affected_rows = self._read_
2017-12-20 21:18:29.236648 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.236668 | ubuntu-xenial | result.read()
2017-12-20 21:18:29.236717 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.236744 | ubuntu-xenial | first_packet = self.connection
2017-12-20 21:18:29.236795 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.236820 | ubuntu-xenial | packet_header = self._read_bytes(4)
2017-12-20 21:18:29.236870 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.236900 | ubuntu-xenial | data = self._rfile.
2017-12-20 21:18:29.236952 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.236976 | ubuntu-xenial | return self._sock.
2017-12-20 21:18:29.237026 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.237058 | ubuntu-xenial | return self._recv_
2017-12-20 21:18:29.237118 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.237144 | ubuntu-xenial | self._read_
2017-12-20 21:18:29.237198 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.237224 | ubuntu-xenial | timeout_
2017-12-20 21:18:29.237275 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.237300 | ubuntu-xenial | mark_as_
2017-12-20 21:18:29.237351 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.237372 | ubuntu-xenial | return hub.switch()
2017-12-20 21:18:29.237420 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.237444 | ubuntu-xenial | return self.greenlet.
2017-12-20 21:18:29.237492 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.237514 | ubuntu-xenial | self.wait(
2017-12-20 21:18:29.237566 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.237591 | ubuntu-xenial | presult = self.do_
2017-12-20 21:18:29.237641 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.237664 | ubuntu-xenial | return self.poll.
2017-12-20 21:18:29.237920 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.237955 | ubuntu-xenial | raise TimeoutException()
2017-12-20 21:18:29.237981 | ubuntu-xenial | IndexError: tuple index out of range
2017-12-20 21:18:29.237996 | ubuntu-xenial |
2017-12-20 21:18:29.238011 | ubuntu-xenial |
2017-12-20 21:18:29.238030 | ubuntu-xenial | Captured traceback-1:
2017-12-20 21:18:29.238050 | ubuntu-xenial | ~~~~~~~
2017-12-20 21:18:29.238073 | ubuntu-xenial | Traceback (most recent call last):
2017-12-20 21:18:29.238133 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.238166 | ubuntu-xenial | return self._cleanups(
2017-12-20 21:18:29.238216 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.238241 | ubuntu-xenial | reraise(error[0], error[1], error[2])
2017-12-20 21:18:29.238290 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.238313 | ubuntu-xenial | cleanup(*args, **kwargs)
2017-12-20 21:18:29.238365 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.238402 | ubuntu-xenial | resource[
2017-12-20 21:18:29.238456 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.238481 | ubuntu-xenial | self._clean_
2017-12-20 21:18:29.238533 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.238554 | ubuntu-xenial | self.clean(
2017-12-20 21:18:29.238606 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.238629 | ubuntu-xenial | resource.
2017-12-20 21:18:29.238683 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.238712 | ubuntu-xenial | self.impl.
2017-12-20 21:18:29.238768 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.238791 | ubuntu-xenial | with engine.begin() as conn:
2017-12-20 21:18:29.238842 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.238874 | ubuntu-xenial | conn = self.contextual
2017-12-20 21:18:29.238928 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.238972 | ubuntu-xenial | **kwargs)
2017-12-20 21:18:29.239028 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.239057 | ubuntu-xenial | self.dispatch.
2017-12-20 21:18:29.239119 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.239168 | ubuntu-xenial | fn(*args, **kw)
2017-12-20 21:18:29.239231 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.239256 | ubuntu-xenial | connection.
2017-12-20 21:18:29.239307 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.239338 | ubuntu-xenial | return self.execute(
2017-12-20 21:18:29.239389 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.239409 | ubuntu-xenial | row = self.first()
2017-12-20 21:18:29.239460 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.239484 | ubuntu-xenial | return self._non_
2017-12-20 21:18:29.239536 | ubuntu-xenial | File "/home/
2017-12-20 21:18:29.239563 | ubuntu-xenial | "This result object does not return rows. "
2017-12-20 21:18:29.239604 | ubuntu-xenial | sqlalchemy.
67 hits in 7 days, check and gate, all failures. Also failing in newton and pike...
I'm not seeing this in logstash anymore, not sure what might have fixed it.