Where does Katello get initrd.img and vmlinuz from?

Problem:
I am fairly new to Foreman, so I’m likely just missing something.

Created a new Content Product (CentOS 8 Stream in this case). Created and synced the repos (BaseOS and AppStream using repo discovery). Created and assigned an activation key.

I edited an existing CentOS 8 Streams host and changed the media from All Media to Synced Content and selected the BaseOS content.

When I tell it to “Build” the host, /var/lib/tftpboot/grub2/boot ends up with empty vmlinuz and initrd.img files.

-rw-r–r–. 1 foreman-proxy foreman-proxy 0 Jul 30 10:23 baseos-x86_64-os-3-initrd.img
-rw-r–r–. 1 foreman-proxy foreman-proxy 0 Jul 30 10:23 baseos-x86_64-os-3-vmlinuz

With this custom repo, I’m not sure where it’s supposed to get those files from? It doesn’t appears the images folder gets synced from the mirror.

Expected outcome:
Download the correct vmlinuz and initrd.img file from ?

Foreman and Proxy versions:
Foreman 2.5.2
Katello 4.1.2

Foreman and Proxy plugin versions:

Distribution and version:
CentOS 8 Stream

Other relevant data:

/var/log/foreman-proxy/proxy.log:

2021-07-30T10:23:06 f4b41073 [W] [67580] http://foreman8.domain.com/pulp/content/Default_Organization/Library/custom/CentOS_8_Streram/BaseOS_x86_64_os//images/pxeboot/vmlinuz:

2021-07-30T10:23:06 f4b41073 [W] [67580] 2021-07-30 10:23:06 ERROR 404: Not Found.

That’s interesting, the BaseOS should contain these files under /images/pxeboot/initrd.img and /images/pxeboot/vmlinuz. What is the repo URL you used for the BaseOS repo? Is that http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os? DId the sync finished successfully?

can you browse to the URL? and see the images/pxeboot directories?
http://foreman8.domain.com/pulp/content/Default_Organization/Library/custom/CentOS_8_Streram/BaseOS_x86_64_os//images/

if not, select the repo and try a Advanced Sync>Complete Sync and republish
this is the only way i could pull down the images folder even though sync was reporting successful

I am doing the sync from CentOS Mirror. When I browse

http://foreman8.domain.com/pulp/content/Default_Organization/Library/custom/CentOS_8_Streram/BaseOS_x86_64_os/, I see:

.treeinfo
EULA
GPL
Packages
config.repo
extra_files.json
repodata

I do not see an images directory. I am running the Complete Sync now. I’ll update how it turns out.

The complete sync looks better. I have an images folder and I see the initrd and vmlinuz files. I won’t be able to try an install until later, but this looks much better.

I had this repo on a daily sync plan, so it hadn’t been pulling that information in at all. Not sure why it didn’t pull it in to begin with.

Thanks for the help!

1 Like