Bug 892933 - rhn-clone-errata exceptions when updating issue_date and update_date for errata
Summary: rhn-clone-errata exceptions when updating issue_date and update_date for errata
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Spacewalk
Classification: Community
Component: API
Version: 1.7
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space27
TreeView+ depends on / blocked
 
Reported: 2013-01-08 09:54 UTC by Peter Struhar
Modified: 2017-09-28 17:57 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-10 11:45:05 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.