vagrant-disksize plugin doesn't trigger in 2.2.13

Created on 10 Nov 2020  ยท  9Comments  ยท  Source: hashicorp/vagrant

We use vagrant-disksize plugin to automatically resize the main disk on provision. This has been working fine up until we upgraded to 2.2.12. In 2.2.12 it seems it doesn't even try to call the vagrant-disksize plugin. By downgrading to 2.2.10 it is once again running.

bug confirmed core regression

Most helpful comment

@fnordfish Yes, the fix is going to be included in 2.2.14 which we are looking to get shipped very shortly.

All 9 comments

Seeing the same issue with vagrant-certificates plugin.

Thought it was just me.

2.2.10:

Vagrant 2.2.10
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/bionic64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/bionic64' version '20200922.0.0' is up to date...
==> default: Setting the name of the VM: ############
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 3306 (guest) => 3306 (host) (adapter 1)
    default: 5000 (guest) => 5000 (host) (adapter 1)
    default: 5001 (guest) => 5001 (host) (adapter 1)
    default: 5002 (guest) => 5002 (host) (adapter 1)
    default: 6000 (guest) => 6000 (host) (adapter 1)
    default: 6001 (guest) => 6001 (host) (adapter 1)
    default: 6002 (guest) => 6002 (host) (adapter 1)
    default: 8002 (guest) => 8002 (host) (adapter 1)
    default: 8443 (guest) => 8443 (host) (adapter 1)
    default: 9000 (guest) => 9000 (host) (adapter 1)
    default: 9001 (guest) => 9001 (host) (adapter 1)
    default: 9002 (guest) => 9002 (host) (adapter 1)
    default: 27017 (guest) => 27017 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Resized disk: old 10240 MB, req 51200 MB, new 51200 MB
==> default: You may need to resize the filesystem from within the guest.
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
...

2.2.12:

$ vagrant --version
Vagrant 2.2.13
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/bionic64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/bionic64' version '20201109.0.0' is up to date...
==> default: Setting the name of the VM: #######
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 3306 (guest) => 3306 (host) (adapter 1)
    default: 5000 (guest) => 5000 (host) (adapter 1)
    default: 5001 (guest) => 5001 (host) (adapter 1)
    default: 5002 (guest) => 5002 (host) (adapter 1)
    default: 6000 (guest) => 6000 (host) (adapter 1)
    default: 6001 (guest) => 6001 (host) (adapter 1)
    default: 6002 (guest) => 6002 (host) (adapter 1)
    default: 8002 (guest) => 8002 (host) (adapter 1)
    default: 8443 (guest) => 8443 (host) (adapter 1)
    default: 9000 (guest) => 9000 (host) (adapter 1)
    default: 9001 (guest) => 9001 (host) (adapter 1)
    default: 9002 (guest) => 9002 (host) (adapter 1)
    default: 27017 (guest) => 27017 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
...

Same issue with vagrant-bindfs plugin. Plugin configuration class is loaded and methods can be used in Vagrantfile but no real action is triggered.

Vagrant 2.2.10 works fine but all releases since seem to be broken.

Test packages with fix applied: https://github.com/hashicorp/vagrant-installers/releases/tag/v2.2.14.dev%2B157db399

Works perfectly :+1:
Thanks!

@chrisroberts 157db399 seems to fix vagrant-vbguest as well. Is this probably going to be included in 2.2.14? If so, I might ship a vagrant-vbguest upgrade using a different hook for 2.2.11..2.2.13.

I can confirm this fixes the same issue with vagrant-hostmanager as well.

@fnordfish Yes, the fix is going to be included in 2.2.14 which we are looking to get shipped very shortly.

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings