scripts/vagrant: Drop vagrant-cachier

There's almost no benefit coming from it CI-wise since all our VMs are
already fully provisioned. The speed up of nightly jobs, which do run
package updates, is minimal. Overall, it only slowers deployment of the
autotest VMs.

Signed-off-by: Michal Berger <michalx.berger@intel.com>
Change-Id: I68d9530533f0b0d7d2fb72ce82706d6bc0cf2e6e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6637
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Michal Berger 2021-03-02 17:58:00 +01:00 committed by Tomasz Zawadzki
parent 344cc21e69
commit 7ecf76e02e

View File

@ -171,17 +171,6 @@ def setup_ssh(config)
end end
end end
def setup_vagrant_cachier(config, plugins_sync_backend)
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
config.cache.synced_folder_opts = plugins_sync_backend
else
puts 'vagrant-cachier caches apt/yum etc to speed subsequent vagrant up'
puts 'to enable install vagrant-cachier plugin: '
puts 'vagrant plugin install vagrant-cachier'
end
end
def deploy_test_vm(config) def deploy_test_vm(config)
return unless ENV['DEPLOY_TEST_VM'] == "1" return unless ENV['DEPLOY_TEST_VM'] == "1"
return unless ENV['SPDK_DIR'] return unless ENV['SPDK_DIR']
@ -314,10 +303,6 @@ Vagrant.configure(2) do |config|
# rsync artifacts from build # rsync artifacts from build
copy_spdk_artifacts(config, plugins_sync_backend) copy_spdk_artifacts(config, plugins_sync_backend)
# vagrant-cachier caches apt/yum etc to speed subsequent
# vagrant up
setup_vagrant_cachier(config, plugins_sync_backend)
# use http proxy if avaiable # use http proxy if avaiable
setup_proxy(config, distro) setup_proxy(config, distro)