-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vagrant resume runs provisioners #6787
Comments
I have the same issue, with the same version for Vagrant and vbox, and a Vagrant file generated with puphpet. What is worst is that some changes on disk are not persisted (like changing .bashrc), possibly due to the reprovision. |
I'm seeing this as well with v1.8.1 |
This is due to issue hashicorp/vagrant#6787
Same problem with Vagrant 1.8.1: |
Doesn't fix the core issue, but after |
This has happened to me on two different VMs now when resuming with 1.8.1. |
Here it is also going the same problem.
|
the same problem .
I have to vagrant halt first and then go to vritualbox , restore the snapshot , then vagrant up. |
Confirm the problem vagrant resume runs provision. |
Same problem here, this is the workaround to resume and skip provision:
|
Use newer release of Photon plugin Workaround 'vagrant resume' bug outlined here hashicorp/vagrant#6787 Change-Id: Ia094b578c440b9e659ea3345a2ab6d9cad7a8472
The sentinal file was always being ignored when running the resume command. This is fixed along with allowing provision options to be used with resume. Fixes hashicorp#6787
Any progress on this since we generated the inifite loop with #7133 ? |
Same here. A coworker was wonderung why I complained about resume running a provisioner. It turned out he was running a 1.7.x. We agreed that he shouldn't upgrade until this issue is fixed. |
is there an ETA on when this will be solved? |
Apparently the Vagrant was abandoned by @hashicorp 😢 |
Vagrant has not been abandoned. We are a very small team and have not had the opportunity to test these new changes yet. Sorry! |
Thanks guys for all your hard work. Vagrant is a hugely useful tool. @sethvargo |
Oh my! It seems I have been bitten by this bug, and damn it's a pain in the... The documentation specifically says that resume does NOT run provisioners. From https://www.vagrantup.com/docs/cli/resume.html :
Also vagrant up was changed at some point (when I began using vagrant a couple years ago to require --run-provisioners to run provisioners. Before that, vagrant resume had to be used to resume a suspended vm without provisioning.) As this is a destructive bug (I just lost a fine working development environment for a project), I hope this bug will get some attention, I am using 1.8.1, and now I see this issue has been closed, so I will upgrade and see if it remains a problem. Anyway, Ubuntu seems to still provide version 1.8.1, so it may be helpful to edit the docs to warn unsuspecting people of the potential destructiveness of resume in some versions. /Lasse, still feeling kicked in the guts and ass simultaneously |
I am experiencing this issue with 1.8.1. (because i did just 'apt-get install vagrant' ...) update : forgot about https://releases.hashicorp.com/vagrant/ |
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. |
Hi,
Im experiencing what seems to be a bug:
I run
vagrant up
and it boots and provisions the box properly, using my customized box which already has most of my required packages installed.I run
vagrant suspend
and it suspends the box properly.I run
vagrant resume
and it resumes the box BUT it also starts running the provisioners.Is this a bug or am I doing something wrong?
Any hint as to why this might be happening?
Using:
Vagrant 1.8.1
vbox 5.0.12r104815
This is my vagrantfile:
The text was updated successfully, but these errors were encountered: