Debian: Patch upload fails

Bug #1967797 reported by Jessica Castelino
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Jessica Castelino

Bug Description

Brief Description
-----------------

Py3 errors need to be fixed to get sw-patch upload to work
Severity
--------
Critical

Steps to Reproduce
------------------
Run sw-patch upload on a Debian AIO-SX

Expected Behavior
------------------
Patch upload should not throw errors

Actual Behavior
----------------
Patch upload throws errors in patching.log

Reproducibility
---------------
Reproducible

System Configuration
--------------------
Debian AIO-SX

Branch/Pull Time/Commit
-----------------------
04/04/2022

Last Pass
---------
N/A

Timestamp/Logs
--------------
2022-02-15T15:10:49: sw-patch-controller-daemon[1849]: patch_controller.py(2343))
: ERROR: An uncaught exception has occurred:
Traceback (most recent call last):
  File "/usr/lib/python3.9/wsgiref/handlers.py", line 137, in run
    self.result = application(self.environ, self.start_response)
  File "/usr/lib/python3/dist-packages/cgcs_patch/api/app.py", line 43, in __call
l__
    return self.v1(environ, start_response)
  File "/usr/lib/python3/dist-packages/pecan/middleware/recursive.py", line 56,
in __call__
    return self.application(environ, start_response)
  File "/usr/lib/python3/dist-packages/pecan/core.py", line 840, in __call__
    return super(Pecan, self).__call__(environ, start_response)
  File "/usr/lib/python3/dist-packages/pecan/core.py", line 683, in __call__
    self.invoke_controller(controller, args, kwargs, state)
  File "/usr/lib/python3/dist-packages/pecan/core.py", line 574, in invoke_contrr
oller
    result = controller(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/cgcs_patch/api/controllers/root.py", linee
 112, in upload
    src = fileitem.file.fileno()
io.UnsupportedOperation: fileno

Test Activity
-------------
Feature Testing

Workaround
----------
None

Changed in starlingx:
assignee: nobody → Jessica Castelino (jcasteli)
Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to update (master)

Reviewed: https://review.opendev.org/c/starlingx/update/+/836383
Committed: https://opendev.org/starlingx/update/commit/99ff47153de4d8c8518adde165d63a5ea29af3ba
Submitter: "Zuul (22348)"
Branch: master

commit 99ff47153de4d8c8518adde165d63a5ea29af3ba
Author: Jessica Castelino <email address hidden>
Date: Fri Apr 1 21:32:03 2022 +0000

    Python3 fixes for Debian patch upload

    This commit provides py3 fixes for sw-patch upload in Debian env.

    Change-Id: Iedc2eca9cd8c88fe6706d8d44957c64933bdffbc
    Closes-Bug: 1967797
    Signed-off-by: Jessica Castelino <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
tags: added: stx.7.0 stx.debian stx.update
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.