[Spacewalk-list] RHN Errata Clone - publish date

Paul Robert Marino prmarino1 at gmail.com
Mon May 21 23:11:15 UTC 2012


Yea
Just set the source and destination server to the same host.
Then set the channels or base channels apropriately.
Note if you are using it in recursive base channel mode the channels will
need to be seperate base channels. Also you will need to use the options to
rename the erratas so for example rhse-1234 you could transform to
prod-rhse1234.
Futher more allong the lines you have been asking about if the packages
haven't been coppied the errata won't get duplicated
On May 21, 2012 6:38 PM, "Musayev, Ilya" <imusayev at webmd.net> wrote:

> Paul,
>
> I  was curious if I can clone errata with your script from within
> spacewalk from channel A to channel B?
>
> Thanks
> ilya
>
> -----Original Message-----
> From: spacewalk-list-bounces at redhat.com [mailto:
> spacewalk-list-bounces at redhat.com] On Behalf Of Paul Robert Marino
> Sent: Tuesday, May 08, 2012 5:14 PM
> To: spacewalk-list at redhat.com
> Subject: Re: [Spacewalk-list] RHN Errata Clone - publish date
>
> On Mon, May 7, 2012 at 2:29 PM, Musayev, Ilya <imusayev at webmd.net> wrote:
> > Understood, if you make any headway and need someone to test, let me
> know.
> >
> > Thanks for the detailed info
> >
> > Regards
> > ilya
> >
> > -----Original Message-----
> > From: spacewalk-list-bounces at redhat.com
> > [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Paul Robert
> > Marino
> > Sent: Monday, May 07, 2012 1:25 PM
> > To: spacewalk-list at redhat.com
> > Subject: Re: [Spacewalk-list] RHN Errata Clone - publish date
> >
> > its the spacewalk API
> > there is no way to hard set the date on an errata.
> > You can query it from the api but you cant set the create or update date.
> >
> > A SQL query could set the date but its probably not going to be as easy
> as you might like it will probably require a join but I'm not sure I
> haven't looked at that part of the schema yet.
> >
> > to query the date of an errata use the "errata.getDetails" xmlapi
> > https://access.redhat.com/knowledge/docs/Red_Hat_Network/API_Documenta
> > tion/errata/ErrataHandler.html#getDetails
> >
> > Although looking at it there may be a way to set the date in the publish
> process via the errata.publishAsOriginal call in the API. The problem is
> none of the current errata sync scripts I've seen use this method.
> > it would require creating the errata with the publish boolean set to 0
>  then publishing it after the fact. its a little more complex but should be
> doable. The problem is I'm not sure it the would resolve the issue because
> I think it only lets you set the create date not the update date or last
> modified date.
> >
> > I'll try it out when I get a chance and add it to the errata sync script
> that I've been developing if it works. It would actually help my fast
> skipping of previously published erratas work more accurately on exact date
> ranges.
> >
> >
> >
> > On Mon, May 7, 2012 at 12:31 PM, Musayev, Ilya <imusayev at webmd.net>
> wrote:
> >> I see. Is it limitation on RedHat APIs or Spacewalk?
> >>
> >>
> >>
> >> Can I work around the API limitation and do direct SQL updates, as
> >> long as I can see the publish date I could probably figure out the
> >> location of errata in sql and do an update.
> >>
> >>
> >>
> >> Or an easier approach, would it be possible to inject the publish
> >> date into description?
> >>
> >>
> >>
> >> From: spacewalk-list-bounces at redhat.com
> >> [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Paul Robert
> >> Marino
> >> Sent: Monday, May 07, 2012 12:19 PM
> >> To: spacewalk-list at redhat.com
> >> Subject: Re: [Spacewalk-list] RHN Errata Clone - publish date
> >>
> >>
> >>
> >> No not currently
> >> Its an api limitation
> >>
> >> On May 7, 2012 12:17 PM, "Musayev, Ilya" <imusayev at webmd.net> wrote:
> >>
> >> Is there any way to keep publish date of errata same as on RHN? It's
> >> a bit tricky to look at erratas while they all have the same date and
> >> I have close to 10,000 of them.. Any help is appreciated.. thanks.
> >>
> >>
> >> _______________________________________________
> >> Spacewalk-list mailing list
> >> Spacewalk-list at redhat.com
> >> https://www.redhat.com/mailman/listinfo/spacewalk-list
> >>
> >>
> >> _______________________________________________
> >> Spacewalk-list mailing list
> >> Spacewalk-list at redhat.com
> >> https://www.redhat.com/mailman/listinfo/spacewalk-list
> >
> > _______________________________________________
> > Spacewalk-list mailing list
> > Spacewalk-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/spacewalk-list
> >
> >
> >
> > _______________________________________________
> > Spacewalk-list mailing list
> > Spacewalk-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/spacewalk-list
>
> I have to correct my self yesterday I only glanced at the api doc it turns
> out the errata.publishAsOriginal  doesn't let you set the date either.
> I just started to look at making the code modifications and found that i
> miss read the doc and was looking at the output instead of the input. So
> there is still no way to set an explicit date on the errata via the
> published APIs.
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120521/994325f2/attachment.htm>


More information about the Spacewalk-list mailing list