Stx/config/sysinv unit tests fail in python3.9 environment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
In Progress
|
Low
|
Dan Voiculeasa |
Bug Description
Brief Description
-----------------
Working towards migrating to Debian OS.
Enabling tox tests in a Python3.9 environment: https:/
Tox tests fail.
Fixing some of the issues:
https:/
https:/
Cherry-pick to master of: https:/
There is still one more issue.
Severity
--------
Minor
Steps to Reproduce
------------------
tox -e py39
Expected Behavior
------------------
tests pass
Actual Behavior
----------------
A few tests fail with sqlalchemy.
Reproducibility
---------------
100%
System Configuration
-------
-
Branch/Pull Time/Commit
-------
August 2021
Last Pass
---------
-
Timestamp/Logs
-------
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/my/starlingx-
self.
File "/my/starlingx-
response = self.app.
File "/tmp/root_
return self.do_
File "/tmp/root_
self.
File "/tmp/root_
raise AppError(
webtest.
b'{"error_message": "{\\"faultcode\\": \\"Server\\", \\"faultstring\\": \\"Instance <SensorsAnalog at 0x7f3bcec312e0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: http://
Captured pythonlogging:
~~~~~~~
_host_
None "POST /v1/isensors HTTP/1.0" status: 200 len: 914 time: 0.05324959754943848 POST: {'host_uuid': '1a6b9450-
Server-side error: "Instance <SensorsAnalog at 0x7f3bcec312e0> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: http://
Traceback (most recent call last):
File "/tmp/root_
result = f(self, *args, **kwargs)
File "/my/starlingx-
rpc_sensor = objects.
File "/my/starlingx-
result = fn(cls, context, *args, **kwargs)
File "/my/starlingx-
return cls.dbapi.
File "/my/starlingx-
return klass.from_
File "/my/starlingx-
return cls._from_
File "/my/starlingx-
if not hasattr(db_object, field):
File "/tmp/root_
return self.impl.
File "/tmp/root_
value = state._
File "/tmp/root_
self.
File "/tmp/root_
raise orm_exc.
sqlalchemy.
---
Test Activity
-------------
Developer Testing
Workaround
----------
Temporary downgrade SQLAlchemy to 1.2.0(or 1.2.X?) in mock environment.
tags: | added: stx.python3 |
Changed in starlingx: | |
assignee: | nobody → Dan Voiculeasa (dvoicule) |
importance: | Undecided → Low |
Fix proposed to branch: master /review. opendev. org/c/starlingx /root/+ /804845
Review: https:/