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

The 'build successfully completed' does not send out notification by email, slack and UI notification

    XMLWordPrintable

Details

    • 0

    Description

      Description of problem:

      Add some `Notifications` in repository which build image from Dockerfile ,  such as slack,  email and UI notification, when the build finished successfully,  the slack, email and UI Notification won't get the build completed message.

       

      Version-Release number of selected component (if applicable):

       

      Quay 3.7.0
      quay-operator-bundle-container-v3.7.0-80
      Index image v4.10: registry-proxy.engineering.redhat.com/rh-osbs/iib:216841
      quay-operator-rhel8@sha256:565031bebd0e26357c858f888197ff7f28f9f602c33392c493f2537bc708c157
      

       

       

      How reproducible:

      always

      Steps to Reproduce:
      1.  set up a repository which is configured to build image from dockerfile
      2.  Create some notifications, use email, slack, UI notification as recipient

      p1

      3. trigger the build and wait it completed successfully.

      The successful build

      4 , check the email, slack, and UI Notification to see if they get the build notification

      Actual results:

      Do not get the build  completed notification in email, slack and UI Notification

      Expected results:

      Email, slack and UI  Notification can get build completed message

      Additional info:

      Use `Test Notification` option in every kinds of notification setting, can get test message in email, slack and UI notification very soon.

      use `Test Notification` option

      The `Test Notification` get by UI

      The `Test Notification` get by slack

      The `Test Notification` get by email

       

      Tried below kinds of configuration in other repository, only get the `build cancel` message in UI notification

      three build events notification

       

      the cancel message got by UI Notification

       

      repositorynotification table

      quayregistry-quay-database=# select * from repositorynotification;
       id |                 uuid                 | repository_id | event_id | method_id |                title                |      
                                                                                                              config_json            
                                                                                                         | event_config_json | number
      _of_failures 
      ----+--------------------------------------+---------------+----------+-----------+-------------------------------------+------
      -------------------------------------------------------------------------------------------------------------------------------
      ---------------------------------------------------------------------------------------------------+-------------------+-------
      -------------
        3 | cbf01ee2-37e0-48b5-9773-74d790b3a586 |             1 |        7 |         4 | [whu410az13 notif]                  | {"tar
      get": {"name": "owners", "kind": "team", "is_robot": false, "avatar": {"name": "owners", "hash": "6f0e3a8c0eb46e8834b43b03374ec
      e43a030621d92a7437beb48f871e90f8d90", "color": "#c7c7c7", "kind": "team"}, "is_org_member": true}} | {}                |       
                 0
        2 | a0d921d3-a1b4-4bae-a0de-a02358aaeb51 |             1 |        4 |         5 | [whu410az13 slack notification]     | {"url
      ": "https://hooks.slack.com/services/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"}                                        
                                                                                                         | {}                |       
                 0
        1 | a6ec6863-2e72-4fcd-b2b1-145c37951dc2 |             1 |        3 |         1 | [whu410az13 builder]                | {"ema
      il": "whu@redhat.com"}                                                                                                         
                                                                                                         | {}                |       
                 0
       11 | 3aca21b8-4b7f-4085-9689-a931f86de66f |             3 |        4 |         1 | [email]                             | {"ema
      il": "hu_weihua@163.com"}                                                                                                      
                                                                                                         | {}                |       
                 0
       10 | b87735e5-6b76-4af4-a3a6-b5d0610c6569 |             3 |        4 |         5 | [slack]                             | {"url
      ": "https://hooks.slack.com/services/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"}                                        
                                                                                                         | {}                |       
                 0
        9 | 59e7f10b-c8c8-4ead-b827-4312897ef780 |             3 |        4 |         4 | notification                        | {"tar
      get": {"name": "owners", "kind": "team", "is_robot": false, "avatar": {"name": "owners", "hash": "6f0e3a8c0eb46e8834b43b03374ec
      e43a030621d92a7437beb48f871e90f8d90", "color": "#c7c7c7", "kind": "team"}, "is_org_member": true}} | {}                |       
                 0
        8 | b1bea599-f6a0-49a6-aea6-21b87371808b |             4 |        5 |         5 | [whu410az13 pull_push slack]        | {"url
      ": "https://hooks.slack.com/services/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"}                                        
                                                                                                         | {}                |       
                 0
        6 | f70bb6a8-d1e8-4349-aa95-8c0effaee694 |             4 |        5 |         4 | [whu410az13 pull_push notification] | {"tar
      get": {"name": "owners", "kind": "team", "is_robot": false, "avatar": {"name": "owners", "hash": "6f0e3a8c0eb46e8834b43b03374ec
      e43a030621d92a7437beb48f871e90f8d90", "color": "#c7c7c7", "kind": "team"}, "is_org_member": true}} | {}                |       
                 0
        5 | 8698f562-cf06-4d61-80df-4c966e53a0e1 |             4 |        5 |         1 | [whu410az13 pull_push email]        | {"ema
      il": "whu@redhat.com"}                                                                                                         
                                                                                                         | {}                |       
                 0

       

      Configure the similar notification settings against `Push to Repository` event, can get push message in email, slack and UI notification very soon.

      Can get below logs for `Push to Repository` event

      notificationworker stdout | 2022-04-19 12:26:55,265 [75] [DEBUG] [workers.queueworker] Queue gave us some work: {"notifica     tion_uuid": "8698f562-cf06-4d61-80df-4c966e53a0e1", "event_data": {"repository": "pull_push/notification", "namespace": "p     ull_push", "name": "notification", "docker_url": "quayregistry-quay-quay-enterprise.apps.whu410az13.qe.azure.devcluster.op     enshift.com/pull_push/notification", "homepage": "https://quayregistry-quay-quay-enterprise.apps.whu410az13.qe.azure.devcl     uster.openshift.com/repository/pull_push/notification", "updated_tags": ["ppc64le"]}, "performer_data": {"entity_id": 1, "     entity_name": "whuquay"}}

      But for "Build Successfully Completed" event , there is no similar notificationworker logs

       

      The attachment includes the logs of quay pods.

      $ oc get pod
      NAME                                               READY   STATUS      RESTARTS        AGE
      ......
      quayregistry-quay-app-56c94f4bdb-jq9tx             1/1     Running     1 (49m ago)     49m
      quayregistry-quay-app-56c94f4bdb-m6hl4             1/1     Running     0               48m
       
      

       

      Attachments

        Activity

          People

            bcaton@redhat.com Brandon Caton
            rhwhu Weihua Hu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: