[Spacewalk-list] [EXTERNAL] Cloning errata to cloned channel using spacecmd
Ted Carr
ted.carr at sungardas.com
Fri May 8 12:23:58 UTC 2020
Thanks Dean. I have seen solutions using a similar method when googling. I am just being lazy and was hoping that there was a command like 'softwarechannel_sync_errata[_tree] <CHANNEL>' that would perform the same function as clicking the "Clone Errata" in the Web UI. Maybe I need to submit an RFE. ;-)
Cheers,
Ted
From: spacewalk-list-bounces at redhat.com <spacewalk-list-bounces at redhat.com> On Behalf Of Peirce, Dean
Sent: Thursday, May 7, 2020 9:19 PM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] [EXTERNAL] Cloning errata to cloned channel using spacecmd
Hi Ted,
I use a combination of spacewalk-report and spacewalk-clone-by-date (from the spacewalk-utils package) to clone my channels DEV -> QA -> PROD based on the date.
—Dean
On May 7, 2020, at 10:40 AM, Ted Carr <ted.carr at sungardas.com<mailto:ted.carr at sungardas.com>> wrote:
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<https://urldefense.com/v3/__http:/swk01/rpc/api__;!!MXVguWEtGgZw!YMadM3JA4rM0DaYQH5HkZNQXtepySDieL884DJiDOFPApCsXJYglUlLG5wTLHjlWnA$> 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
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
https://urldefense.com/v3/__https://www.redhat.com/mailman/listinfo/spacewalk-list__;!!MXVguWEtGgZw!YMadM3JA4rM0DaYQH5HkZNQXtepySDieL884DJiDOFPApCsXJYglUlLG5wQTzUvCsA$<https://urldefense.com/v3/__https:/www.redhat.com/mailman/listinfo/spacewalk-list__;!!MXVguWEtGgZw!YMadM3JA4rM0DaYQH5HkZNQXtepySDieL884DJiDOFPApCsXJYglUlLG5wQTzUvCsA$>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20200508/9474e1fe/attachment.htm>
More information about the Spacewalk-list
mailing list