Bug 1377192

Summary: Can't create rule-engine rule by xmlrpc
Product: [Community] Bugzilla Reporter: Rony Gong 🔥 <qgong>
Component: WebServiceAssignee: PnT DevOps Devs <hss-ied-bugs>
Status: CLOSED NOTABUG QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4CC: huiwang, mtahir, mtyson, qgong
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: 2016-09-21 23:19:16 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:

Description Rony Gong 🔥 2016-09-19 07:08:06 UTC
Description of problem:
Can't create rule-engine rule by xmlrpc

Version-Release number of selected component (if applicable):
4.4.12059-1

How reproducible:
100%

Steps to Reproduce:
1.Try to create a rule by:
context = ssl._create_unverified_context()
proxy = xmlrpclib.ServerProxy('https://bzweb.host.qe.eng.pek2.redhat.com/xmlrpc.cgi',  context=context, verbose=False)

result = proxy.RuleEngine.create({'login':'qgong', 'password': '****', 'definition': '{"match_json":{"keywords":{"word":"is any of","values":["CommonBugs"]},"component":{"word":"is any of","values":["component1"]},"product":{"values":["Auto Test"]},"classification":{"values":["Red Hat"]}},"action_json":{"keywords":{"action":"remove","values":["CommonBugs"]},"comment":{"text":"this comment is added by rule engine","private":0}}}', 'owners': [], 'description': 'The Description of Auto Test', 'rule_group_id': 4, 'is_active': False, 'is_periodic': False, 'name': 'gqEydUYvpX'})
2.
3.

Actual results:
xmlrpclib.Fault: <Fault 50: 'The function requires a rules argument, and that argument was not set.'>

Expected results:


Additional info:

Comment 1 Matt Tyson 🤬 2016-09-21 23:19:16 UTC
This is not a new bug. Use bug 1365495 for this.