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
Provide steps to re-deploy after restarting Vagrant VM #596
Comments
I try the quickcase following the guide https://github.com/openwhisk/openwhisk |
I run it locally on my laptop |
Hi @lfzCarlosC could you provide more info on your environment to be able to reproduce? I tried today with latest hash I'm using Mac OSX El Capitan
I clean ~/.vagrant.d/ just in case
|
I clean all the things and re-ran the whole steps,This time the behaviour is a little bit different. Hello action work fine the first time when vagrant vm is created , but then if I try to restart vm(via GUI from virtual box) and run hello action , the error happens.I will attach the log info then |
@csantanapr I have run a travis build that does install a vagrant box. It would work in theory, however you need to install virtualbox first which in conjunction with our own build + test flow takes longer than travis allows on the free tier and the build gets killed. I suggest making a build on our Jenkins that does a vagrant up and checks the output. |
@lfzCarlosC Ah I think you are hitting some of the UX, we are seeing and working on fixing. For now don't restart the VM, just suspend it and then up (not resume). you can use vagrant cli, we have that in the [simple/README.md(https://github.com/openwhisk/openwhisk/blob/master/tools/vagrant/simple/README.md)
|
@domdom82 thanks for volunteering 😆
I would prefer to see something externally test this, but I guess for now we will use an internal server, but even with that I will suggest to have all the scripts in open (i.e. |
I don't think you can run vagrant inside an SL VM. Virtualization inside virtualization usually doesn't work. |
relate issue #311 |
But I was considering a real development case.If I developed new updates for action/trigger/rule and test it on local vagrant env, next time these updates are not useful because I am not allowed to restart the vm? Or what is the process of development based on local vagrant env? |
I don't understand the last comment. If you restart the vm you expect the whisk deployment to still be up? |
let us consider a case. If I develop an action A on vagrant vm from my host machine, and then the vm for some reasons dump ,so how should I do to make action A rerun? |
Suspending the machine is like shutting it down. It doesn't take resources. Just suspend , when you start the VM your actions, rules, etc are still available. We also have a custom setup where you can use a persistent remote DB like cloudant or a remote CouchDB Regardless if you restart the VM the whisk system doesn't start automatically, you need to deploy/start the whisk system. |
So, can I use this guide https://developer.ibm.com/open/2016/02/22/openwhisk-a-quick-tech-preview/ if I want to deploy whisk system once I need? |
@csantanapr not entirely true. The system should come back up in general. Ephemeral couch is a different story, however. If you use cloudant or other peristent db it should recover from a reboot. Part of our RAS strategy. |
@csantanapr I clean up my history cache file and re run today. But a different error happens.This is the link |
I'm working on providing instructions on how to re-deploy openwhisk after restarting the Vagrant VM. |
This is fix now instructions in vagrant/README.md |
problem description
For Hello case
./wsk action invoke /whisk.system/samples/echo -p message hello --blocking --result
returns "error: [Errno 111] Connection refused"
steps to reproduce
git clone --depth=1 https://github.com/openwhisk/openwhisk.git
cd openwhisk/tools/vagrant/simple
vagrant up
./wsk action invoke /whisk.system/samples/echo -p message hello --blocking --result
The text was updated successfully, but these errors were encountered: