Comments (6)
ctrl+c shouldn't kill the containers. There needs to be a way (probably a signal) to tell to lxd to do a clean shutdown and that'll be used by the init script on host shutdown, but for the common case, lxd exitting during normal operation must keep the containers running so that on crash/failure, it gets respawned and can keep things running.
Remember that the main usage scenario for lxd is a compute node, on those, you don't want your containers to die unless they absolutely have to. For someone experimenting or developing lxd, they will have to stop their containers themselves or if using a distro package, removing the package will also cause a clean shutdown.
So as a conclusion, ctrl+c must be allowed and must have lxd exit immediately without doing anything to the running containers. When restarted, lxd should just pick things were they were left off.
from lxd.
For the record: I disagree that ^C shouldn't kill the containers.
from lxd.
fwiw, typically behavior in app container tools is to associate a restart
policy to the container which determines behavior also for exit of app
container and daemon restarts.
-k
On Wed, Dec 10, 2014 at 10:46 AM, Tycho Andersen [email protected]
wrote:
For the record: I disagree that ^C shouldn't kill the containers.
—
Reply to this email directly or view it on GitHub
lxc/incus#122 (comment).
from lxd.
That policy is per-container or per-daemon? We'd talked about having a daemon-wide option, at least.
from lxd.
Hi, just to be clear, are you running with ppa:ubuntu-lxc/daily? Because the ctrl-c bug should have been fixed not too long ago, when I originally found it while working on the flex attach method.
from lxd.
On Tue, Jan 06, 2015 at 08:12:02AM -0800, hallyn wrote:
Hi, just to be clear, are you running with ppa:ubuntu-lxc/daily? Because the ctrl-c bug should have been fixed not too long ago, when I originally found it while working on the flex attach method.
I've seen this with the trunk at least as of last month when I paused
lxd development. ^C works in some cases, but not others (but whether
or not it worked didn't have anything to do with attach, I didn't
think). Unfortunately I just fiddled around with it and I can't seem
to reproduce it. We can close this for now and I can re-open when I
see the behavior again with steps to reproduce.
Reply to this email directly or view it on GitHub:
lxc/incus#122 (comment)
from lxd.
Related Issues (20)
- Allow `lxc init/launch` of an instance where the source image is in another project
- lxd/lxc cannot write on /tmp/snap-private-tmp/snap.lxd/tmp HOT 4
- Enable optimized backups when using the Ceph RBD driver HOT 1
- Clarify the availability of optimized backups for the storage drivers HOT 2
- Add support for optimized-storage backups with ceph
- Investigate whether image export requests over devlxd should use the instances' project
- OVN load balancer backend health checks
- Desktop image cannot be unlocked HOT 1
- [Bug][6.1] : `lxc config device add <device_name> eth0 none` fails with ws error HOT 10
- "Unable to run feature checks during QEMU initialization: open /tmp/1373261747: no such file or directory" breaks VM use cases HOT 10
- Unable to join LXD Cluster on 6.1 HOT 29
- Support of Backup Management
- Guest has no networking for over five minutes HOT 6
- "Failed to write files: Operation not supported" when running systemd-sysusers inside a container HOT 2
- lxd fails in unpredictable ways when used with an unsupported "future" guest
- Container issues with Ubuntu Oracular systemd version 256-1ubuntu1 HOT 7
- Don't fail when notifiying a server that is shutting down when using NotifyAlive
- snap remove lxd apparently deletes external zfs zpool but the disk is not re-usuable
- Setting preseed through `daemon.preseed` fails on Ubuntu Core HOT 14
- Ambiguous Configuration Edit Methods with YAML Files HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lxd.