[JIRA] (JENKINS-62217) stop retry if image analysis failed due to anchor internal error

3 views
Skip to first unread message

walthhy@163.com (JIRA)

unread,
May 7, 2020, 11:12:14 PM5/7/20
to jenkinsc...@googlegroups.com
Tony Wen created an issue
 
Jenkins / Improvement JENKINS-62217
stop retry if image analysis failed due to anchor internal error
Issue Type: Improvement Improvement
Assignee: Marky Jackson
Components: anchore-container-scanner-plugin
Created: 2020-05-08 03:11
Priority: Minor Minor
Reporter: Tony Wen

 

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"
}

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages