RETIRED, Fuel orchestrator
Go to file
Alexei Sheplyakov d8545b5365 nailgun-mcagents deb: add missing build dependency
blueprint fuel-bootstrap-on-ubuntu

Change-Id: Ib06adf38833530e6a2d72a1cad961ee49c9c844c
2015-06-25 16:56:32 +03:00
bin Agreed on naming in config file 2015-02-19 15:06:58 +03:00
debian nailgun-mcagents deb: add missing build dependency 2015-06-25 16:56:32 +03:00
docs Replaces sourceless javascript 2015-02-28 00:13:40 +01:00
examples Agreed on naming in config file 2015-02-19 15:06:58 +03:00
lib Merge "Prevent stop deployment fail in case of post-deployments hooks" 2015-06-11 17:40:52 +00:00
mcagents Merge "Adjust wait to allow erase_node to send response" 2015-06-15 14:03:28 +00:00
spec Prevent stop deployment fail in case of post-deployments hooks 2015-06-10 22:23:49 +03:00
specs Bump version to 7.0 2015-06-08 20:56:07 +03:00
.gitignore Allow to provide timeout for snapshot generation 2015-03-12 11:21:11 +02:00
.gitreview Remove trailing empty line from .gitreview 2013-10-05 22:28:06 +04:00
.rspec Create group of facts as one big fact in yaml format 2013-09-30 08:06:50 +04:00
.ruby-version Deployment artifacts management for upgrades: 2014-04-14 19:36:44 +04:00
astute.gemspec Add hooks to workaround patching bugs 2014-09-11 14:08:10 +04:00
Gemfile Update Mcollective client, remove a custom gem source 2014-03-13 12:27:07 +04:00
LICENSE LICENCE added 2014-06-05 00:37:57 +04:00
Rakefile Allow to run only specified spec tests 2015-05-06 09:56:38 +02:00
README.md Granular deployment (basic version) 2014-10-16 15:20:47 +04:00
run_tests.sh Allow to run only specified spec tests 2015-05-06 09:56:38 +02:00

Astute

Astute is orchestrator, which is using data about nodes and deployment settings performs two things:

  • provision
  • deploy

Provision

OS installation on selected nodes.

Provisioning is done using Cobbler. Astute orchestrator collects data about nodes and creates corresponding Cobbler systems using parameters specified in engine section of provision data. After the systems are created, it connects to Cobbler engine and reboots nodes according to the power management parameters of the node.

Deploy

OpenStack installation in the desired configuration on the selected nodes.

Astute uses data about nodes and deployment settings and recalculates parameters needed for deployment. Calculated parameters are passed to the nodes being deployed by use of nailyfact MCollective agent that uploads these attributes to /etc/astute.yaml file of the node. Then puppet parses this file using Facter plugin and uploads these facts into puppet. These facts are used during catalog compilation phase by puppet. Finally catalog is executed and Astute orchestrator passes to the next node in deployment sequence. Fuel Library provides puppet modules for Astute.

Using as library

require 'astute'

class ConsoleReporter
  def report(msg)
    puts msg.inspect
  end
end

reporter = ConsoleReporter.new

orchestrator = Astute::Orchestrator.new(log_parsing=false)

# Add systems to cobbler, reboot and start installation process.
orchestrator.provision(reporter, environment['engine'], environment['nodes'])

# Observation OS installation
orchestrator.watch_provision_progress(reporter, environment['task_uuid'], environment['nodes'])

# Deploy OpenStack
orchestrator.deploy(reporter, environment['task_uuid'], environment['nodes'])

Example of using Astute as library: lib/astute/server/dispatcher.rb

Using as CLI

CLI interface in Astute no longer supported. Please use new Fuel-CLI. More details you can get by link: https://github.com/stackforge/fuel-docs/blob/master/pages/user-guide/cli.rst


License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.