[Spacewalk-list] Spacewalk 2.8 spacecmd problems with softwarechannel_setsyncschedule

Larry Clegg lclegg at kyriba.com
Wed Apr 25 23:09:19 UTC 2018


Spacewalkers – anyone have any insight to this issue? It is really
negatively affecting my scripts.



Thanks !



*From:* Larry Clegg [mailto:lclegg at kyriba.com]
*Sent:* Tuesday, April 24, 2018 5:02 PM
*To:* 'spacewalk-list at redhat.com' <spacewalk-list at redhat.com>
*Subject:* Spacewalk 2.8 spacecmd problems with
softwarechannel_setsyncschedule



Greetings Spacewalkers,



I’m testing out SW 2.8 on Centos 6.9 fully patched.

I am having troubles setting a channel sync schedule via spacecmd.  This
works via the GUI but not from command line. It worked fine in SW 2.7.



Thanks for any suggestions:



spacecmd {SSM:0}> softwarechannel_setsyncschedule --help

softwarechannel_setsyncschedule:

Sets the repo sync schedule for a software channel



usage: softwarechannel_setsyncschedule <CHANNEL> <SCHEDULE>

Options:

    -e/--no-errata : Do not sync errata

    -f/--fail : Terminate upon any error

    -k/--sync-kickstart : Create kickstartable tree

    -l/--latest : Only download latest package versions when repo syncs



The schedule is specified in Quartz CronTrigger format without enclosing
quotes.

For example, to set a schedule of every day at 1am, <SCHEDULE> would be 0 0
1 * * ?

If <SCHEDULE> is left empty, it will be disabled.



spacecmd {SSM:0}> softwarechannel_setsyncschedule centos7-x86_64 0 0 23 1 *
?

ERROR: redstone.xmlrpc.XmlRpcFault: unhandled internal exception:
redstone.xmlrpc.XmlRpcFault:
com.redhat.rhn.taskomatic.InvalidParamException: Cron trigger: 0 0 23 1 .* ?



spacecmd {SSM:0}> softwarechannel_setsyncschedule centos7-x86_64 0 0 1 * * ?

ERROR: redstone.xmlrpc.XmlRpcFault: unhandled internal exception:
redstone.xmlrpc.XmlRpcFault:
com.redhat.rhn.taskomatic.InvalidParamException: Cron trigger: 0 0 1 .* .* ?

spacecmd {SSM:0}>



*Larry E. Clegg*

*Kyriba*

[Address] 9620 Towne Centre Drive | Suite 250 | San Diego, California |
92121
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20180425/90312600/attachment.htm>


More information about the Spacewalk-list mailing list