riotgamesminions / motherbrain Goto Github PK
View Code? Open in Web Editor NEWAn orchestrator for Chef
License: Other
An orchestrator for Chef
License: Other
We need a way to specify an after chef run hook that will allow us to set attributes, etc.
I would prefer to have all components listed together.
Currently:
$ mb first_app
Tasks:
mb first_app a_server [COMMAND] # a server
mb first_app help [COMMAND] # Describe subcommands or one specific subcommand
mb first_app nodes ENVIRONMENT # List all nodes grouped by Component and Group
mb first_app version # Display plugin version
mb first_app z_server [COMMAND] # z server
Preferred:
$ mb first_app
Tasks:
mb first_app help [COMMAND] # Describe subcommands or one specific subcommand
mb first_app nodes ENVIRONMENT # List all nodes grouped by Component and Group
mb first_app version # Display plugin version
Components:
mb first_app a_server [COMMAND] # a server
mb first_app z_server [COMMAND] # z server
Sometime in the past 2 days or so, a change has caused my bootstrap of 2 nodes to happen sequentially instead of concurrently
We should by default run our tests using MRI so we have guard, spork, and the other tools in the usual testing environment for our gems.
To achieve this we should add an instance function to the Plugin class that returns what "platforms" it can be run on. This function will currently only check if a JMX action is being taken place. If this is the case then the supported platforms would only include JRuby and not MRI.
We should then raise early if something is invoked within an unsupported environment. For example: trying to invoke a command on a plugin which leverages JMX but running on MRI would cause a failure.
The specs for the JMX action should only run when the current platform is JRuby.
We should ensure that we test MotherBrain on Travis or another CI with multiple paltforms including MRI and JRuby.
When I tried to bootstrap a node that hasn't checked into the chef server yet it failed because it doesn't have embedded ruby on it.
https://gh.riotgames.com/gist/647
Require Chef/Ruby to be installed by omnibus on all nodes that bootstrap is attempted to be run on. This does not include nodes which we provisioned with motherbrain since environment factory installs Chef/Ruby with omnibus for us before handing the node back.
Update the bootstrapper to properly inspect the state of the node. If Chef/Ruby are not installed in the locations we expect then we need to perform an omnibus installation.
At the end of a Chef Client run the node should send it's results to a Log Server for archival purposes.
A Job ID will be necessary to associate the generated log with a Job. This could possibly be achieved by passing setting a value for an attribute containing the ID of the currently executing Job with chef-client's -j
flag.
bash# chef-client -j '{ "motherbrain": { "current_job": "SOME_ID" } }'
The handler should clear the currently temporary attribute after a successful report if possible.
dependent on #150
/Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/1.9.1/thread.rb:71:in `sleep': deadlock detected (fatal)
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/1.9.1/thread.rb:71:in `wait'
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/celluloid-0.12.4/lib/celluloid/mailbox.rb:66:in `receive'
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/celluloid-0.12.4/lib/celluloid/actor.rb:73:in `block in call'
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/celluloid-0.12.4/lib/celluloid/actor.rb:72:in `loop'
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/celluloid-0.12.4/lib/celluloid/actor.rb:72:in `call'
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/celluloid-0.12.4/lib/celluloid/proxies/actor_proxy.rb:102:in `method_missing'
from /Users/michael.ivey/Code/motherbrain/lib/mb/locks.rb:40:in `chef_synchronize'
from /Users/michael.ivey/Code/motherbrain/lib/mb/command.rb:46:in `invoke'
from (eval):2:in `block in define_command'
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor.rb:275:in `dispatch'
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:109:in `invoke'
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor.rb:213:in `block in subcommand'
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor.rb:275:in `dispatch'
from /Users/michael.ivey/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/base.rb:425:in `start'
from /Users/michael.ivey/Code/motherbrain/lib/mb/invoker.rb:16:in `start'
from bin/mb:6:in `<main>'
We need the ability to execute actions in a serial fashion, one server at a time, for rolling restarts, etc.
e.g.
on("some_group", :serially) do
jmx "do some jmx"
jmx "do some more jmx"
command("restart").invoke
end
cluster_bootstrap do
# including another one
routine("activemq")
# our standard bootstrap routine
bootstrap("pvpnet::default")
end
rapier:plugins jkiehl$ mb first_app web_server nodes _default
Nodes for 'web_server' in '_default':
/Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/motherbrain-0.0.1/lib/mb/component.rb:86:in `nodes': wrong number of arguments (1 for 0) (ArgumentError)
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/motherbrain-0.0.1/lib/mb/component_invoker.rb:32:in `block (2 levels) in fabricate'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor.rb:275:in `dispatch'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:109:in `invoke'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor.rb:213:in `block in subcommand'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor.rb:275:in `dispatch'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:109:in `invoke'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor.rb:213:in `block in subcommand'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor.rb:275:in `dispatch'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/base.rb:425:in `start'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/motherbrain-0.0.1/lib/mb/invoker.rb:15:in `start'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/motherbrain-0.0.1/bin/mb:6:in `<top (required)>'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/bin/mb:23:in `load'
from /Users/jkiehl/.rbenv/versions/1.9.3-p286/bin/mb:23:in `<main>'
Git bisect says introduced with 4cdfb5a
Will try to get to it today
Clone of #155
When upgrading in the upgrade/worker.rb, we'll need to do a recursive merge on the override or default attributes we want to set. Otherwise the results could be unexpected.
For example, in bacon's orchestrator we do this:
https://gh.riotgames.com/bacon/bacon-orchestrator/blob/master/lib/chef_util.rb#L188
I attempted to provision with the following manifest:
{
"chat::databases": 1,
"chat::services": 2
}
The provision failed but it did not say why.
Logs:
# Logfile created on 2013-01-04 14:52:33 -0800 by logger.rb/31641
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fssis0] INFO: MotherBrain starting...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fsuq80] INFO: Config Manager starting...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fxcty4] INFO: Plugin Manager starting...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2frbwuc] INFO: Provision Manager starting...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fzuf70] INFO: Bootstrap Manager starting...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fqjd18] INFO: Node Querier starting...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2g0sol8] INFO: Lock Manager starting...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fslmxs] INFO: Ridley starting...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fskz18] DEBUG: job (577cb547-9d92-4954-8bec-000000000000) transitioning to 'failure'
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fpt9zo] DEBUG: Terminating 16 actors...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fssis0] INFO: MotherBrain stopping...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fsuq80] INFO: Config Manager stopping...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fxcty4] INFO: Plugin Manager stopping...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2frbwuc] INFO: Provision Manager stopping...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fqjd18] INFO: Node Querier stopping...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fzuf70] INFO: Bootstrap Manager stopping...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2g0sol8] INFO: Lock Manager stopping...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fslmxs] INFO: Ridley stopping...
[2013-01-04T22:52:33Z] PID[89039] TID[ow2fpt9zo] DEBUG: Shutdown completed cleanly
It looks like it might be a problem with Ridley. Environment.find! is returning an environment with no values.
A token based authentication system will need to be created to protect the MotherBrain REST API. Let's start simple by only having one 'super user' and a token for it. A more complete users system can be added at a later date.
The NodeQuerier and any Bootstrap specific commands from Ridley assume the target node is running Linux. We need to add Windows support to these portions of MotherBrain.
This should be accomplished by extending the NodeQuerier and Bootstrap steps to identify if the target host is a Windows machine and using WinRM / Batch instead of SSH / Bash.
We should not encourage people to name their plugin files differently than what is contained inside the plugin file.
pvpnet.rb
should contain name "pvpnet"
.
chat needs to be able to sleep 10 seconds of time in between the start of each chat service
command "start" do
description "start ejabberd"
execute do
on("services", max_concurrent: 1) do
service("ejabberd").run("start")
# TODO (jhowarth): sleep 10
end
end
end
If I write my MB cluster_bootstrap
block to bootstrap certain groups, I can end up with a block that duplicates work in some environments, or doesn't work at all in others.
For example,
cluster_bootstrap do
bootstrap("activemq")
# bootstrap other things that require activemq
end
In a production world, maybe I don't need to bootstrap activemq because that node is already in my environment. In a "self-contained" environment, I need to bootstrap that node or else some other bootstrap later may fail.
Is there a current way to achieve this functionality?
Could we implement something like:
cluster_bootstrap do
development do
bootstrap("activemq")
end
# bootstrap other things that require activemq
end
And call it with a command like:
mb my_plugin bootstrap ENVIRONMENT bootstrap.json --development
The development flag sets the block to be run.
During the bootstrap process we should be able to provide a hash of environment attributes to be set on the environment being bootstrapped
I ran the following command to attempt and spin up a couple nodes with some recipes for bacon. This env does not represent a full bacon environment, but I just wanted to see if it would spin nodes up and apply the given recipes.
I ran the following and the command just hung:
bundle exec bin/mb bacon provision BA1 test-env.json -d -v -L ./mb.log
My bacon plugin looks like: https://gh.riotgames.com/gist/614
My test-env.json manifest is: https://gh.riotgames.com/gist/619
The output to mb.log is:
[2013-01-04T21:12:49Z] PID[49401] TID[zvthto] INFO: MotherBrain starting...
[2013-01-04T21:12:49Z] PID[49401] TID[zvu2aw] INFO: Config Manager starting...
[2013-01-04T21:12:49Z] PID[49401] TID[znul2o] INFO: Plugin Manager starting...
[2013-01-04T21:12:49Z] PID[49401] TID[zvnctk] INFO: Provision Manager starting...
[2013-01-04T21:12:49Z] PID[49401] TID[zvp2lg] INFO: Bootstrap Manager starting...
[2013-01-04T21:12:49Z] PID[49401] TID[zo62bc] INFO: Node Querier starting...
[2013-01-04T21:12:49Z] PID[49401] TID[ztdzvw] INFO: Lock Manager starting...
[2013-01-04T21:12:50Z] PID[49401] TID[zomyk0] INFO: Ridley starting...
[2013-01-04T21:12:50Z] PID[49401] TID[zvnctk] ERROR: MotherBrain::Provisioner::Manager crashed!
Celluloid::FiberStackError: stack level too deep (please see https://github.com/celluloid/celluloid/wiki/Fiber-stack-errors)
/Users/deilering/.rvm/gems/ruby-1.9.3-p286/gems/celluloid-0.12.4/lib/celluloid/tasks/task_fiber.rb:49:in `rescue in resume'
/Users/deilering/.rvm/gems/ruby-1.9.3-p286/gems/celluloid-0.12.4/lib/celluloid/tasks/task_fiber.rb:46:in `resume'
/Users/deilering/.rvm/gems/ruby-1.9.3-p286/gems/celluloid-0.12.4/lib/celluloid/responses.rb:11:in `dispatch'
/Users/deilering/.rvm/gems/ruby-1.9.3-p286/gems/celluloid-0.12.4/lib/celluloid/actor.rb:329:in `handle_message'
/Users/deilering/.rvm/gems/ruby-1.9.3-p286/gems/celluloid-0.12.4/lib/celluloid/actor.rb:196:in `run'
/Users/deilering/.rvm/gems/ruby-1.9.3-p286/gems/celluloid-0.12.4/lib/celluloid/actor.rb:184:in `block in initialize'
/Users/deilering/.rvm/gems/ruby-1.9.3-p286/gems/celluloid-0.12.4/lib/celluloid/thread_handle.rb:17:in `block in initialize'
/Users/deilering/.rvm/gems/ruby-1.9.3-p286/gems/celluloid-0.12.4/lib/celluloid/internal_pool.rb:48:in `call'
/Users/deilering/.rvm/gems/ruby-1.9.3-p286/gems/celluloid-0.12.4/lib/celluloid/internal_pool.rb:48:in `block in create'
[2013-01-04T21:12:50Z] PID[49401] TID[zl7ux4] DEBUG: Terminating 15 actors...
[2013-01-04T21:12:50Z] PID[49401] TID[zvnctk] INFO: Provision Manager stopping...
[2013-01-04T21:12:50Z] PID[49401] TID[zvu2aw] INFO: Config Manager stopping...
[2013-01-04T21:12:50Z] PID[49401] TID[znul2o] INFO: Plugin Manager stopping...
[2013-01-04T21:12:50Z] PID[49401] TID[zvthto] ERROR: MotherBrain::Application crashed!
RuntimeError: a group member went missing. This shouldn't be!
/Users/deilering/.rvm/gems/ruby-1.9.3-p286/gems/celluloid-0.12.4/lib/celluloid/supervision_group.rb:99:in `restart_actor'
/Users/deilering/.rvm/gems/ruby-1.9.3-p286/gems/celluloid-0.12.4/lib/celluloid/actor.rb:355:in `handle_exit_event'
/Users/deilering/.rvm/gems/ruby-1.9.3-p286/gems/celluloid-0.12.4/lib/celluloid/actor.rb:340:in `block in handle_system_event'
/Users/deilering/.rvm/gems/ruby-1.9.3-p286/gems/celluloid-0.12.4/lib/celluloid/tasks/task_fiber.rb:24:in `block in initialize'
[2013-01-04T21:12:50Z] PID[49401] TID[zvp2lg] INFO: Bootstrap Manager stopping...
[2013-01-04T21:12:50Z] PID[49401] TID[zo62bc] INFO: Node Querier stopping...
[2013-01-04T21:12:50Z] PID[49401] TID[zvthto] INFO: MotherBrain stopping...
[2013-01-04T21:12:50Z] PID[49401] TID[ztdzvw] INFO: Lock Manager stopping...
[2013-01-04T21:12:50Z] PID[49401] TID[zomyk0] INFO: Ridley stopping...
[2013-01-04T21:12:56Z] PID[49401] TID[zl7ux4] INFO: Shutting down...
I had to ctrl-c the command line command.
A general purpose actor (manager/server) for receiving and storing logs. These logs should be able to be downloaded at a later date.
This actor can used for:
Jobs will need to have a log, or potentially many logs, associated with them for retrieval by the end user
resolves:
Create a cookbook to deploy motherbrain
You should get a "version is required" message instead.
plugin invoker specs are failing after merge of a6be4dc
In the 80% case, it seems like most commands will be running actions (with the same name as the command, most likely) on a set of services, or invoking the same named command on several components.
I'd like to propose an alternate shorthand syntax for those execute blocks:
command "start"
service "database", :start
component "widgets", :start
component "flanges", :start
end
command "start", :services => "database", :components => "widgets,flanges"
The cluster bootstrap process should accept and create or update data bags to be generated during the bootstrap process
running bin/mb
with the -d
or -v
flags should redirect log output to STDOUT instead of the default logfile.
If I have:
{
...
"ssh_keys": ["/path/to/my.key.private"]
}
And I've deleted that file, I get:
[2012-12-07T20:12:58Z] PID[21697] TID[ouwkfndik] ERROR: Net::SSH::AuthenticationFailed: root
Should probably get a FileNotFound error.
We need a JMX gear to be able to make JMX calls.
I had a mistaken require in a plugin file in ~/.mb/plugins. Mb should catch the error and print something friendly rather than a cannot load such file
stack trace.
The JobManager stores a registry of all active Jobs and a JobRecord for each.
Simplicity is key with this feature. Let's not use MySQL or PostgreSQL if we don't need to. Remember that MotherBrain will be distributed and there will only be one JobManager. This means a SQLite database to disk may be sufficient.
Keep JRuby support in mind.
[2013-01-16T20:47:17Z] PID[55307] TID[ouzl2xzpk] INFO: Locking chef_environment:vagrant
[2013-01-16T20:47:18Z] PID[55307] TID[ouzl2nttw] ERROR: Ridley::Connection crashed!
Ridley::Errors::HTTPNotFound: errors: 'Cannot load data bag item chef_environment-vagrant for data bag _motherbrain_locks_'
/Users/Justin/.gem/ruby/1.9.3/bundler/gems/ridley-c1d5564a090a/lib/ridley/middleware/chef_response.rb:23:in `on_complete'
/Users/Justin/.gem/ruby/1.9.3/gems/faraday-0.8.4/lib/faraday/response.rb:9:in `block in call'
/Users/Justin/.gem/ruby/1.9.3/gems/faraday-0.8.4/lib/faraday/response.rb:63:in `on_complete'
/Users/Justin/.gem/ruby/1.9.3/gems/faraday-0.8.4/lib/faraday/response.rb:8:in `call'
/Users/Justin/.gem/ruby/1.9.3/bundler/gems/ridley-c1d5564a090a/lib/ridley/middleware/chef_auth.rb:34:in `call'
/Users/Justin/.gem/ruby/1.9.3/gems/faraday-0.8.4/lib/faraday/connection.rb:226:in `run_request'
/Users/Justin/.gem/ruby/1.9.3/gems/faraday-0.8.4/lib/faraday/connection.rb:87:in `get'
/Users/Justin/.gem/ruby/1.9.3/gems/celluloid-0.12.4/lib/celluloid/calls.rb:23:in `public_send'
/Users/Justin/.gem/ruby/1.9.3/gems/celluloid-0.12.4/lib/celluloid/calls.rb:23:in `dispatch'
/Users/Justin/.gem/ruby/1.9.3/gems/celluloid-0.12.4/lib/celluloid/actor.rb:327:in `block in handle_message'
/Users/Justin/.gem/ruby/1.9.3/gems/celluloid-0.12.4/lib/celluloid/tasks/task_fiber.rb:24:in `block in initialize'
When I provision some nodes with EF, Motherbrain fails and says no nodes were provisioned, but if I go to EF the provision is still in progress. The provision doesn't actually fail.
# Logfile created on 2013-01-08 15:42:36 -0800 by logger.rb/31641
[2013-01-08T23:42:36Z] PID[86861] TID[ow0ttzokc] INFO: MotherBrain starting...
[2013-01-08T23:42:36Z] PID[86861] TID[ow0tsr4l0] INFO: Config Manager starting...
[2013-01-08T23:42:36Z] PID[86861] TID[ow0u2tfdk] INFO: Plugin Manager starting...
[2013-01-08T23:42:36Z] PID[86861] TID[ow0tz5z50] INFO: Provision Manager starting...
[2013-01-08T23:42:36Z] PID[86861] TID[ow0tu00ms] INFO: Bootstrap Manager starting...
[2013-01-08T23:42:36Z] PID[86861] TID[ow0tu1nn8] INFO: Node Querier starting...
[2013-01-08T23:42:36Z] PID[86861] TID[ow0txk4ps] INFO: Lock Manager starting...
[2013-01-08T23:42:36Z] PID[86861] TID[ow0tu9x80] INFO: Ridley starting...
[2013-01-08T23:42:37Z] PID[86861] TID[ow0tu1wxo] FATAL: an error occured: Expected '3' nodes to be provisioned but got: '0'
[2013-01-08T23:42:37Z] PID[86861] TID[ow0tsqd44] FATAL: Job (45d59f10-8686-4586-8c4f-000000000000) failure: Expected '3' nodes to be provisioned but got: '0'
[2013-01-08T23:42:37Z] PID[86861] TID[ow0ttzokc] INFO: MotherBrain stopping...
[2013-01-08T23:42:37Z] PID[86861] TID[ow0tsr4l0] INFO: Config Manager stopping...
[2013-01-08T23:42:37Z] PID[86861] TID[ow0u2tfdk] INFO: Plugin Manager stopping...
[2013-01-08T23:42:37Z] PID[86861] TID[ow0tz5z50] INFO: Provision Manager stopping...
[2013-01-08T23:42:37Z] PID[86861] TID[ow0tu00ms] INFO: Bootstrap Manager stopping...
[2013-01-08T23:42:37Z] PID[86861] TID[ow0tu1nn8] INFO: Node Querier stopping...
[2013-01-08T23:42:37Z] PID[86861] TID[ow0txk4ps] INFO: Lock Manager stopping...
[2013-01-08T23:42:37Z] PID[86861] TID[ow0tu9x80] INFO: Ridley stopping...
We need a way to depend on another plugin. Dependencies should automatically be "required" in.
name "pvpnet"
require_plugin "activemq", "= 2.0.0"
This will be used to deploy motherbrain to a cluster using the motherbrain cookbook from #137 to deploy and command and control a motherbrain cluster
$ mb first_app web_server
Tasks:
mb web_server help [COMMAND] # Describe subcommands or one specific subcommand
mb web_server nodes ENVIRONMENT # List all nodes grouped by Group
Note the lack of first_app
in the command
chef.api_url = :chef_server_url
chef.apl_client = :node_name
chef.api_key = :client_key
chef.validator_client = :validation_client_name
chef.validator_path = :validation_key
And maybe:
log.level = :log_level
log.locaiton = :log_location
a new Job should not be created if a provision is executed with :skip_bootstrap
set to false (the default).
A new orphan Job is created for the Boostrap process but never used or updated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.