Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centos Stream 9 template #1391

Closed
elreydetoda opened this issue Feb 6, 2022 · 7 comments
Closed

Centos Stream 9 template #1391

elreydetoda opened this issue Feb 6, 2022 · 7 comments
Labels
Status: Untriaged An issue that has yet to be triaged.

Comments

@elreydetoda
Copy link
Contributor

Describe the Enhancement:

Trying to add a centos stream 9 template, but unfortunately the mirrors aren't providing a hash for the symlinked latest file: CentOS-Stream-9-latest-x86_64-dvd1.iso as you can see in the picture below.

image

Describe the Need:

There needs to be a consistent way of getting the needed information to populate a template.

Current Alternative

there is some interaction with upstream again (like last time) to have this resolved

Can We Help You Implement This?:

I don't think so yet, I'm going to engage @hashicorp's packer team to see if they can implement an http data source for the new packer HCL. If this project isn't apposed to it, I'd like to work on a HCL alternative for building the CentOS stream image. Once the http data source is implemented I should be able to use string manipulation functions with packer's HCL to substitute the needed characters in so the checksums will match the ISO name. Because the two ISOs are the same:

related: #1361 #1368 @ramereth (since he's contributed CentOS stream stuff before)

@elreydetoda elreydetoda added the Status: Untriaged An issue that has yet to be triaged. label Feb 6, 2022
@ramereth
Copy link
Contributor

ramereth commented Feb 7, 2022

Looks like there's an upstream bug already filed for this that you can track.

@ramereth
Copy link
Contributor

ramereth commented Feb 9, 2022

@elreydetoda It looks like this was resolved upstream: https://bugzilla.redhat.com/show_bug.cgi?id=2027833#c2

Can you please confirm this works for you now?

EDIT: It looks like they still need to fix the SHA256SUM file which you were using. I'll update the bug to mention that.

@elreydetoda
Copy link
Contributor Author

Thanks @ramereth ! I think it should be fine for this project if I switch to the one that they are appending with .SHA256SUM, but good call on letting them know the file isn't fixed for that one yet.

@elreydetoda
Copy link
Contributor Author

So, for now till hashicorp/packer-plugin-qemu#63 gets resolved, we can at least plug in a specific mirror and have everything build properly. I guess what is the best mirror for the bento project, this is what came back for me:

$ curl -sSw '%{redirect_url}' -o /dev/null 'https://mirrors.centos.org/mirrorlist?path=/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-dvd1.iso.SHA256SUM&redirect=1&protocol=https' ; echo
https://ftp-osl.osuosl.org/pub/centos-stream/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-dvd1.iso.SHA256SUM
$ curl -sSw '%{redirect_url}' -o /dev/null 'https://mirrors.centos.org/mirrorlist?path=/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-dvd1.iso&redirect=1&protocol=https' ; echo 
https://ord.mirror.rackspace.com/centos-stream/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-dvd1.iso

@ramereth
Copy link
Contributor

@elreydetoda feel free to point directly at our mirrors for this: https://centos-stream.osuosl.org/ to bypass the issue with mirrorlist redirections.

@jaymzh
Copy link

jaymzh commented Oct 7, 2022

This would be very useful.

@Stromweld
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged.
Projects
None yet
Development

No branches or pull requests

4 participants