Missing package python3-M2Crypto on bootstrap repo for SLE15 SP0

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

Environment

SUSE Manager 4.1

Situation

When creating boostrap repository for SLE 15 SP0 with command "mgr-create-bootstrap-repo" and selecting SLE-15-<architecture> the result is:
ERROR: package 'python3-M2Crypto' not found

Resolution

To fix this, you need to customize the mgr_bootstrap_data.py file.
In folder "/usr/share/susemanager/" copy original file to new one:

cp mgr_bootstrap_data.py mgr_bootstrap_data_custom.py

then add following line to your "/etc/rhn/rhn.conf" file:
server.susemanager.bootstrap_repo_datamodule = mgr_bootstrap_data_custom.py


and edit created "mgr_bootstrap_data_custom.py" file in folder "/usr/share/susemanager/" as following:

# SLE15 SP0 NON LTSS BOOTSTRAP FIX:
# - Copy "PKGLIST15_SALT" to "PKGLIST15_SALT_FIX"
# - Remove lines in "PKGLIST15_SALT_FIX": "python3-M2Crypto" , "python3-distro"
# - Edit "DATA" section for various architectures:

PKGLIST15_SALT_FIX = [
"libpgm-5_2-0",
"libsodium23",
"libzmq5",
"python3-Babel",
"python3-certifi",
"python3-chardet",
"python3-idna",
"python3-Jinja2",
"python3-MarkupSafe",
"python3-msgpack",
"python3-psutil",
"python3-py",
"python3-pytz",
"python3-PyYAML",
"python3-pyzmq",
"python3-requests",
"python3-rpm",
"python3-simplejson",
"python3-six",
"python3-urllib3",
"timezone",
"salt",
"python3-salt",
"salt-minion",
]

---

'SLE-15-aarch64' : {
'PDID' : [1589, 2053, 1709], 'BETAPDID' : [1925], 'PKGLIST' : PKGLIST15_TRAD + ONLYSLE15 + PKGLIST15_SALT_FIX + PKGLIST15SP0SP1_SALT + PKGLIST15_X86_ARM,
'DEST' : '/srv/www/htdocs/pub/repositories/sle/15/0/bootstrap/'
},
'SLE-15-ppc64le' : {
'PDID' : [1588, 2054, 1710], 'BETAPDID' : [1926], 'PKGLIST' : PKGLIST15_TRAD + ONLYSLE15 + PKGLIST15_SALT_FIX + PKGLIST15SP0SP1_SALT + PKGLIST15_PPC,
'DEST' : '/srv/www/htdocs/pub/repositories/sle/15/0/bootstrap/'
},
'SLE-15-s390x' : {
'PDID' : [1587, 2055, 1711], 'BETAPDID' : [1927], 'PKGLIST' : PKGLIST15_TRAD + ONLYSLE15 + PKGLIST15_SALT_FIX + PKGLIST15SP0SP1_SALT + PKGLIST15_Z,
'DEST' : '/srv/www/htdocs/pub/repositories/sle/15/0/bootstrap/'
},
'SLE-15-x86_64' : {
'PDID' : [1576, 2056, 1712], 'BETAPDID' : [1928], 'PKGLIST' : PKGLIST15_TRAD + ONLYSLE15 + PKGLIST15_SALT_FIX + PKGLIST15SP0SP1_SALT + PKGLIST15_X86_ARM,
'DEST' : '/srv/www/htdocs/pub/repositories/sle/15/0/bootstrap/'
},

Once this is done, run again bootstrap script (e.g. for x86_64 architecture):
# mgr-create-bootstrap-repo -d -f -c SLE-15-x86_64

Cause

With LTSS subscription newer Salt version was introduced which require python-M2Crypto package.

Status

Reported to Engineering

Additional Information

SUSE provides common package list for all SLE15 products.
If python3-M2Crypto package is removed from list in the edited file "mgr_bootstrap_data_custom.py", the error will disappear for SLE15 GA without LTSS, but SP1 and SP2 will not generate a correct bootstrap repository anymore.

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:000020352
  • Creation Date: 29-Jul-2021
  • Modified Date:29-Jul-2021
    • SUSE Manager Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

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

Join Our Community

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.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

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

Go to Customer Center