Open muddman opened 8 years ago
This is now happening for us on every vagrant up
and every vagrant deploy
. It is very possible that this problem is localized to our environment but after a vagrant up it appears that the agent is kicking off every 5 minutes inside the vm and also on every vagrant provision which locks the run for up to 2 minutes.
We have an extremely ugly temporary fix for anyone else who is experiencing the same issue and we will post if we come up with a real solution to the problem.
ops/kill-opsworks-agent.sh
until ps auxww | grep [o]psworks-agent-updater
do sleep 5
done
ps auxww | grep [o]psworks-agent-updater | awk '{print $2}' | sudo xargs kill -9 &
Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu1404-opsworks"
config.vm.provision :shell, path: "ops/kill-opsworks-agent.sh"
config.vm.provision "opsworks", type:"shell", args:"path/to/dna.json"
end
We had to fix the timeout issues like this https://github.com/Vreasy/opsworks-vm/pull/2
I am experiencing the same, consistently. The hack provided by @muddman seems to do the trick.
Thanks so much for making opsworks-vm available -- we love it!!
This probably isn't a bug with opsworks-vm but it is behavior I only see when using opsworks-vm so I thought I'd post it. Feel free to close it if you don't think it is appropriate to open here.
Most of the time during a vagrant up/provision we have a delay of 60-110 seconds right as the opsworks-agent is starting. The log shows 6-11 "sleep 10 sec" messages (see below). We have tracked it down to the
/opt/aws/opsworks/current/bin/opsworks-agent-updater
process which is kicked off at the beginning of each run. If we have a vagrant ssh up and manually kill the opsworks-agent-updater process then the run is not delayed.Has anyone seen this or know what we can do to keep it from happening?
Here is the log with the sleeps that happen during a vagrant up/provision:
Here are the processes we see running if we have a vagrant ssh up during the run:
If we manually ssh in and
kill -9 6419
then everything continues without delay.