Bug 1481230

Summary: Image SSA - image-inspector unable to pull image - pod_wait is not permitted at state finished
Product: Red Hat CloudForms Management Engine Reporter: Gellert Kis <gekis>
Component: SmartState AnalysisAssignee: Erez Freiberger <efreiber>
Status: CLOSED CURRENTRELEASE QA Contact: brahmani
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: efreiber, fsimonce, gekis, jhardy, mtayer, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: container:smartstate
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1496949 (view as bug list) Environment:
Last Closed: 2018-03-06 15:52:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Container Management Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1496949    
Attachments:
Description Flags
evm.log none

Comment 4 Erez Freiberger 2017-08-22 14:45:45 UTC
This is happening after the scanning job was aborted most commonly due to timeout. It is not effecting the result but this error should be avoided. I will create a PR to clean the dangling queue messages like we are doing when a scanning job is being canceled by the user.

Comment 5 Erez Freiberger 2017-08-23 06:55:31 UTC
How to reproduce:

1. Change the timeout settings for container scanning jobs to "1.second" in the config/settings.yml file under "container_scanning.scanning_job_timeout"
2. Run SSA on a  container image. it will fail due to timeout
3. In the log search for the string "pod_wait is not permitted at state finished" from the last scan. It will be followed by a stacktrace.


Fixing PR: https://github.com/ManageIQ/manageiq-providers-kubernetes/pull/99

Comment 6 Mooli Tayer 2017-09-27 12:30:50 UTC
:+1: https://bugzilla.redhat.com/show_bug.cgi?id=1481230#c5

Comment 10 brahmani 2017-11-13 13:49:41 UTC
Created attachment 1351576 [details]
evm.log

Comment 11 brahmani 2017-11-13 14:04:19 UTC
Hi Erez 
Following your instructions after getting timeout error , i didn't find string "pod_wait is not permitted at state finished" on attach evm.log!
On which log file should i search for the above error?

Comment 12 brahmani 2017-11-14 10:40:03 UTC
Verified on 5.8.2.3.20171016155816_aaec796
get tasks error message on timeout.
also get on  evm.log "pod_wait is not permitted at state finished" 

also verified on 5.9.0.8 --> also get tasks error message on timeout as expected on this version.