adoptium / adoptium/infrastructure

Explore the use of shared Vagrant boxes on infra-ibmcloud-vagrant-*

Open
#1,966 2 comments 0 reactions 0 assignees View on GitHub
enhancement pbTests provider:ibmcloud reliability Vagrant
Dominant language
Python
Stars
96
Forks
106
Avg merge
1d 23h
Merged PRs (30d)
13

Description

Last night, `infra-ibmcloud-vagrant-x64-1"` ran out of space. I have been able to rectify this with removing some vagrant boxes that go unused - however, they are so large, that it makes a lot more sense for them to be shared among all the vagrant users.

Vagrant doesn't inherently offer this: https://github.com/hashicorp/vagrant/issues/8413
But it is suggested that it can be done by having symlinks. Alternatively, setting the `VAGRANT_HOME` variable.

I was able to test the latter - the user `vagrant3` had access to the new Windows 10 vagrant box (ref: #1883 ), however user `vagrant5` didn't. After running `chown -R vagrant5 /home/vagrant3/.vagrant.d`, and `export VAGRANT_HOME=/home/vagrant3/.vagrant.d/`, when running `vagrant box list`, the Win 10 box came up where it didn't before.

While this does work, the `.vagrant.d` file contains more than just the boxes, and so it may have some unintended consequences, especially if we're running VPC in parallel.

(ping @sxa ).

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the infra-ibmcloud-vagrant-* hosts and the behavior described in #1883. Compare sharing boxes through symlinks with setting VAGRANT_HOME to /home/vagrant3/.vagrant.d, including the other contents of .vagrant.d and parallel VPC use; done means selecting and documenting a safe shared-box approach.

Written by the indexing model from the issue text.

Assessment

Domain
infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.