Dear Foreman Community,
with great pleasure I want to present apt.atix.de to you.
The site contains consumable repositories with a packaged subscription manager for Debian 10 and Ubuntu 20.04 along with general usage instructions. The packages are built for Debian 10 and Ubuntu 20.04 on architecture amd64 , codename stable , and component main . The metadata is signed.
We welcome any and all feedback.
Kind regards,
Maximilian.
Hi @thomas-merz & @besmirzanaj
thereâs currently no plans to release a packaged subscription manager for either SLES or any other Ubuntu version.
Regarding Ubuntu 18.04 and 16.04, you might actually use the Debian 10 repository which relies on python2 (in contrast to the subscription manager for Ubuntu 20.04 which uses python3). Note that this is untested from my side.
Best of luck,
Maximilian.
However: based on which sources are these packages built (certain branch of https://github.com/ATIX-AG/subscription-manager?) Or are the changes (except the gpg key download fix) already upstreamed and this is built based on subscription-manager-1.28.4-1?
Are there any plans to publish the sources for the packages published on apt.atix.de and maybe potentially upstream them into the candlepin/subscription-manager repository as well?
A lot of community members have been asking this question, so I took some time to talk to @Bernhard_Suttner this afternoon. Please correct me if I misrepresent anything from ATIX here, but to summarize:
This, as you can tell from the other threads on Discourse, was a highly sought after feature. The decision to release it from apt.atix.de stemmed from the desire to provide what people were asking for ASAP vs the time and resources ATIX had available to make the packages available via theforeman.
We discussed making a plan in which a full list of requirements to make the build environment available are known and as a community, we can work towards progressing with this.
I installed and used the ATIX subscription-manager succesfully on Ubuntu-18.04, very nice work
I also installed it on Ubuntu-16.04. It installed, but when trying to register the server I get a libssl error.
The subscription-manager expect libssl-1.1 but Ubuntu-16.04 has libssl-1.0.
~# subscription-manager
Unable to find Subscription Manager module.
Error: libssl.so.1.1: cannot open shared object file: No such file or directory
Can this issue been solved in the subscription-manager, or is there a workaround?
Or do I miss something else?
The probem is that the packages are build for Ubuntu 20.04, so they require their dependencies in a version like it is on Focal. As you found out it could work on older versions of Ubuntu when they have similar versions of a library but not if they differ. This is the reason you build packages for every version.
As Maximilian stated ATIX has build this packages and made them public to help the community and the project, but because of limited time only for the newest versions of Debian and Ubuntu. So what you could do is rebuilding the packages on your own for the older versions.
Maximilian mentioned the Debian packages could work on Ubuntu 16 and 18 because both use python2.
It does work for Ubuntu-18, but with Ubuntu-16 I have this ssl issue.
I was wondering if this can be solved easily or with a âsimpleâ workaround.
You could try providing the necessary package (i.e. libssl) from another source as a potential workaround. Unfortunately, I cannot test this and this might cause incompatibilties with other software applications.
I installed it on a Debian 10 system and install was flawless.
I also got to register the host to my foreman server by activation key and the system is reported subscribed and with access to my Debian Buster repos under âSubscriptionsâ and âRepository Setsâ.
The file â/etc/apt/sources.list.d/rhsm.sourcesâ is created, but apart from comments, itâs empty. The suggested âapt-get updateâ doesnât change that.
subscription-manager status reports âOverall Status: Currentâ.
In contrast to what is shown in Foreman, âsubscription-manager reposâ reports âThis system has no repositories available through subscriptions.â
âsubscriptions-manager refreshâ or âunregister/registerâ does not help.
Is this supposed to work? Am I doing anything wrong?
I expect the /etc/apt/sources.list.d/rhsm.sources file to have content as follows:
root@host:/# cat /etc/apt/sources.list.d/rhsm.sources
#
# Certificate-Based Repositories
# Managed by (rhsm) subscription-manager
#
# *** This file is auto-generated. Changes made here will be over-written. ***
# *** Use "subscription-manager repo-override --help" if you wish to make changes. ***
#
# If this file is empty and this system is subscribed consider
# a "apt-get update" to refresh available repos
#
# *** DO NOT EDIT THIS FILE ***
#
Suites: default
metadata_expire: 1
name: Debian Client 10
enable_metadata: 1
enabled: 1
Trusted: yes
sslclientcert: /etc/pki/entitlement/1234567890.pem
baseurl: https://foreman.example.com/pulp/deb/Dev/Library/Debian_10/custom/Debian_Client/Debian_Client_10
id: Dev_Debian_Client_Debian_Client_10
sslclientkey: /etc/pki/entitlement/1234567890-key.pem
sslcacert: /etc/rhsm/ca/katello-server-ca.pem
Components: all
gpgcheck: 0
sslverify: 1
URIs: katello://1234567890@foreman.example.com/pulp/deb/Dev/Library/Debian_10/custom/Debian_Client/Debian_Client_10
Types: deb
Could you please post the exact history of commands youâve ran?
I was playing with this back and forth, recreating CVs and Activation Keys and did not get it working. Finally I found it⌠itâs actually this problem
I removed the architecture (amd64) on my buster-updates repo and now I can see it on the client with âsubscription-manager reposâ and also rhsm.sources is created.
I will have to check the thread linked in that issue report if there is a work around, because I do not really want to sync buster main for all architectures.