Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 892933

Summary: rhn-clone-errata exceptions when updating issue_date and update_date for errata
Product: [Community] Spacewalk Reporter: Peter Struhar <peter.struhar>
Component: APIAssignee: Tomas Lestach <tlestach>
Status: CLOSED NOTABUG QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.7   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-10 11:45:05 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: 1484117    

Description Peter Struhar 2013-01-08 09:54:59 UTC
Description of problem:
When running script rhn-clone-errata.py 0.9.2, script tries to update ErrataDetails issue_date and update_date, cloned from rhn, but it throws exceptions -
Can't Update Errata Details!
failed to set issue_date: <Fault 2801: 'redstone.xmlrpc.XmlRpcFault: Invalid argument(s): issue_date'>
Can't Update Errata Details!
failed to set update_date: <Fault 2801: 'redstone.xmlrpc.XmlRpcFault: Invalid argument(s): update_date'>

When checked api (1.7 and 1.8 both) specification for setDetails method on http://spacewalk.redhat.com/documentation/api/1.8/handlers/ErrataHandler.html#setDetails, I havent found any issue_date nor update_date arguments, which might be some sort of inconsistency to original rhn satelite errata structure.

Version-Release number of selected component (if applicable):
Spacewalk 1.7
Spacewalk 1.8 (most probably - when i compare the api link specification it looks same)
rhn-clone-errata.py 0.9.2
RHEL 5.8

How reproducible:
/usr/local/bin/rhn-clone-errata.py -f "/etc/spacewalk-errata-clone" --proxy="138.35.24.153:8088" --no-spw-proxy --ignore-missing-packages --src-channel=rhel-i386-server-5 --begin-date=20120301

Steps to Reproduce:
1. it happens for all new erratas, most probably introduced in 0.9.2
https://fedorahosted.org/spacewalk/changeset/b0524cc7fa1de90398e8b7d3762555324dd5c4f5/scripts/clone-errata/rhn-clone-errata.py

  
Actual results:


Expected results:
From the API specification it looks like the API doesnt have the arguments (issue_date + update_date) defined for calling the method. For example when I compare it to getDetails, it has such attributes defined in errata structure returned by API.

Additional info:

Comment 1 Tomas Lestach 2013-05-10 11:45:05 UTC
Please, check Spacewalk 1.9 API documentation:

http://spacewalk.redhat.com/documentation/api/1.9/handlers/ErrataHandler.html#setDetails

* dateTime.iso8601 "issue_date"
* dateTime.iso8601 "update_date"
are supported

We do not maintain scripts directory for all released Spacewalk versions. In case the scripts do not work with latest released Spacewalk version, please, open a BZ.

I'm closing this one as NOTABUG.

Comment 2 Eric Herget 2017-09-28 17:57:08 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.