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

Wierd behavior. Checksum and version #13572

Open
tonypony220 opened this issue Jan 10, 2025 · 4 comments
Open

Wierd behavior. Checksum and version #13572

tonypony220 opened this issue Jan 10, 2025 · 4 comments

Comments

@tonypony220
Copy link

tonypony220 commented Jan 10, 2025

I've no idea what is happening, it was fine on vagrant 4.2.0 and 4.2.2.
The only thing i see is that checksum is the same for diff boxes so i guess return from server is makes this go wild

--- vagrant/deb12 » vagrant -v
Vagrant 2.4.3
--- vagrant/deb12 » uname -p
arm
--- vagrant/deb12 » sw_vers
ProductName:		macOS
ProductVersion:		14.6.1
BuildVersion:		23G93
--- vagrant/deb12 » vagrant init generic/debian12 --box-version 4.3.12
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
--- vagrant/deb12 » vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'generic/debian12' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: 4.3.12
==> default: Loading metadata for box 'generic/debian12'
    default: URL: https://vagrantcloud.com/api/v2/vagrant/generic/debian12
The box you're attempting to add has no available version that
matches the constraints you requested. Please double-check your
settings. Also verify that if you specified version constraints,
that the provider you wish to use is available for these constraints.

Box: generic/debian12
Address: https://vagrantcloud.com/api/v2/vagrant/generic/debian12
Constraints: 4.3.12
Available versions: 4.3.0, 4.3.2, 4.3.4, 4.3.6, 4.3.8, 4.3.10, 4.3.12

ok delete version

Vagrant.configure("2") do |config|
  config.vm.box = "generic/debian12"
end

--- vagrant/deb12 » nvim Vagrantfile                                                                                                                                 1 ↵
--- vagrant/deb12 » vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'generic/debian12' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'generic/debian12'
    default: URL: https://vagrantcloud.com/api/v2/vagrant/generic/debian12
==> default: Adding box 'generic/debian12' (v4.3.2) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/generic/boxes/debian12/versions/4.3.2/providers/virtualbox/unknown/vagrant.box
    default: Calculating and comparing box checksum...
The checksum of the downloaded box did not match the expected
value. Please verify that you have the proper URL setup and that
you're downloading the proper file.

Expected: 1ceb2df7d031dba95f2d5afc0751e6eb5fd85d9ee5f2dcccadeb436829cc2da5
Received: ff735a9f17075145db8378f5884e35bd98f19a7ac828a1d9157021106a035809

ok, with qemu as provider

--- vagrant/deb12 » vagrant up --provider=qemu
Bringing machine 'default' up with 'qemu' provider...
==> default: Box 'generic/debian12' could not be found. Attempting to find and install...
    default: Box Provider: libvirt
    default: Box Version: >= 0
==> default: Loading metadata for box 'generic/debian12'
    default: URL: https://vagrantcloud.com/api/v2/vagrant/generic/debian12
==> default: Adding box 'generic/debian12' (v4.3.12) for provider: libvirt (arm64)
    default: Downloading: https://vagrantcloud.com/generic/boxes/debian12/versions/4.3.12/providers/libvirt/arm64/vagrant.box
    default: Calculating and comparing box checksum...
The checksum of the downloaded box did not match the expected
value. Please verify that you have the proper URL setup and that
you're downloading the proper file.

Expected: 07379a96502dec102b4eaa7bab1d727ee01084da0fb8f11e64cd421c2743e4c8
Received: ff735a9f17075145db8378f5884e35bd98f19a7ac828a1d9157021106a035809

Debug output

Expected behavior

Actual behavior

Reproduction information

Vagrant version

Host operating system

Guest operating system

Steps to reproduce

Vagrantfile

# Copy-paste your Vagrantfile here. Remove any sensitive information such as passwords, authentication tokens, or email addresses.
@LKHN
Copy link

LKHN commented Jan 10, 2025

@tonypony220 Thanks for the quick report!

I can confirm that we also affected and able to reproduce the reported issue on @AlmaLinux.

Two cents:

  • Vagrant always pulls the same file with ff735a9f17075145db8378f5884e35bd98f19a7ac828a1d9157021106a035809. Which also present on the outputs of the reporter.
  • Somehow the web service of the HPC Vagrant Registry is not affected. It is still posible to download the right box from there. Which begs a question, are Vagrant and registry of website uses the different APIs?
$ vagrant init almalinux/10-kitten
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

$ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
[fog][WARNING] Unrecognized arguments: libvirt_ip_command
==> default: Box 'almalinux/10-kitten' could not be found. Attempting to find and install...
    default: Box Provider: libvirt
    default: Box Version: >= 0
==> default: Loading metadata for box 'almalinux/10-kitten'
    default: URL: https://vagrantcloud.com/api/v2/vagrant/almalinux/10-kitten
==> default: Adding box 'almalinux/10-kitten' (v10.20241227.0) for provider: libvirt (amd64)
    default: Downloading: https://vagrantcloud.com/almalinux/boxes/10-kitten/versions/10.20241227.0/providers/libvirt/amd64/vagrant.box
    default: Calculating and comparing box checksum...
The checksum of the downloaded box did not match the expected
value. Please verify that you have the proper URL setup and that
you're downloading the proper file.

Expected: 6982a8eebe99473bfa5f1eb7e609449bd96d262a4ee39323868b1fd8924b603b
Received: ff735a9f17075145db8378f5884e35bd98f19a7ac828a1d9157021106a035809

@austinvazquez
Copy link

austinvazquez commented Jan 10, 2025

FWIW also seeing the issue on fedora images in containerd CI. Same received hash which is weird to me.
https://github.com/containerd/containerd/actions/runs/12713499899/job/35441677102?pr=11246

@LKHN
Copy link

LKHN commented Jan 10, 2025

@austinvazquez Seems like it is working now.

@tonypony220
Copy link
Author

@LKHN true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants