http/2 PROTOCOL_ERROR when downloading images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vagrant |
New
|
Undecided
|
Unassigned |
Bug Description
A version of vagrant bundled in Ubuntu 22.04 LTS (2.2.19) contains a subtle but critical bug, resulting in inability to download some images. The repro is below.
This bug is described in great details at https:/
Here is the link to the fixing patch (which is a one liner modulo test):
https:/
I believe the fix can be trivially backported.
#### Repro ####
For example, using this Vagrantfile:
```
Vagrant.
config.vm.box = "fedora/
config.
v.memory = 2048
v.cpus = 2
end
config.
v.memory = 2048
v.cpus = 2
end
```
I repeatedly get the following error:
```
....
==> default: Box 'fedora/
default: Box Provider: libvirt
default: Box Version: >= 0
==> default: Loading metadata for box 'fedora/
default: URL: https:/
==> default: Adding box 'fedora/
default: Downloading: https:/
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
```
For the reference, I can't repro this using vagrant 2.3.4 from the hashicorp repo.
More information: https:/