Bug 1192198

Summary: Queuing Schedule from Containing Folder gives error
Product: Red Hat CloudForms Management Engine Reporter: Josh Carter <jocarter>
Component: UI - OPSAssignee: Aparna Karve <akarve>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.3.0CC: jhardy, mfeifer, nachandr, obarenbo, ssainkar, xlecauch
Target Milestone: GA   
Target Release: 5.4.0   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.4.0.0.11 Doc Type: Bug Fix
Doc Text:
Under Cloud Intelligence -> Reports in the Schedules Accordion, selecting the check box next to a schedule and executing the "Queue up selected Schedules to run now" resulted in an error that the "Schedule no longer exists". This was due to the code was not checking for correct functioning of checked schedules. With this release, code was changed to check for correct functioning of checked schedules. This has fixed the issue and there is no longer an error.
Story Points: ---
Clone Of:
: 1196919 (view as bug list) Environment:
Last Closed: 2015-06-16 12:50:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1196919    

Description Josh Carter 2015-02-12 20:36:53 UTC
Description of problem:

Under Cloud Intelligence -> Reports in the Schedules Accordion, selecting the check box next to a schedule and executing the "Queue up selected Schedules to run now" gives an error that the "Schedule no longer exists". 

Clicking on the schedule first and choosing "Queue up selected Schedules to run now" from there works fine.

Version-Release number of selected component (if applicable): 5.3.2.6.20150108100920_387a856 


How reproducible: very


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:


[----] E, [2015-02-12T20:33:35.709213 #15958:752038] ERROR -- : MIQ(report_controller-x_button): Schedule no longer exists
[----] I, [2015-02-12T20:33:35.711344 #15958:752038]  INFO -- : MIQ(Schedule.queue_scheduled_work) Queueing start of schedule id: [23000000000010] [test] [MiqReport] [run_report]
[----] I, [2015-02-12T20:33:35.742213 #15958:752038]  INFO -- : MIQ(MiqQueue.put)        Message id: [23000001214172],  id: [], Zone: [default], Role: [], Server: [], Ident: [generic], Target id: [], Instance id: [23000000000010], Task id: [], Command: [MiqSchedule.invoke_actions], Timeout: [1200], Priority: [100], State: [ready], Deliver On: [], Data: [], Args: ["action_run_report", 1423773215]
[----] I, [2015-02-12T20:33:35.742350 #15958:752038]  INFO -- : MIQ(Schedule.queue_scheduled_work) Queueing start of schedule id: [23000000000010] [test] [MiqReport] [run_report]...complete
[----] I, [2015-02-12T20:33:35.745727 #15958:752038]  INFO -- : <AuditSuccess> MIQ(Schedules.block in miq_report_schedule_run_now) userid: [admin] - Schedule [test] queued to run from the UI by user Administrator

Comment 2 CFME Bot 2015-02-25 20:56:30 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/98cbcbd2ac704a7cb5a0c04a5b1e89b910d8041d

commit 98cbcbd2ac704a7cb5a0c04a5b1e89b910d8041d
Author:     Aparna Karve <akarve>
AuthorDate: Mon Feb 23 14:38:37 2015 -0800
Commit:     Aparna Karve <akarve>
CommitDate: Mon Feb 23 14:38:37 2015 -0800

    Added the params[:id] check for correct functioning of checked schedules
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1192198

 vmdb/app/controllers/report_controller/schedules.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 3 Nandini Chandra 2015-03-10 17:49:26 UTC
Tested master.20150310123122_595ec9e,although the schedule is now run successfully,the error message "Schedule no longer exists" is still displayed.

Comment 5 Nandini Chandra 2015-03-17 18:05:27 UTC
Verified in 5.4.0.0.11

Comment 6 Nandini Chandra 2015-03-17 20:15:49 UTC
Marked this as verified by mistake.

Moving the BZ to ON_DEV as per comment 3.

Comment 7 Nandini Chandra 2015-04-17 17:16:02 UTC
Retested 5.4.0.0.19.20150410165622_ad23806 and the message "Schedule no longer exists" is no longer seen.

Comment 9 errata-xmlrpc 2015-06-16 12:50:37 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://rhn.redhat.com/errata/RHBA-2015-1100.html