terraform icon indicating copy to clipboard operation
terraform copied to clipboard

Linux repository doesn't works on Fedora 40

Open bitchecker opened this issue 1 year ago • 6 comments

Terraform Version

Terraform v1.8.1
on linux_amd64

Terraform Configuration Files

[hashicorp]
name=Hashicorp Stable - $basearch
baseurl=https://rpm.releases.hashicorp.com/fedora/$releasever/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://rpm.releases.hashicorp.com/gpg

[hashicorp-test]
name=Hashicorp Test - $basearch
baseurl=https://rpm.releases.hashicorp.com/fedora/$releasever/$basearch/test
enabled=0
gpgcheck=1
gpgkey=https://rpm.releases.hashicorp.com/gpg

Debug Output

no debug output to show

Expected Behavior

The expected behavior is to be able to update packages

Actual Behavior

Errors during downloading metadata for repository 'hashicorp':

  • Status code: 404 for https://rpm.releases.hashicorp.com/fedora/40/x86_64/stable/repodata/repomd.xml (IP: 18.66.218.10) Error: Failed to download metadata for repo 'hashicorp': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Steps to Reproduce

  1. Install Fedora 40
  2. Install hashicorp Linux repository
  3. Try to install terraform

Additional Context

The repository working fine with Fedora 39.

References

No response

bitchecker avatar Apr 23 '24 20:04 bitchecker

Per the Official Packaging Guide, Fedora 40 is not yet supported.

crw avatar Apr 24 '24 21:04 crw

Similar to https://github.com/hashicorp/vault/issues/26643 for vault.

ankon avatar Apr 25 '24 07:04 ankon

If you need to get around this for now, download the binary directly from https://developer.hashicorp.com/terraform/install, extract it, and drop it in /usr/local/bin or somewhere else in your path.

schaden-fred avatar Apr 26 '24 19:04 schaden-fred

True, that works. Although if you want to stick to RPMs and managing your setup using that, the easier approach is to replace $releasever in the .repo file with 39. The Fedora 39 binary will work on 40. When the 40 repo is available you can just reset that, and dnf/yum/rpm should work out the update path.

ankon avatar Apr 28 '24 09:04 ankon

no terraform on fedora 40? this blocks my work workflow because i need to constantly install newer and older terraform versions because of loads of terraform repos with different versions. As IBM owns now hashicorp and redhat, I hope really they will sort such problems out in the future..

Elyytscha avatar Apr 29 '24 09:04 Elyytscha

still no fedora 40 repo

ratuka avatar May 03 '24 08:05 ratuka

It seems to now be available.

dusansimic avatar May 20 '24 06:05 dusansimic

The packaging guide has also been updated, which would indicate official support. Thanks!

crw avatar May 20 '24 16:05 crw

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

github-actions[bot] avatar Jun 20 '24 02:06 github-actions[bot]