Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62217

stop retry if image analysis failed due to anchor internal error

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

       

      Current, retry mechanism keep going even there's an interanl anchor error, for example, following shows image analysis_failed. It meaningless to continue retries.

      Suggest, do retry based on analysis_status if 404 retruned. Currently, for sunny cases, we'll have following status: not_analyzed -> analyzing.

      2020-05-08T03:02:05.136 DEBUG  AnchoreWorker   Snoozing before retrying anchore-engine get policy evaluation
      2020-05-08T03:02:06.137 DEBUG  AnchoreWorker   Attempting anchore-engine get policy evaluation (361/400)
      2020-05-08T03:02:06.916 DEBUG  AnchoreWorker   anchore-engine get policy evaluation failed. URL: https://anchore.xxx.com/v1/images/sha256:24d24a87365c6e368c82ee02cd1ffa119fd265f63a9e9385af146c7556553ff8/check?tag=xxx/cctf/cctf-tools:latest&detail=true, status: HTTP/1.1 404 NOT FOUND, error: {
        "detail": {
          "error_codes": []
        },
        "httpcode": 404,
        "message": "image is not analyzed - analysis_status: analysis_failed"
      }
      

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            walthhy Tony Wen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: