Bug 1418737

Summary: there should be way how to cancel system pending event
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: WebUIAssignee: Grant Gainey <ggainey>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 580CC: jhutar, ogajduse, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-03 09:10:55 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:

Description Jan Hutař 2017-02-02 15:24:21 UTC
Description of problem:
There should be way how to cancel system pending event as when you for some reason get to the state when some of the events were not marked as finished, there is no way how to cancel the event so other events might continue.


Version-Release number of selected component (if applicable):
Satellite: Satellite-5.8-RHEL-6-20170118.0-Satellite-x86_64
Client:
rhn-check-1.0.0.1-38.el6.noarch
rhn-client-tools-1.0.0.1-38.el6.noarch
rhnlib-2.5.22-15.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
rhn-setup-1.0.0.1-38.el6.noarch
yum-rhn-plugin-0.9.1-60.el6.noarch


How reproducible:
always


Steps to Reproduce:
1. Try to remove or cancel system event which is in "Picked Up" state


Actual results:
There is no way how to do that.


Expected results:
Maybe some button like "ignore this" or "cancel" something? Probably with a warning that this does not cancel the event on the client as is meant just to make system even queue functional again.

Comment 1 Tomas Lestach 2017-02-03 07:49:09 UTC
What about schedule.failSystemAction? (Bug 1384093 )

Comment 2 Jan Hutař 2017-02-03 08:44:47 UTC
You are right this works:

# python
Python 2.6.6 (r266:84292, May 22 2015, 08:34:51) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-15)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xmlrpclib
>>> server = xmlrpclib.Server('http://satellite.example.com/rpc/api')
>>> key = server.auth.login('admin','password')
>>> server.schedule.failSystemAction(key, 1000010111, 652)
1

Could we keep this open for webUI change then?