Problem:
I am unable to get subscription manager by which i can register the ubuntu 16.04.6 host.
Expected outcome:
ubuntu 16.04.6 host is registered successfully and i can upgrade/install the packages using foreman content view consisting of deb packages
Foreman and Proxy versions:
Foreman-3.9 with katello-4.11
Proxy version- 3.9.3
Foreman and Proxy plugin versions:
Distribution and version:
Other relevant data:
Hi @shubham
I had a look at oss.atix.de but did not find any Debian/Ubuntu major version that still uses Python2. I doubt that you can install and use Python 3.8 on Ubuntu 16.04 which is required by python3-subscription-manager
for Ubuntu 20.04. So this hack is probably not gonna work. Therefore, I assume that you’ll have to either package subscription-manager
yourself or install by hand using Python tooling.
Thanks @maximilian for your prompt reply,
Is there any easy way to register this host instead of using subscription manager?
I am trying to do this using puppet and ansible playbook both, but i am unable to achieve what i want. Please suggest, if you have any simpler way
Ansible playbook-
ansible version- ansible [core 2.16.3]
inventory yml:-
all:
hosts:
target1:
ansible_host:
ansible_ssh_private_key_file:
ansible_user: ubuntu
register_hosts.yml:-
Output:-
ansible-playbook -i inventory.yml register_hosts.yml
PLAY [Register hosts in Foreman] ********************************************************************************************************************************************************************************
TASK [Gathering Facts] ******************************************************************************************************************************************************************************************
fatal: [target1]: FAILED! => {“ansible_facts”: {}, “changed”: false, “failed_modules”: {“ansible.legacy.setup”: {“ansible_facts”: {“discovered_interpreter_python”: “/usr/bin/python3”}, “failed”: true, “msg”: “ansible-core requires a minimum of Python2 version 2.7 or Python3 version 3.6. Current version: 3.5.2 (default, Jan 26 2021, 13:30:48) [GCC 5.4.0 20160609]”}}, “msg”: “The following modules failed to execute: ansible.legacy.setup\n”}
PLAY RECAP ******************************************************************************************************************************************************************************************************
target1 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Puppet Agent- version 3.8.5
Puppet server- version 7.34.0
/etc/puppetlabs/puppet/puppet.conf
[main]
server =
show_diff = true
[agent]
certname = os-compute08.maas
environment = Production
runinterval = 30
Without subscription-manager you won’t be able to register a host.
@maximilian , Is there any chance you could upload Debian 10 repo in on apt.atix.de? And if i want to build package on my own, could you please suggest how can i achieve it? which version shall i use? Please.