Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1501442

Summary: Repository is missing images/redhat.exec for s390x platform
Product: Red Hat Satellite Reporter: Lukas Zapletal <lzap>
Component: RepositoriesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 6.2.11CC: bbuckingham, bkearney, fmiranda, jjarvis, mhrivnak, mmccune, ttereshc
Target Milestone: UnspecifiedKeywords: FieldEngineering, Reopened, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-07 20:51:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1593657    
Bug Blocks:    

Description Lukas Zapletal 2017-10-12 15:08:52 UTC
This is Satellite 6.2.11.

1) Sync a RHEL 7.x System z kickstart. (*)
2) Visit it's Pulp HTTP address.
3) Files which are required for booting z/VM are missing. The images/ directory is empty.

Kickstart Katello object will not be created, this is known bug, a different one.

Although Sat6 does not support s390x for provisioning, we should be able to sync repos correctly so customers can boot from there.

Need an analysis and possible workaround or hotfix. Thank you.

Comment 6 Lukas Zapletal 2017-10-13 11:03:46 UTC
It looks like when the repo is set to OnDemand, it does not download those files. If you set it to Immediate, it will download.

The thing is that in s390x world you need to copy those files to CMS, therefore you cannot do that with OnDemand policy.

If this is confirmed, I will turn this into Satellite bug to change default policy to Immediate for kickstart repositories, or doco only bug.

Comment 8 Lukas Zapletal 2017-10-16 11:47:14 UTC
After further investigation I need to change this a little bit. The error is little bit different. We are missing redhat.exec file, the others are present.

generic.prm
genericdvd.prm
initrd.addrsize
initrd.img
install.img
kernel.img
upgrade.img

This file is required in order to boot into the installer:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/sect-installing-zvm-s390

The file is not present in the .treeinfo, this is the reason perhaps why Pulp does not download it. Please verify this is not a bug in Pulp and we can move this to RCM team to add this.

Comment 10 Michael Hrivnak 2017-10-16 19:02:20 UTC
Confirmed. I don't see a Pulp bug here.

There have been times when one or more required files are not referenced by the treeinfo file. For those cases, we worked out with RCM that those extra files would be indexed in a "PULP_DISTRIBUTION.XML" file. Docs here:

https://docs.pulpproject.org/plugins/pulp_rpm/tech-reference/yum-plugins.html#distribution

And as for downloading the required files, there is another option in case you'd like to only download the distribution files, but not necessarily all of the RPMs. Pulp has the "download" action you can call on a repo, which will download all files for all units in that repo.

http://docs.pulpproject.org/dev-guide/integration/rest-api/repo/sync.html#download-a-repository

Katello could create a transient repo, copy the distribution unit to it, call the "download" task on that repo, and then delete the transient repo. That would ensure the distribution unit gets fully downloaded.

Comment 11 Lukas Zapletal 2017-10-17 08:17:46 UTC
Thanks Michael, I copied your confirmation to the RCM ticket.

Googlers: We made Red Hat RCM team aware of this issue and things needs to be changed on the content provider side (CDN) to ensure the missing file entry is present in an "index" file.

I am closing this BZ now.

Comment 12 Lukas Zapletal 2018-06-19 06:19:06 UTC
Reopening the bug, RCM/DELIVERY say they won't update the PULP_DISTRIBUTION.XML file, if I understand correctly.

Comment 17 Bryan Kearney 2018-11-07 20:51:24 UTC
We believe that this now fixed with the delivery of https://bugzilla.redhat.com/show_bug.cgi?id=1593657 in 7.6. I am closing this out as CURRENTRELEASE. If you are still seeing an issue, please feel free to open a new BZ.