Bug 1341207 - Unable to view compliance history of a container image.
Summary: Unable to view compliance history of a container image.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Control
Version: 5.6.0
Hardware: All
OS: All
high
high
Target Milestone: GA
: 5.6.0
Assignee: Mooli Tayer
QA Contact: Dmitry Misharov
URL:
Whiteboard: control:container
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-31 13:11 UTC by Dmitry Misharov
Modified: 2016-06-29 16:07 UTC (History)
7 users (show)

Fixed In Version: 5.6.0.11
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 16:07:00 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot of the bug (64.84 KB, image/png)
2016-05-31 13:11 UTC, Dmitry Misharov
no flags Details
Screenshot of the bug on 5.6.0.9-rc2.20160531154046_b4e2f6d (63.77 KB, image/png)
2016-06-02 07:58 UTC, Dmitry Misharov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Dmitry Misharov 2016-05-31 13:11:21 UTC
Created attachment 1163228 [details]
Screenshot of the bug

Description of problem:
When you try to view compliance history of a container image an error is occurred.

Version-Release number of selected component (if applicable):
5.6.0.8-rc1.20160524155303_f2a5a50 

How reproducible:
Always

Steps to Reproduce:
1. Add a container provider.
2. Navigate to Compute->Containers->Container Images.
3. Open any Container Image.
4. Execute "Check Compliance of Last Known Configuration".
5. Click on History row in Compliance table.

Actual results:
Got error "undefined local variable or method `count' for #<ContainerImageController:0x0000000223d438> [container_image/show] "

Expected results:
Compliance History must be shown.

Comment 2 Federico Simoncelli 2016-06-01 07:59:07 UTC
Mooli, I am assigning this to you, but feel free to pass this to Erez if you're busy on other bugs.

Comment 3 Mooli Tayer 2016-06-01 10:46:44 UTC
Thanks for reporting.

Fixed in https://github.com/ManageIQ/manageiq/pull/8924

Posting as it was already merged and backported

Comment 4 Federico Simoncelli 2016-06-01 10:59:27 UTC
Mooli if we already had a bug on this in the past you can close it as a duplicate.

Comment 5 Mooli Tayer 2016-06-01 11:04:08 UTC
There is no previous bug.

Comment 6 Dmitry Misharov 2016-06-02 07:57:40 UTC
Tested on 5.6.0.9-rc2.20160531154046_b4e2f6d. Got error: "uninitialized constant ContainersCommonMixin::TreeBuilderComplianceHistory [container_image/show]"

Comment 7 Dmitry Misharov 2016-06-02 07:58:38 UTC
Created attachment 1163941 [details]
Screenshot of the bug on 5.6.0.9-rc2.20160531154046_b4e2f6d

Comment 8 Mooli Tayer 2016-06-08 22:49:50 UTC
Submitted a fix for Darga only[1]
The bug was introduced here[1] and fixed here[2]

[1] https://github.com/ManageIQ/manageiq/commit/6a80d907b5cacab26639ec75c1437f26782a8060

[2] https://github.com/ManageIQ/manageiq/commit/32d05dbe090e5f5a0920f21641d78842de719fb7

Comment 9 Mooli Tayer 2016-06-08 22:59:51 UTC
(In reply to Mooli Tayer from comment #8)
> Submitted a fix for Darga only[1]
> The bug was introduced here[1] and fixed here[2]
> 
> [1]
> https://github.com/ManageIQ/manageiq/commit/
> 6a80d907b5cacab26639ec75c1437f26782a8060
> 
> [2]
> https://github.com/ManageIQ/manageiq/commit/
> 32d05dbe090e5f5a0920f21641d78842de719fb7

Sent by mistake..
introduced in: https://github.com/ManageIQ/manageiq/commit/6a80d907b5cacab26639ec75c1437f26782a8060

Suggested Fix for Darga: https://github.com/ManageIQ/manageiq/pull/9152
Fix for master(merged): https://github.com/ManageIQ/manageiq/commit/32d05dbe090e5f5a0920f21641d78842de719fb7

Comment 10 Oleg Barenboim 2016-06-09 20:20:33 UTC
https://github.com/ManageIQ/manageiq/pull/9152 merged!

Comment 11 Dmitry Misharov 2016-06-16 09:35:39 UTC
Tested on 5.6.0.11-rc2.2.20160614152915_f315c68. History can be opened now, but pressing "Expand All" button cause an error. This bug is verified and new one has been opened https://bugzilla.redhat.com/show_bug.cgi?id=1347194.

Comment 13 errata-xmlrpc 2016-06-29 16:07:00 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/RHBA-2016:1348


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