Horizon: Fails to launch due to python3-django package upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Agustin Carranza |
Bug Description
Brief Description
-----------------
This change upgraded python3-django package to fix a CVE issue:
https:/
Due to this upgrade, Horizon fails to launch with "ValueError: FileInput doesn't support uploading multiple files."
Starlingx dashboard source code must be updated to comply with updated django package.
Log indicate the issues occurs here:
https:/
Severity
--------
Provide the severity of the defect.
<Critical: System/Feature is not usable due to the defect>
Steps to Reproduce
------------------
- Build and install latest ISO from master branch
- Configure and initialize system
- Observe via sm-customer.log that horizon fails to start
Expected Behavior
------------------
Horizon should start with no issues
Actual Behavior
----------------
Horizon does not start
Reproducibility
---------------
Reproducible
System Configuration
-------
AIO-SX
Branch/Pull Time/Commit
-------
stx/master
Build ID: 2023-09-04_16-20-34
Last Pass
---------
Yes, before python3-django upgrade
Timestamp/Logs
--------------
Logs from /var/log/
[2023-09-05 00:13:50 +0000] [20519] [INFO] Starting gunicorn 20.1.0
[2023-09-05 00:13:50 +0000] [20519] [INFO] Listening at: http://
[2023-09-05 00:13:50 +0000] [20519] [INFO] Using worker: eventlet
[2023-09-05 00:13:50 +0000] [21363] [INFO] Booting worker with pid: 21363
[2023-09-05 00:13:51 +0000] [21363] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/lib/
worker.
File "/usr/lib/
self.patch()
File "/usr/lib/
eventlet.
File "/usr/lib/
_green_
File "/usr/lib/
if isinstance(obj, rlock_type):
File "/usr/lib/
self._setup()
File "/usr/lib/
self._wrapped = self._setupfunc()
File "/usr/lib/
return self._urls()[0]
File "/usr/lib/
_wrapped_
File "/usr/lib/
_wrapped_
File "/usr/lib/
urlpatterns = self._get_
File "/usr/lib/
urls_mod = import_
File "/usr/lib/
return _bootstrap.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "/usr/lib/
from starlingx_
File "/usr/lib/
from starlingx_
File "/usr/lib/
class UploadPatchForm
File "/usr/lib/
widget=
File "/usr/lib/
raise ValueError(
ValueError: FileInput doesn't support uploading multiple files.
[2023-09-05 00:13:51 +0000] [21363] [INFO] Worker exiting (pid: 21363)
[2023-09-05 00:13:51 +0000] [21374] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/lib/
worker.
File "/usr/lib/
self.patch()
File "/usr/lib/
eventlet.
File "/usr/lib/
_green_
File "/usr/lib/
if isinstance(obj, rlock_type):
File "/usr/lib/
self._setup()
File "/usr/lib/
self._wrapped = self._setupfunc()
File "/usr/lib/
return self._urls()[0]
File "/usr/lib/
_wrapped_
File "/usr/lib/
_wrapped_
File "/usr/lib/
urlpatterns = self._get_
File "/usr/lib/
urls_mod = import_
File "/usr/lib/
return _bootstrap.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "/usr/lib/
from starlingx_
File "/usr/lib/
from starlingx_
File "/usr/lib/
class UploadPatchForm
File "/usr/lib/
widget=
File "/usr/lib/
raise ValueError(
ValueError: FileInput doesn't support uploading multiple files.
[2023-09-05 00:13:51 +0000] [21374] [INFO] Worker exiting (pid: 21374)
[2023-09-05 00:13:51 +0000] [20519] [WARNING] Worker with pid 21374 was terminated due to signal 15
[2023-09-05 00:13:51 +0000] [20519] [INFO] Shutting down: Master
[2023-09-05 00:13:51 +0000] [20519] [INFO] Reason: Worker failed to boot.
Test Activity
-------------
Developer Testing
Workaround
----------
Rollback python3-django package to python3-
tags: | added: stx.9.0 stx.gui |
Log from /var/log/ sm-customer. log
| 2023-09- 05T21:15: 50.979 | 1541 | service-scn | horizon | enabling- throttle- failed | enabling-failed | throttle open to enable service 05T21:16: 04.995 | 1542 | service-scn | horizon | enabling-failed | enabled- active- failed | enable success 05T21:16: 07.649 | 1543 | service-scn | horizon | enabled- active- failed | disabled-failed | process (pid=482022) failed 05T21:16: 07.711 | 1544 | service-scn | horizon | disabled-failed | enabling- throttle- failed | enabled-active state requested
| 2023-09-
| 2023-09-
| 2023-09-