-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
Jenkins ver. 2.125
Anchore plugin v1.0.17
Anchore engine
anchore-cli --u admin --p foobar --url http://xxx/ system status
Service policy_engine (anchore_core_service, http://anchore-engine-anchore-engine:8087): down (orphaned)
Service apiext (anchore_core_service, http://anchore-engine-anchore-engine:8228): down (orphaned)
Service simplequeue (anchore_core_service, http://anchore-engine-anchore-engine:8083): down (orphaned)
Service catalog (anchore_core_service, http://anchore-engine-anchore-engine:8082): down (orphaned)
Service analyzer (6b3d5638-291c-4bd3-be15-1a606e9929fc, N/A): down (orphaned)
Service analyzer (d5170d07-2e57-4125-8ea2-a90aaf2952b7, N/A): down (orphaned)
Service analyzer (99f92515-3ca7-478c-a345-33debdf8d9db, N/A): down (orphaned)
Service kubernetes_webhook (anchore_core_service, http://anchore-engine-anchore-engine:8338): down (orphaned)
Service analyzer (anchore-engine-anchore-engine-worker-849459c746-b4lt2, http://10.16.10.26:8084): up
Service analyzer (anchore-engine-anchore-engine-worker-849459c746-wzb5w, http://10.16.115.20:8084): up
Service simplequeue (anchore-engine-anchore-engine-core-58cbb84477-6llxh, http://anchore-engine-anchore-engine:8083): up
Service kubernetes_webhook (anchore-engine-anchore-engine-core-58cbb84477-6llxh, http://anchore-engine-anchore-engine:8338): up
Service catalog (anchore-engine-anchore-engine-core-58cbb84477-6llxh, http://anchore-engine-anchore-engine:8082): up
Service apiext (anchore-engine-anchore-engine-core-58cbb84477-6llxh, http://anchore-engine-anchore-engine:8228): up
Service policy_engine (anchore-engine-anchore-engine-core-58cbb84477-6llxh, http://anchore-engine-anchore-engine:8087): up
Engine DB Version: 0.0.7
Engine Code Version: 0.2.3
Jenkins ver. 2.125 Anchore plugin v1.0.17 Anchore engine anchore-cli --u admin --p foobar --url http://xxx/ system status Service policy_engine (anchore_core_service, http://anchore-engine-anchore-engine:8087): down (orphaned) Service apiext (anchore_core_service, http://anchore-engine-anchore-engine:8228): down (orphaned) Service simplequeue (anchore_core_service, http://anchore-engine-anchore-engine:8083): down (orphaned) Service catalog (anchore_core_service, http://anchore-engine-anchore-engine:8082): down (orphaned) Service analyzer (6b3d5638-291c-4bd3-be15-1a606e9929fc, N/A): down (orphaned) Service analyzer (d5170d07-2e57-4125-8ea2-a90aaf2952b7, N/A): down (orphaned) Service analyzer (99f92515-3ca7-478c-a345-33debdf8d9db, N/A): down (orphaned) Service kubernetes_webhook (anchore_core_service, http://anchore-engine-anchore-engine:8338): down (orphaned) Service analyzer (anchore-engine-anchore-engine-worker-849459c746-b4lt2, http://10.16.10.26:8084): up Service analyzer (anchore-engine-anchore-engine-worker-849459c746-wzb5w, http://10.16.115.20:8084): up Service simplequeue (anchore-engine-anchore-engine-core-58cbb84477-6llxh, http://anchore-engine-anchore-engine:8083): up Service kubernetes_webhook (anchore-engine-anchore-engine-core-58cbb84477-6llxh, http://anchore-engine-anchore-engine:8338): up Service catalog (anchore-engine-anchore-engine-core-58cbb84477-6llxh, http://anchore-engine-anchore-engine:8082): up Service apiext (anchore-engine-anchore-engine-core-58cbb84477-6llxh, http://anchore-engine-anchore-engine:8228): up Service policy_engine (anchore-engine-anchore-engine-core-58cbb84477-6llxh, http://anchore-engine-anchore-engine:8087): up Engine DB Version: 0.0.7 Engine Code Version: 0.2.3
I sometimes get the below error from the anchore plugin. The anchore server doesn't report any errors and says the image is analyzed.
{{15:13:42 2018-08-09T15:13:42.918 INFO AnchoreWorker Jenkins version: 2.125
15:13:42 2018-08-09T15:13:42.918 INFO AnchoreWorker Anchore Container Image Scanner Plugin version: 1.0.17
15:13:42 2018-08-09T15:13:42.918 INFO AnchoreWorker [global] debug: false
15:13:42 2018-08-09T15:13:42.918 INFO AnchoreWorker [global] enginemode: anchoreengine
15:13:42 2018-08-09T15:13:42.918 INFO AnchoreWorker [build] engineurl: http://anchore.platform.vivint.com/v1
15:13:42 2018-08-09T15:13:42.918 INFO AnchoreWorker [build] engineuser: admin
15:13:42 2018-08-09T15:13:42.918 INFO AnchoreWorker [build] enginepass: ****
15:13:42 2018-08-09T15:13:42.919 INFO AnchoreWorker [build] engineverify: false
15:13:42 2018-08-09T15:13:42.919 INFO AnchoreWorker [build] name: anchore_images
15:13:42 2018-08-09T15:13:42.919 INFO AnchoreWorker [build] engineRetries: 1000
15:13:42 2018-08-09T15:13:42.919 INFO AnchoreWorker [build] policyBundleId:
15:13:42 2018-08-09T15:13:42.919 INFO AnchoreWorker [build] bailOnFail: true
15:13:42 2018-08-09T15:13:42.919 INFO AnchoreWorker [build] bailOnPluginFail: true
15:13:42 2018-08-09T15:13:42.926 INFO AnchoreWorker Submitting tp-registry.vivint.com:5005/test/vivint-base-prod:2.feature-pl-6145-xconfig-65bd876 for analysis
15:13:43 2018-08-09T15:13:43.696 INFO AnchoreWorker Analysis request accepted, received image digest sha256:9a1ee582d150bbd9f1b0338e04f9f439e671d1c8fbe10039e2e2d7b35734a17b
15:13:43 2018-08-09T15:13:43.697 INFO AnchoreWorker Waiting for analysis of tp-registry.vivint.com:5005/test/vivint-base-prod:2.feature-pl-6145-xconfig-65bd876, polling status periodically
15:14:45 2018-08-09T15:14:45.465 ERROR AnchoreWorker Failed to execute anchore-engine policy evaluation due to an unexpected error
15:14:45 java.lang.InterruptedException: sleep interrupted
15:14:45 at java.lang.Thread.sleep(Native Method)
15:14:45 at com.anchore.jenkins.plugins.anchore.BuildWorker.runGatesEngine(BuildWorker.java:395)
15:14:45 at com.anchore.jenkins.plugins.anchore.BuildWorker.runGates(BuildWorker.java:343)
15:14:45 at com.anchore.jenkins.plugins.anchore.AnchoreBuilder.perform(AnchoreBuilder.java:338)
15:14:45 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
15:14:45 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
15:14:45 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)
15:14:45 at hudson.security.ACL.impersonate(ACL.java:290)
15:14:45 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)
15:14:45 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
15:14:45 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
15:14:45 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
15:14:45 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
15:14:45 at java.lang.Thread.run(Thread.java:745)
15:14:45 2018-08-09T15:14:45.465 ERROR AnchorePlugin Failing Anchore Container Image Scanner Plugin step due to errors in plugin execution
15:14:45 hudson.AbortException: Failed to execute anchore-engine policy evaluation due to an unexpected error. Please refer to above logs for more information
15:14:45 at com.anchore.jenkins.plugins.anchore.BuildWorker.runGatesEngine(BuildWorker.java:508)
15:14:45 at com.anchore.jenkins.plugins.anchore.BuildWorker.runGates(BuildWorker.java:343)
15:14:45 at com.anchore.jenkins.plugins.anchore.AnchoreBuilder.perform(AnchoreBuilder.java:338)
15:14:45 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
15:14:45 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
15:14:45 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)
15:14:45 at hudson.security.ACL.impersonate(ACL.java:290)
15:14:45 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)
15:14:45 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
15:14:45 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
15:14:45 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
15:14:45 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
15:14:45 at java.lang.Thread.run(Thread.java:745)
15:14:45 2018-08-09T15:14:45.467 INFO AnchorePlugin Completed Anchore Container Image Scanner step}}