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

wrong type of event propagated when multiple policy for tag expiration trigger

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • quay-v3.12.1
    • quay-v3.12.1
    • quay
    • False
    • None
    • False

      Description:

      Wrong type of event notification triggered with multiple notification

      Quay Version: quay-operator-bundle-container-v3.12.0-27

       

      Reproduce Steps:

      1, Create a repo with several image tags

      2, Create a Slack notification of "Image expiry trigger"  with 10 day

      3, Update a tag with Expires: 3 days

      4, Check Slack Channel until get the event

      5, Create a Email notification of "Image expiry trigger"  with 20 day, click submit

      6, Check event on both Slack the Email

       

      Actual Result:

      Wrong event got in Slack, the second one triggered by Email notification

      in the Email side, got expected result:

      Expected Result:

      Email notification should only send to Email client.

       

      config.yaml

      BROWSER_API_CALLS_XHR_ONLY: false
      PERMANENTLY_DELETE_TAGS: true
      RESET_CHILD_MANIFEST_EXPIRATION: true
      FEATURE_EXTENDED_REPOSITORY_NAMES: true
      CREATE_NAMESPACE_ON_PUSH: true
      FEATURE_QUOTA_MANAGEMENT: true
      FEATURE_PROXY_CACHE: true
      FEATURE_USER_INITIALIZE: true
      FEATURE_PROXY_STORAGE: true
      IGNORE_UNKNOWN_MEDIATYPES: true
      FEATURE_UI_V2: true
      FEATURE_SUPERUSERS_FULL_ACCESS: true
      FEATURE_AUTO_PRUNE: true
      NOTIFICATION_TASK_RUN_MINIMUM_INTERVAL_MINUTES: 10
      AUTOPRUNE_TASK_RUN_MINIMUM_INTERVAL_MINUTES: 10
      SUPER_USERS:
        - quay
        - admin
      GLOBAL_READONLY_SUPER_USERS:
        - superglobalro
      FEATURE_MAILING: true
      MAIL_DEFAULT_SENDER: lixiong@redhat.com
      MAIL_PASSWORD: xxx
      MAIL_PORT: 25
      MAIL_SERVER: sandbox.smtp.mailtrap.io
      MAIL_USE_AUTH: true
      MAIL_USE_TLS: true
      MAIL_USERNAME: a358a44a0938b2
      
      

       

      Note:

      If I continue to create third Webhook POST 30days notification, on webhook side, get expect result:

      but this event also propagate to Email and Slack

       

        1. image-2024-07-16-17-03-51-258.png
          image-2024-07-16-17-03-51-258.png
          143 kB
        2. image-2024-07-16-17-05-41-250.png
          image-2024-07-16-17-05-41-250.png
          91 kB
        3. image-2024-07-16-17-12-00-717.png
          image-2024-07-16-17-12-00-717.png
          139 kB
        4. image-2024-07-16-17-13-01-093.png
          image-2024-07-16-17-13-01-093.png
          214 kB
        5. image-2024-07-16-17-13-55-248.png
          image-2024-07-16-17-13-55-248.png
          151 kB
        6. quayapp.log
          5.37 MB
        7. quayapp1.log
          4.69 MB

              sdadi@redhat.com Sunanda Dadi
              szhao@redhat.com Sean Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: