hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.33k stars 4.44k forks source link

Cloud search with provider isn't working right #11302

Open bannsec opened 4 years ago

bannsec commented 4 years ago

Vagrant version

Vagrant 2.2.6

Host operating system

Ubuntu Bionic

Guest operating system

Ubuntu Bionic

Vagrantfile

N/A

Debug output

N/A

Expected behavior

When I run "vagrant cloud search --provider hyperv ubuntu" for instance, i would expect the results to be those boxes that support hyperv.

Actual behavior

vagrant cloud search --provider=hyperv ubuntu
| NAME                | VERSION     | DOWNLOADS | PROVIDERS                                          |
+---------------------+-------------+-----------+----------------------------------------------------+
| hashicorp/precise64 | 1.1.0       | 6,764,219 | virtualbox,vmware_fusion,hyperv                    |
| bento/ubuntu-16.04  | 201912.15.0 | 1,777,728 | virtualbox                                         |
| bento/ubuntu-14.04  | 201808.24.0 |   982,369 | hyperv,parallels,vmware_desktop,virtualbox         |
| generic/ubuntu1604  | 2.0.6       |   654,031 | vmware_desktop,virtualbox,parallels,libvirt,hyperv |
| generic/ubuntu1804  | 2.0.6       |   564,825 | vmware_desktop,virtualbox,parallels,libvirt,hyperv |
| generic/ubuntu1810  | 2.0.6       |   216,323 | vmware_desktop,virtualbox,parallels,libvirt,hyperv |
| generic/ubuntu1704  | 2.0.6       |   143,936 | vmware_desktop,virtualbox,parallels,libvirt,hyperv |
| generic/ubuntu1710  | 2.0.6       |   113,518 | vmware_desktop,virtualbox,parallels,libvirt,hyperv |
| bento/ubuntu-18.04  | 201912.14.0 |    96,306 | virtualbox                                         |
| generic/ubuntu1610  | 2.0.6       |    95,200 | vmware_desktop,virtualbox,parallels,libvirt,hyperv |
+---------------------+-------------+-----------+----------------------------------------------------+

Steps to reproduce

  1. Search

References

jbonhag commented 4 years ago

Interesting -- it looks like those boxes are coming back in the search results because they do have a hyperv provider available, but not necessarily for the latest version.

For example, bento/ubuntu-16.04 has a hyperv version here: https://app.vagrantup.com/bento/boxes/ubuntu-16.04/versions/201812.27.0

Thanks for letting us know about the issue!