Bug 1497216

Summary: spacecmd softwarechannel_setsyncschedule does not allow setting options
Product: [Community] Spacewalk Reporter: Ben Roberts <ben.roberts>
Component: ServerAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.7   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-20 12:31:44 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: 1564160    

Description Ben Roberts 2017-09-29 13:59:56 UTC
Description of problem:
It's possible to set a channel sync latest packages only via the webui, but not through the command-line. I see there is an XMLRPC endpoint for channel.software.syncRepo which accepts a parameter map (which may include {"latest":true}, but currently spacecmd doesn't accept a "--latest" parameter or call the parameter-enabled endpoint so all sync schedules set via commandline are for the full content.

Version-Release number of selected component (if applicable):
Using 2.7, but code is the same through to master

Actual results:
Repo sync tasko jobs always download full repository content when scheduled via cli.

Expected results:
Option to specify "--latest" should be available via cli.

Additional info:
I'll see if I can put together a PR for this, just raising this ticket for the record and to link the github branch against.

Comment 1 Ben Roberts 2017-10-02 09:25:49 UTC
PR: https://github.com/spacewalkproject/spacewalk/pull/580

Comment 2 Tomáš Kašpárek 2017-10-06 09:00:27 UTC
spacewalk.git(master): b50baf18e6a3180b201dee2e8a4907ba960ac6a5

Comment 3 Tomáš Kašpárek 2017-10-06 09:38:09 UTC
extended original scope to include allow setting all options:
spacewalk.git(master): c4e5afa27238659d49cb6a2df2338a1ffa0cc396

Comment 4 Tomáš Kašpárek 2017-10-09 07:16:37 UTC
pylint fixes in spacewalk.git(master): 9efb14e2069a44428e730c3f27b0edf95f484abd

Comment 5 Jiří Dostál 2018-03-26 12:16:41 UTC
Moving ON_QA

Comment 6 Jiří Dostál 2018-04-20 12:31:44 UTC
Spacewalk 2.8 has been released.
https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes28