[Spacewalk-list] [EXTERNAL EMAIL] CentOS 8 patch push works in GUI, fails in spacecmd command

Simon Avery Simon.Avery at oxygenhouse.com
Mon Mar 2 14:15:02 UTC 2020


Hi

I’ve not tested your scenario fully, but note that “ - - “ is often needed when passing some commands via spacecmd from the cli (rather than in spacecmd’s shell)

This is my three command “patch everything in a group” script. $1 expanded to the name of that group (excuse outlook munging two –‘s into a solid line – they are dash dash without a space in them: -- )

# Ensure nothing else in ssm
spacecmd ssm_clear

# Now add all the machines from the group in $1 to ssm
spacecmd -- ssm_add group:"$1"

# Now create the upgrade package schedule in 24h from when called
spacecmd -y -- system_upgradepackage ssm '*' -s 24h



From: spacewalk-list-bounces at redhat.com <spacewalk-list-bounces at redhat.com> On Behalf Of Unix admin
Sent: 02 March 2020 13:16
To: spacewalk-list at redhat.com
Subject: [EXTERNAL EMAIL] [Spacewalk-list] CentOS 8 patch push works in GUI, fails in spacecmd command

Hi,

I am trying to push CentOS 8 update using spacecmd command, it gives the error 'ERROR: failed to schdule the action' message. But I was to push the package  using Spacewalk GUI.


spacecmd  system_upgradepackage  server01 '*' -y

How to fix this spacewalk error message? other spacecmd command works fine.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20200302/94214184/attachment.htm>


More information about the Spacewalk-list mailing list