Bug 1486362
Summary: | [RFE] Add API call for container scanning via SmartState | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Robb Manes <rmanes> | |
Component: | API | Assignee: | Gregg Tanzillo <gtanzill> | |
Status: | CLOSED ERRATA | QA Contact: | juwatts | |
Severity: | low | Docs Contact: | ||
Priority: | medium | |||
Version: | 5.8.0 | CC: | bpritche, dmcmille, epacific, fsimonce, jhardy, lavenel, obarenbo, oourfali, simaishi, smallamp | |
Target Milestone: | MVP | Keywords: | FutureFeature | |
Target Release: | 5.10.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | container | |||
Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1552279 (view as bug list) | Environment: | ||
Last Closed: | 2019-02-07 23:02:39 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: | 1511957, 1552279, 1555371, 1597407 |
Description
Robb Manes
2017-08-29 14:57:07 UTC
CFME Version: 5.10.0.16.20180919151347_a0c9e02 Verification steps using miq-rest-api-client-python: #get the provider crud object ocp = providers.get_crud('ocp-39-hawk') # Get the REST Entity image = ocp.appliance.rest_api.collections.container_images.get(name='dotnet/dotnet-20-runtime-rhel7') image Out[16]: <Entity u'https://10.8.197.248/api/container_images/150'> #verified the entity has the scan action: image.action.all Out[5]: [u'scan'] #Initiated the SmartState Analysis Scan image.action.scan() Out[4]: <Entity u'https://10.8.197.248/api/container_images/150' #Verified the scan was successfull ocp.appliance.rest_api.collections.tasks.all [<Entity u'https://10.8.197.248/api/tasks/27'>] task = ocp.appliance.rest_api.collections.tasks.get(id='27') task <Entity u'https://10.8.197.248/api/tasks/27'> task.name u"Container Image Analysis: 'dotnet/dotnet-20-runtime-rhel7'" task.state u'Finished' task.status u'Ok' #Verified the 'last scan attempt on' image.last_scan_attempt_on datetime.datetime(2018, 9, 24, 17, 31, 4, tzinfo=<iso8601.Utc>) 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/RHSA-2019:0212 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |