Bug 1008666 - API call system.scheduleSyncPackagesWithSystem seems to be broken.
API call system.scheduleSyncPackagesWithSystem seems to be broken.
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Tomas Lestach
Red Hat Satellite QA List
Depends On:
Blocks: sat560-triage
  Show dependency treegraph
Reported: 2013-09-16 15:41 EDT by Dimitar Yordanov
Modified: 2013-09-17 08:41 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-09-17 08:41:46 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dimitar Yordanov 2013-09-16 15:41:57 EDT
Description of problem:
API call system.scheduleSyncPackagesWithSystem seems to be broken.

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

How reproducible:

Steps to Reproduce:
1.Let's have systems S with system id Sid and system T with system id Tid.
2. System S has installed package microcode_ctl:
{'installtime': <DateTime '20130912T16:54:19' at 2ad0830>, 'epoch': '1', 'version': '1.17', 'release': '15.el6_4', 'arch': 'AMD64', 'id': 257, 'name': 'microcode_ctl'}

System T does not have the package "microcode_ctl" installed.


Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1578, in __request
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1473, in parse_response
    return u.close()
  File "/usr/lib64/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1213: 'redstone.xmlrpc.XmlRpcFault: No packages to sync'>

Actual results:
No action  is scheduled.

Expected results:
Package install action is scheduled.

Additional info:
Comment 1 Tomas Lestach 2013-09-17 05:42:33 EDT
I followed the reproducer and the missing package (zsh in my case) was correctly scheduled to be installed.

Among the Pending Events I see:
Summary:	Package Synchronization scheduled by admin
Details:	This action will be executed after 09/17/13 1:58:19 PM AFT.

Btw. What is the reason for specifying the last checkin time as the schedule date?

Would you, please, enhance the reproducer?

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