Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1340902 - There is no limit on container images concurrent SSAs
There is no limit on container images concurrent SSAs
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: SmartState Analysis (Show other bugs)
5.6.0
Unspecified Unspecified
unspecified Severity unspecified
: GA
: 5.6.0
Assigned To: Mooli Tayer
Einat Pacifici
container
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-05-30 11:42 EDT by Mooli Tayer
Modified: 2018-04-17 04:02 EDT (History)
8 users (show)

See Also:
Fixed In Version: 5.6.0.9
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-06-29 12:06:52 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
epacific: automate_bug+


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 14:50:04 EDT

  None (edit)
Description Mooli Tayer 2016-05-30 11:42:52 EDT
Description of problem:
vm SSA implements several different load factors based on resource e.g concurrent_per_ems, concurrent_per_host

Container Image scanning currently does not have this behavior and when a user defines a scheduled provider scan all images, what ever their number might be, are scanned simultaneously.

A large number of images will potentially cause a load issue on both the containers provider and the ems

Version-Release number of selected component (if applicable):
darga-1-rc1.1

How reproducible:
100%

Steps to Reproduce:
1. Select all images in the UI => Perform Smart State Analysis
2. Go to task => all vm & container analysis tasks

Actual results:
All jobs are started at once

Expected results:
The user should be able to define a load_factor. No more then load_factor ssa per on provider should be allowed to run simultaneously.

Additional info:
Comment 2 Mooli Tayer 2016-05-30 14:20:21 EDT
Fix suggested upstream: https://github.com/ManageIQ/manageiq/pull/8760
Comment 3 Mooli Tayer 2016-05-31 11:38:54 EDT
To verify this change on qe, two things must be verified:

1. The new limit on parallel execution of container image scans works as expected. At most 3 scans run together (run all and check out "All vm and container analysis tasks"). The number can be changed in the configuration
through container_scanning -> concurrent_per_ems

2. The scanning and concurrency of vms was not effected.
Comment 4 Einat Pacifici 2016-06-07 07:58:29 EDT
Verified. 
Steps to verify: 
Modified configuration in: container_scanning -> concurrent_per_ems
 (default was =3, changed it to =2)

Added 4 new apps in Openshift (each app used a new image)
Viewed Settings --> Tasks. 

Two new images were scanned at any one time. 
Once scan was completed, two new images were scanned.
Comment 5 Mooli Tayer 2016-06-07 11:49:21 EDT
Hi Einat, did you test vm scanning concurrency as well?
(See my previous comment) that would probably reuire some help
Comment 7 errata-xmlrpc 2016-06-29 12:06:52 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348

Note You need to log in before you can comment on or make changes to this bug.