Problem: The least complicated method of getting errata into foreman /katello (Which one is it?) is outlined here
https://www.lisenet.com/2018/katello-import-centos-errata-into-pulp/
The last time it was mentioned on this forum was Sept 2019 and a few people were using it.
Expected outcome: I got to stage of “pulp-admin repo list” expecting to see a list of repos. What I got was strange (see below)
Foreman and Proxy versions: 3.16RC4
Foreman and Proxy plugin versions: Not sure
Distribution and version: Centos7
Other relevant data:
“hammer repository list”. Shows all six repos as they should appear.
±---------------------------------------------------------------------+
Repositories
±---------------------------------------------------------------------+
Id: 1-CentOS7_Content-v1_0-puppet-7b1fc942-4def-46bd-a0d9-08c0f
9555136
Display Name: CentOS7_Content Puppet Environment
Description: None
Content Unit Counts:
Note Display name. “CentOS7_Content” is my content view I have nothing called “Puppet Environment” . I do have puppet rep but the name and label are “puppet6_repo”
Also the ID is split over two lines as shown, it is not formatting.
Now eventually I read the manual and it said
“We do not encourage the use of pulp-admin…”
https://theforeman.org/plugins/katello/nightly/troubleshooting/index.html
However when I enabled it and ran “pulp-admin repo list” I received
Traceback (most recent call last):
File “/usr/bin/pulp-admin”, line 9, in
load_entry_point(‘pulp-client-admin==2.21.3’, ‘console_scripts’, ‘pulp-admin’)()
File “/usr/lib/python2.7/site-packages/pulp/client/admin/init.py”, line 9, in main
exit_code = launcher.main(read_config(), exception_handler_class=AdminExceptionHandler)
File “/usr/lib/python2.7/site-packages/pulp/client/admin/config.py”, line 94, in read_config
config.update(Config(*paths))
File “/usr/lib/python2.7/site-packages/pulp/common/config.py”, line 215, in init
self.open(input, filter)
File “/usr/lib/python2.7/site-packages/pulp/common/config.py”, line 241, in open
self.read(fp, filter)
File “/usr/lib/python2.7/site-packages/pulp/common/config.py”, line 260, in read
cfg = INIConfig(fp)
File “/usr/lib/python2.7/site-packages/iniparse/ini.py”, line 471, in init
self._readfp(fp)
File “/usr/lib/python2.7/site-packages/iniparse/ini.py”, line 565, in _readfp
raise MissingSectionHeaderError(fname, linecount, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /etc/pulp/admin/admin.conf, line: 6
‘host:ahsXXXXXX.ac.uk\n’
So the question is go against guidlines and fix an unapproved method or find another way to get those errata.
Or start multiple threads asking the same question.