Re: [Spacewalk-list] Spacewalk clean up packages issue

2020-07-20 Thread Avi Miller
Hi,

> On 21 Jul 2020, at 2:51 am, Sulove Khanal  wrote:
> 
> Or would you recommend in this case disabling the scheduler, and setting up 
> my own cron job and bash script to ensure syncing of only the latest packages 
> (on a nightly basis)?

This is what I generally recommend anyway, because it allows far more 
flexibility and configurability for the syncing process.

Cheers,
Avi

--
Avi Miller
Senior Manager
Oracle Linux and Virtualization Product Management

Phone: +61.3.8616.3496
Preferred pronouns: he/him/his



signature.asc
Description: Message signed with OpenPGP
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Spacewalk clean up packages issue

2020-07-20 Thread Sulove Khanal
Is it possible to use the custom Quartz format scheduler in Spacewalk on the 
command line and still pass certain parameters too in that schedule? (i.e. 
--latest) 

Or would you recommend in this case disabling the scheduler, and setting up my 
own cron job and bash script to ensure syncing of only the latest packages (on 
a nightly basis)?

Regards,
Sulove

On 7/14/20, 4:27 AM, "Andreas Dijkman"  wrote:

Unfortunately there is no way to see in the UI what te current settings are 
in the UI. Only way to know for sure is to tick the appropriate checkboxes and 
press Schedule (again), as Avi already said, to override the settings that are 
already saved for the job. The checkboxes aren’t filled according the settings 
currently saved.

Andreas Dijkman

> On 13 Jul 2020, at 23:35, Avi Miller  wrote:
> 
> Hi,
> 
>> On 14 Jul 2020, at 7:08 am, Sulove Khanal  wrote:
>> 
>> So I can't get the option of "sync only latest packages" to save at all 
on the UI. I click on the checkbox, but there is no save button on the page. 
Checking the box off and then hitting "sync now" also doesn't save it. I'm 
reading here 
https://www.redhat.com/archives/spacewalk-list/2016-March/msg00048.html, but I 
want this save to be permanent. What can be done?
> 
> If you check the boxes and hit "Schedule" (at the bottom of the page), it 
should save the options along with your chosen schedule. If this doesn't work, 
it's a bug.
> 
> Thanks,
> Avi
> 
> --
> Avi Miller
> Senior Manager
> Oracle Linux and Virtualization Product Management
> 
> Phone: +61.3.8616.3496
> Preferred pronouns: he/him/his
> 
> ___
> Spacewalk-list mailing list
> Spacewalk-list@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list


___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list



___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Spacewalk clean up packages issue

2020-07-14 Thread Andreas Dijkman
Unfortunately there is no way to see in the UI what te current settings are in 
the UI. Only way to know for sure is to tick the appropriate checkboxes and 
press Schedule (again), as Avi already said, to override the settings that are 
already saved for the job. The checkboxes aren’t filled according the settings 
currently saved.

Andreas Dijkman

> On 13 Jul 2020, at 23:35, Avi Miller  wrote:
> 
> Hi,
> 
>> On 14 Jul 2020, at 7:08 am, Sulove Khanal  wrote:
>> 
>> So I can't get the option of "sync only latest packages" to save at all on 
>> the UI. I click on the checkbox, but there is no save button on the page. 
>> Checking the box off and then hitting "sync now" also doesn't save it. I'm 
>> reading here 
>> https://www.redhat.com/archives/spacewalk-list/2016-March/msg00048.html, but 
>> I want this save to be permanent. What can be done?
> 
> If you check the boxes and hit "Schedule" (at the bottom of the page), it 
> should save the options along with your chosen schedule. If this doesn't 
> work, it's a bug.
> 
> Thanks,
> Avi
> 
> --
> Avi Miller
> Senior Manager
> Oracle Linux and Virtualization Product Management
> 
> Phone: +61.3.8616.3496
> Preferred pronouns: he/him/his
> 
> ___
> Spacewalk-list mailing list
> Spacewalk-list@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list


___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Spacewalk clean up packages issue

2020-07-13 Thread Avi Miller
Hi,

> On 14 Jul 2020, at 7:08 am, Sulove Khanal  wrote:
> 
> So I can't get the option of "sync only latest packages" to save at all on 
> the UI. I click on the checkbox, but there is no save button on the page. 
> Checking the box off and then hitting "sync now" also doesn't save it. I'm 
> reading here 
> https://www.redhat.com/archives/spacewalk-list/2016-March/msg00048.html, but 
> I want this save to be permanent. What can be done?

