<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I don’t know that you can really gracefully do this with spacecmd.  I run through the API to do a clone as of today operation.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Be aware that there is a rather significant issue with cloned errata.  It’s not in the first stage clone, it’s second stage and beyond.  Errata can be downloaded or applied to download channels, and cloned down to your development channels
 gracefully.  If you clone errata from dev to QA, (this is the problem,) I’ve noted for years that packages referenced in the errata may be brought into the channel even if they do not apply to the channel.  The big issue is bringing EL7 packages into an EL6
 channel, and the like.  To remediate this, clone the errata in the 2<sup>nd</sup> stage of your pipeline, then immediately compare channel package contents and make this channel look like it’s clone source.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jeff Kalchik<o:p></o:p></p>
<p class="MsoNormal">Land O’Lakes Server Support Managed Resources.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com>
<b>On Behalf Of </b>Ted Carr<br>
<b>Sent:</b> Friday, May 8, 2020 7:24 AM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] [EXTERNAL] Cloning errata to cloned channel using spacecmd<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.  ;-)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
<p class="MsoNormal">Ted<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> <a href="mailto:spacewalk-list-bounces@redhat.com">
spacewalk-list-bounces@redhat.com</a> <<a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a>>
<b>On Behalf Of </b>Peirce, Dean<br>
<b>Sent:</b> Thursday, May 7, 2020 9:19 PM<br>
<b>To:</b> <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
<b>Subject:</b> Re: [Spacewalk-list] [EXTERNAL] Cloning errata to cloned channel using spacecmd<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi Ted, <o:p></o:p></p>
<div>
<p class="MsoNormal">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.  <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">—Dean<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On May 7, 2020, at 10:40 AM, Ted Carr <<a href="mailto:ted.carr@sungardas.com">ted.carr@sungardas.com</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Hi All,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I have been googling around and I haven’t been able to find an answer to my question. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I am interested in seeing if I can accomplish the same using 'spacecmd'<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">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:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Consolas">summary:</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Consolas">  oraclelinux7-x86_64:  2412 errata</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Consolas">  qa-oraclelinux7-x86_64:  2402 errata</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Consolas">    add     2412 errata to   qa-oraclelinux7-x86_64</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Consolas">    remove  2402 errata from qa-oraclelinux7-x86_64</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I did notice that the errata in the cloned channel has "CL-" prepended to the name:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Consolas"># spacecmd softwarechannel_errata_diff oraclelinux7-x86_64 qa-oraclelinux7-x86_64 | grep 2020-1116</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Consolas">INFO: Connected to<span class="apple-converted-space"> </span><a href="https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__http%3A%2Fswk01%2Frpc%2Fapi__%3B!!MXVguWEtGgZw!YMadM3JA4rM0DaYQH5HkZNQXtepySDieL884DJiDOFPApCsXJYglUlLG5wTLHjlWnA%24&data=01%7C01%7Cjdkalchik%40landolakes.com%7C380f999353bb475f564c08d7f34accd2%7C21ab97d78e754056826b9d8ec665c5a3%7C1&sdata=cGY1SBz1hUHweXcjDG6r53XufNH2QmYmzgodP41IMUQ%3D&reserved=0">http://swk01/rpc/api</a><span class="apple-converted-space"> </span>as
 swadmin</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Consolas">-ELSA-2020-1116 Important:  qemu-kvm security, bug fix, and</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Consolas">+CL-ELSA-2020-1116 Important:  qemu-kvm security, bug fix, and</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">So I am assuming that is the cause of the behavior. <span class="apple-converted-space"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Is there a way to use spacecmd to just add the missing errata?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks in advance!!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Ted<o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif">_______________________________________________<br>
Spacewalk-list mailing list<br>
</span><a href="mailto:Spacewalk-list@redhat.com"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif">Spacewalk-list@redhat.com</span></a><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif"><br>
</span><a href="https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2Fwww.redhat.com%2Fmailman%2Flistinfo%2Fspacewalk-list__%3B!!MXVguWEtGgZw!YMadM3JA4rM0DaYQH5HkZNQXtepySDieL884DJiDOFPApCsXJYglUlLG5wQTzUvCsA%24&data=01%7C01%7Cjdkalchik%40landolakes.com%7C380f999353bb475f564c08d7f34accd2%7C21ab97d78e754056826b9d8ec665c5a3%7C1&sdata=IIPk5WRW14Y8DsF7u%2B7YQg4KoG2Ttx7hSRNJA6vCoGA%3D&reserved=0"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif">https://urldefense.com/v3/__https://www.redhat.com/mailman/listinfo/spacewalk-list__;!!MXVguWEtGgZw!YMadM3JA4rM0DaYQH5HkZNQXtepySDieL884DJiDOFPApCsXJYglUlLG5wQTzUvCsA$</span></a><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<table class="MsoNormalTable" border="0" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="background:#E87722;padding:5.25pt 1.5pt 5.25pt 1.5pt"></td>
<td width="100%" style="width:100.0%;background:#D1CCBD;padding:5.25pt 3.75pt 5.25pt 11.25pt">
<p class="MsoNormal" style="mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<b><span style="color:#204F56">W</span></b><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#204F56">arning:</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#212121"> This email originated from outside of Land
 O’Lakes. <b>DO NOT</b> <u>click</u> on links or <u>open</u> attachments unless you recognize the sender and know the content is safe.</span><span style="color:#204F56"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
This message may contain confidential material from Land O'Lakes, Inc. (or its subsidiary) for the sole use of the intended recipient(s) and may not be reviewed, disclosed, copied, distributed or used by anyone other than the intended recipient(s). If you are
 not the intended recipient, please contact the sender by reply email and delete all copies of this message.
</body>
</html>