Comments (8)
As a first pass, we can assume flocker is in charge of all geard units, or we can do simple namespacing scheme and only assume we control things prefixed with "flocker-".
Over long term we may want to run more than one application on a cluster, which means we need way to differentiate between different applications' units. So may as well start namespacing now. And this also means you can run e.g. flocker infrastructure with geard for bootstrapping purposes and not have it break, etc..
from flocker.
We probably want to require all units that we don't intend to be running to be deleted, rather than simply stopped. Otherwise e.g. started and then failed units will still be there if we only stop them.
from flocker.
Here's the API for listing geard units:
$ curl http://192.168.200.3:43273/containers
{"Containers":[{"Id":"sshd-1","ActiveState":"failed","SubState":"failed","LoadState":"loaded"}]}
from flocker.
Blocked on #54.
from flocker.
We should probably just not bother with the namespacing idea for the first release.
from flocker.
@exarkun My design proposal:
Simply do the above query, and return Deferred firing with dictionary mapping container name to activation state value. The activation state is useful insofar as it tells you if the container is installed but not running ("inactive"), starting ("activating"), running ("active"), failed ("failed") or stopped (either "failed" or "inactive" apparently). I would like to include the string as is because this is list may not be complete and I'm having a hard time finding docs listing the full list...
from flocker.
This sounds reasonable. It may be worth representing the container as a nice object (characteristic
) with a couple attributes - name and activation state - and use those as values, rather than just a lot of strings. That's probably not much harder and gives us an easy way to expand the state associated with containers later (or give them behavior).
Please go ahead.
from flocker.
In #32 (comment) @itamarst wrote:
I would like to include the string as is because this is list may not be complete and I'm having a hard time finding docs listing the full list...
I think the states come from systemd. Some are documented here:
Units may be "active" (meaning started, bound, plugged in, ..., depending on the unit type, see below), or "inactive" (meaning stopped, unbound, unplugged, ...), as well as in the process of being activated or deactivated, i.e. between the two states (these states are called "activating", "deactivating"). A special "failed" state is available as well, which is very similar to "inactive" and is entered when the service failed in some way (process returned error code on exit, or crashed, or an operation timed out). If this state is entered, the cause will be logged, for later reference. Note that the various unit types may have a number of additional substates, which are mapped to the five generalized unit states described here.
from flocker.
Related Issues (20)
- Can't start flocker-control - CentOS 7 HOT 1
- Error looking up volume plugin flocker: legacy plugin: plugin not found HOT 1
- Flocker tests are failing HOT 1
- How to use flocker with docker swarm mode HOT 1
- pkg_resources.DistributionNotFound: The 'eliot' distribution was not found and is required by Flocker HOT 1
- Linux mint 18.1 Install Flocker Node Service Error
- Error: flocker: plugin not found
- Flocker: Control service is not getting up
- Issue with Cloudformation Template HOT 2
- Cannnot install Flocker node on Centos7 HOT 3
- Download page is not reachable HOT 1
- HTTP Error 404: Not Found for URL https://clusterhq-archive.s3.amazonaws.com/python/Flocker-1.15.0-py2-none-any.whl HOT 2
- The New site need to be Right Url HOT 7
- Flocker Shutdown HOT 1
- flocker apt repo failed on ubuntu16.04 HOT 9
- Regarding kubernete with flocker, Is this mandate to intstall the flocker on kubernetes Nodes or can I install flocker on separate nodes from kubernete and then integrate together
- Unable to access the below URL HOT 1
- Can't install flocker-node on RHEL/CentOS 7
- FYI: referenced issue is fixed
- Flocker abandoned? HOT 11
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 flocker.