Bug 1497216 - spacecmd softwarechannel_setsyncschedule does not allow setting options
Summary: spacecmd softwarechannel_setsyncschedule does not allow setting options
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.7
Hardware: All
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space28
TreeView+ depends on / blocked
 
Reported: 2017-09-29 13:59 UTC by Ben Roberts
Modified: 2018-04-20 12:31 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-20 12:31:44 UTC
Embargoed:


Attachments (Terms of Use)

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


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