[Spacewalk-list] Cloning errata to cloned channel using spacecmd

Ted Carr ted.carr at sungardas.com
Thu May 7 14:40:05 UTC 2020


Hi All,

I have been googling around and I haven't been able to find an answer to my question.

I have cloned "oraclelinux7-x86_64" channel to "qa-oraclelinux7-x86_64" a few weeks ago and now I want to sync the new errata in original channel to the QA channel.  In the past I have used the web interface going to Manage Software Channels ---> Channel Name ---> Errata tab ---> Clone and then clicked on "Clone Errata" to clone them from the original channel.  Or I have used a python script I wrote years ago which does a client.channel.software.mergePackages.

I am interested in seeing if I can accomplish the same using 'spacecmd'

I have tried running "spacecmd softwarechannel_errata_sync oraclelinux7-x86_64 qa-oraclelinux7-x86_64", however from the output it looks like it wants to remove all of the errata in the channel and replace it instead of just adding the missing errata.  For example:

summary:
  oraclelinux7-x86_64:  2412 errata
  qa-oraclelinux7-x86_64:  2402 errata
    add     2412 errata to   qa-oraclelinux7-x86_64
    remove  2402 errata from qa-oraclelinux7-x86_64

I did notice that the errata in the cloned channel has "CL-" prepended to the name:

# spacecmd softwarechannel_errata_diff oraclelinux7-x86_64 qa-oraclelinux7-x86_64 | grep 2020-1116
INFO: Connected to http://swk01/rpc/api as swadmin
-ELSA-2020-1116 Important:  qemu-kvm security, bug fix, and
+CL-ELSA-2020-1116 Important:  qemu-kvm security, bug fix, and

So I am assuming that is the cause of the behavior.

Is there a way to use spacecmd to just add the missing errata?

Thanks in advance!!

Cheers,
Ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20200507/5a985481/attachment.htm>


More information about the Spacewalk-list mailing list