SUSE Support

Here When You Need Us

Prevent deactivation of 3rd party repositories by SUSE Manager

This document (000021406) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Manager 4.2
SUSE Manager 4.3

Situation

Per default repositories that are not managed by SUSE Manager will be deactivated when minions are running a high state or "state.apply channels". 
It means that every repository that is found in the respective repository directories will be disabled
unless they are not defined in the repository file "susemanager:channels.repo" (provided by SUSE Manager). 

On a SUSE Linux Enterprise Server all repository definitions are located in /etc/zypp/repos.d.
On RedHat Enterprise Server ( and derivates ) repository definitions are located in /etc/yum.repos.d.

Deactivation of other repositories simply means that the parameter "enabled=1" is set to "enabled=0" in a repository file.

For example:
 
/etc/zypp/repos.d/test.repo:
[Basesystem_Module_15_SP4_x86_64:SLE-Module-Basesystem15-SP4-Pool]
name=SLE-Module-Basesystem15-SP4-Pool
enabled=1
autorefresh=0
type=rpm-md
service=Basesystem_Module_15_SP4_x86_64

is changed to:
 
/etc/zypp/repos.d/test.repo:
[Basesystem_Module_15_SP4_x86_64:SLE-Module-Basesystem15-SP4-Pool]
name=SLE-Module-Basesystem15-SP4-Pool
enabled=0
autorefresh=0
type=rpm-md
service=Basesystem_Module_15_SP4_x86_64

Resolution

To avoid the disablement of 3rd party repositories which are not provided by SUSE Manager, perform the following steps on the SUSE Manager server.

1. Create "top.sls" in "/srv/pillar" with the following content:
 
base:
  '$MINION_ID':
    - no_disable_local_repos

Replace $MINION_ID with the ID of the desired minion. There are several ways of targeting minions. Please
consult the official salt documentation [1].

2. Set the following grain in "/srv/pillar/no_disable_local_repos.sls"
mgr_disable_local_repos: False

3. Deploy channel state on the salt minion
 
salt '$MINION_ID' state.apply channels

 

Cause

Per default repositories that are not provided by SUSE Manager will get deactivated when minions are running a high state or "state.apply channels". 

Additional Information

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000021406
  • Creation Date: 21-Mar-2024
  • Modified Date:21-Mar-2024
    • SUSE Manager Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.