Bug 1486658

Summary: Default Container Image Rate can be deleted
Product: Red Hat CloudForms Management Engine Reporter: Yadnyawalk Tale <ytale>
Component: UI - OPSAssignee: Hilda Stastna <hstastna>
Status: CLOSED ERRATA QA Contact: Yadnyawalk Tale <ytale>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: hkataria, hstastna, jhardy, mpovolny, obarenbo, simaishi, smallamp, tpapaioa
Target Milestone: GAFlags: ytale: automate_bug-
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:chargeback:flash_msg
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1552260 1568084 (view as bug list) Environment:
Last Closed: 2019-02-07 23:02:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1552260, 1568084    
Attachments:
Description Flags
fixed_5.10.0.17.png none

Comment 1 Tasos Papaioannou 2017-12-05 20:47:48 UTC
Some further details:

1.) If I highlight Default Container Image Rate in the accordion menu, then:

Configuration > Edit this Chargeback Rate is enabled, but Configuration > Remove from the VMDB is disabled.

2.) If I highlight Compute in the accordion menu, then check the box next to Default Container Image Rate:

Configuration > Edit the selected Chargeback Rate is enabled, and so is Configuration > Remove selected Chargeback Rates from the VMDB.

Comment 2 Hilda Stastna 2018-01-10 13:29:05 UTC
fixing https://github.com/ManageIQ/manageiq-ui-classic/pull/3215

Comment 3 Hilda Stastna 2018-01-10 17:22:41 UTC
The bug is completely fixed only with the PR above together with https://github.com/ManageIQ/manageiq/pull/16792

Comment 4 CFME Bot 2018-02-09 16:23:41 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/8b05f8b3be8502bea770220abe0a22f097c7c956

commit 8b05f8b3be8502bea770220abe0a22f097c7c956
Author:     Hilda Stastna <hstastna>
AuthorDate: Wed Jan 10 13:57:25 2018 +0100
Commit:     Hilda Stastna <hstastna>
CommitDate: Tue Jan 30 16:40:35 2018 +0100

    Fix deletion of Default Container Image Rate
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1486658
    
    Fix deletion of Default Container Image Rate in Cloud Intel -> Chargeback
    -> Rates so that the Rate can't be deleted and error message is displayed.

 app/controllers/chargeback_controller.rb | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

Comment 7 Yadnyawalk Tale 2018-10-03 16:12:57 UTC
Created attachment 1490176 [details]
fixed_5.10.0.17.png

Fixed! Default Container Image Rate can not be deleted now.
Verified on: 5.10.0.17.20180927011235_1b5cf54

Comment 8 errata-xmlrpc 2019-02-07 23:02:39 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