If you check the boxes and hit "Schedule" (at the bottom of the page), it 
should save the options along with your chosen schedule. If this doesn't work, 
it's a bug.

Thanks,
Avi

--
Avi Miller
Senior Manager
Oracle Linux and Virtualization Product Management

Phone: +61.3.8616.3496
Preferred pronouns: he/him/his



signature.asc
Description: Message signed with OpenPGP
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Spacewalk clean up packages issue

2020-07-13 Thread Sulove Khanal
So I can't get the option of "sync only latest packages" to save at all on the 
UI. I click on the checkbox, but there is no save button on the page. Checking 
the box off and then hitting "sync now" also doesn't save it. I'm reading here 
https://www.redhat.com/archives/spacewalk-list/2016-March/msg00048.html, but I 
want this save to be permanent. What can be done?

Regards,
Sulove

On 7/9/20, 7:35 PM, "Avi Miller"  wrote:

Hi,

> On 10 Jul 2020, at 7:42 am, Sulove Khanal  wrote:
> 
> Thanks Avi, is that the "sync only latest packages" checkbox on the UI 
under the Sync tab for a Software Channel?

Yes.

> Out of curiosity, how is this done via the cli?

You can run the spacewalk-repo-sync tool from the command-line and pass the 
-n/--latest parameter: 
https://docs.oracle.com/en/operating-systems/spacewalk/2.7/admin/crreposwc.html#oh2_dsl_ms

Thanks,
Avi

--
Avi Miller
Senior Manager
Oracle Linux and Virtualization Product Management

Phone: +61.3.8616.3496
Preferred pronouns: he/him/his

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list



___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Spacewalk clean up packages issue

2020-07-09 Thread Avi Miller
Hi,

> On 10 Jul 2020, at 7:42 am, Sulove Khanal  wrote:
> 
> Thanks Avi, is that the "sync only latest packages" checkbox on the UI under 
> the Sync tab for a Software Channel?

Yes.

> Out of curiosity, how is this done via the cli?

You can run the spacewalk-repo-sync tool from the command-line and pass the 
-n/--latest parameter: 
https://docs.oracle.com/en/operating-systems/spacewalk/2.7/admin/crreposwc.html#oh2_dsl_ms

Thanks,
Avi

--
Avi Miller
Senior Manager
Oracle Linux and Virtualization Product Management

Phone: +61.3.8616.3496
Preferred pronouns: he/him/his



signature.asc
Description: Message signed with OpenPGP
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Spacewalk clean up packages issue

2020-07-09 Thread Sulove Khanal
Thanks Avi, is that the "sync only latest packages" checkbox on the UI under 
the Sync tab for a Software Channel?

Out of curiosity, how is this done via the cli? 

Regards,
Sulove

On 7/8/20, 6:41 PM, "Avi Miller"  wrote:

Hi,

> On 9 Jul 2020, at 3:12 am, Sulove Khanal  wrote:
> 
> My channels sync every night around midnight, so I am thinking Spacewalk 
is redownloading those packages it has just removed. This didn’t use to happen 
before maybe 2 months ago, and nothing has changed I believe in my environment 
to warrant this change; the script was ran and space would not fill out the 
night after.

You'll want to check your channel sync scripts to make sure 
spacewalk-repo-sync is called using the --latest/-n flag (at least for the 
channels that fill up your disk space) so that Spacewalk doesn't redownload all 
the old packages you removed. There is also a UI checkbox for this on the Sync 
tab for a Software Channel.

Cheers,
Avi

--
Avi Miller
Senior Manager
Oracle Linux and Virtualization Product Management

Phone: +61.3.8616.3496
Preferred pronouns: he/him/his

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list



___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Spacewalk clean up packages issue

2020-07-08 Thread Avi Miller
Hi,

> On 9 Jul 2020, at 3:12 am, Sulove Khanal  wrote:
> 
> My channels sync every night around midnight, so I am thinking Spacewalk is 
> redownloading those packages it has just removed. This didn’t use to happen 
> before maybe 2 months ago, and nothing has changed I believe in my 
> environment to warrant this change; the script was ran and space would not 
> fill out the night after.

You'll want to check your channel sync scripts to make sure spacewalk-repo-sync 
is called using the --latest/-n flag (at least for the channels that fill up 
your disk space) so that Spacewalk doesn't redownload all the old packages you 
removed. There is also a UI checkbox for this on the Sync tab for a Software 
Channel.

Cheers,
Avi

--
Avi Miller
Senior Manager
Oracle Linux and Virtualization Product Management

Phone: +61.3.8616.3496
Preferred pronouns: he/him/his



signature.asc
Description: Message signed with OpenPGP
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list