Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-4779

Quay 3.8.0 security worker always report TypeError for start_index

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • quay-v3.8.0
    • -area/secscan, quay
    • False
    • None
    • False

      Description:

      This is an issue of Quay 3.8.0 security worker, when quay security worker is running, found always report error "TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'", but the image vulnerability scanning works well on Quay Console, Quay Customers may have concerns for this unrelated error message, pls review and remove this error message in Quay 3.8.0 logs.

      Quay Image: quay-operator-bundle-container-v3.8.0-121

      securityworker stdout | 2022-11-28 03:18:03,496 [75] [ERROR] [workers.worker] Operation raised exception
      securityworker stdout | Traceback (most recent call last):
      securityworker stdout |   File "/quay-registry/workers/worker.py", line 87, in _operation_func
      securityworker stdout |     return operation_func()
      securityworker stdout |   File "/quay-registry/workers/securityworker/securityworker.py", line 45, in _index_recent_manifests_in_scanner
      securityworker stdout |     self._model.perform_indexing_recent_manifests(batch_size)
      securityworker stdout |   File "/quay-registry/data/secscan_model/__init__.py", line 40, in perform_indexing_recent_manifests
      securityworker stdout |     self._model.perform_indexing_recent_manifests(batch_size)
      securityworker stdout |   File "/quay-registry/data/secscan_model/secscan_v4_model.py", line 246, in perform_indexing_recent_manifests
      securityworker stdout |     start_index = max(end_index - batch_size, 1)
      securityworker stdout | TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
      securityworker stdout | 2022-11-28 03:18:03,497 [75] [INFO] [apscheduler.executors.default] Job "SecurityWorker._index_recent_manifests_in_scanner (trigger: interval[0:00:30], next run at: 2022-11-28 03:18:32 UTC)" executed successfully 

              Unassigned Unassigned
              lzha1981 luffy zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: