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

Quay notification worker was failed to send out notification when TLS is unmanaged

    XMLWordPrintable

Details

    • 0

    Description

      Description:

      This is is an issue found when configure quay to send notification when event(Push to Repository) occurred, after configured "Events and Notifications" and pushed new image to quay, found can't receive the notification, checked Quay App POD logs, found the notification was failed to sent out, see attached Quay App POD log quay_360_pod2.logs 

      Note: Quay image is quay-operator-bundle-container-v3.6.0-18

      notificationworker stdout | 2021-08-19 07:54:21,626 [77] [ERROR] [workers.worker] Operation raised exception
      notificationworker stdout | Traceback (most recent call last):
      notificationworker stdout |   File "/quay-registry/workers/worker.py", line 87, in _operation_func
      notificationworker stdout |     return operation_func()
      notificationworker stdout |   File "/quay-registry/workers/queueworker.py", line 136, in poll_queue
      notificationworker stdout |     self.process_queue_item(job_details)
      notificationworker stdout |   File "/quay-registry/workers/notificationworker/notificationworker.py", line 35, in process_queue_item
      notificationworker stdout |     method_handler.perform(notification, event_handler, job_details)
      notificationworker stdout |   File "/quay-registry/notifications/notificationmethod.py", line 249, in perform
      notificationworker stdout |     resp = requests.post(
      notificationworker stdout |   File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 116, in post
      notificationworker stdout |     return request('post', url, data=data, json=json, **kwargs)
      notificationworker stdout |   File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 60, in request
      notificationworker stdout |     return session.request(method=method, url=url, **kwargs)
      notificationworker stdout |   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 533, in request
      notificationworker stdout |     resp = self.send(prep, **send_kwargs)
      notificationworker stdout |   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 646, in send
      notificationworker stdout |     r = adapter.send(request, **kwargs)
      notificationworker stdout |   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 416, in send
      notificationworker stdout |     self.cert_verify(conn, request.url, verify, cert)
      notificationworker stdout |   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 249, in cert_verify
      notificationworker stdout |     raise IOError("Could not find the TLS certificate file, "
      notificationworker stdout | OSError: Could not find the TLS certificate file, invalid path: /quay-registry/conf/stack/ssl.cert
      

      Steps:

      1. Deploy quay with Quay Operator, choose to use managed route and unmanaged tls components with provided TLS cert/key pairs
      2. Login quay and create new image repo
      3. Create "Events and Notifications", configure to send notification to webhook when new image was pushed to image repository(https://webhook.site)
      4. Push image to this image repo with podman
      5. Go to (https://webhook.site) to check notification

      Expected Results:

      Get notification successfully.

      Actual Results:

      Can't get notification.

      Attachments

        Issue Links

          Activity

            People

              sleesinc Kenny Lee Sin Cheong
              lzha1981 luffy zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: