-
Notifications
You must be signed in to change notification settings - Fork 214
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
Restarting faasd leaves containers #44
Comments
@carlosedp please could you take a look? |
I can explore this further so I will assign myself |
Derek assign: me |
The containers shouldn't stay but the IP allocation is kept on the filesystem. I think it would be a good thing to move this directory to What do you think @alexellis? |
This does not happen here, as can be seen below, first I curl directly to the gateway IP address (.10) and list the containerd tasks. Gateway has the PID 5736. Then I restart faasd and the gateway container has other PID (6664). Also it has a new IP address (.15). Curl to it on a deployed function returns as well. Also there are no duplicate containers.
|
Also I can't deploy the same figlet function twice:
I believe a function with or without labels should be unique by it's name. |
Thanks for looking at this @carlosedp I have also tried to replicate and it seems like the problem did not persist. I only deployed the same function with two different set of labels this time though and restarted the I will close this I think what I have noticed was related with me recompiling the binary or some very corner case. |
While working on:
#40
I had to restart the
faasd
along with thefaasd-provider
service to to load the new faasd binary with the changes. With every restart the IP address of the gateway moved up with some value like:http://10.62.1.151:8080
http://10.62.1.161:8080
http://10.62.1.171:8080
It seems like with every restart the containers left on the file system. When hitting the endpoint it load balanced between three
figlet
containers. Not sure if restarting the service should stop/delete the containers.Expected Behaviour
Restarting the services should delete all containers.
Current Behaviour
Restarting the services leaves containers.
Possible Solution
I might be restarting something wrong I would need more time to research this but I am opening directly and Issue for the record. If this is not a problem (I am restarting the services the wrong way with
systemctl restart faasd && systemctl restart faasd-provider
) it might be worth documenting how to properly restart thefaasd
andfaasd-provider
services.Steps to Reproduce (for bugs)
faasd
faasd-provider
figlet
with no labelsfaasd
faasd-provider
(systemctl)figlet
with labels/system/functions
and see how figlet with labels and figlet with null labels appear like:Also if you delete function from the UI and reload couple of time the deleted function might show again, due to the backend showing actually container which was spawn before restarting the faasd service.
Context
While working on #40 feature I was confused why it didn't work, but the problem is that the backend was just showing random
figlet
containers. Had to reload/system/functions
couple of times by mistake in order to see that actually I was able to apply the label.Your Environment
Ubuntu 18.04
The text was updated successfully, but these errors were encountered: