RETIRED, Fuel orchestrator
Go to file
Vladimir Sharshov a7eac46348 Fix problem with empty stdout/stderr answer for shell magent
Change-Id: I76e2c984bf86aa0df3ec1762df52cb1533ad7665
Closes-Bug: #1322475
2014-05-23 14:05:18 +00:00
bin Move Naily to Astute 2014-03-25 15:20:41 +04:00
docs RC for attributes description 2013-08-03 14:49:44 +04:00
examples New behavior for idealing puppet state 2013-12-17 16:17:18 +04:00
lib Merge "Avoid to report incorrect info about deployment timeout(part 2)" 2014-05-20 13:18:41 +00:00
mcagents Fix problem with empty stdout/stderr answer for shell magent 2014-05-23 14:05:18 +00:00
spec Merge "Avoid to report incorrect info about deployment timeout(part 2)" 2014-05-20 13:18:41 +00:00
.gitignore * add script for jenkins CI (draft version); 2013-09-03 11:06:26 +04: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
Gemfile Update Mcollective client, remove a custom gem source 2014-03-13 12:27:07 +04:00
README.md Move Naily to Astute 2014-03-25 15:20:41 +04:00
Rakefile * add newline to the end of files; 2013-09-03 11:46:08 +04:00
astute.gemspec Support stop provisioning mechanism 2014-04-03 13:59:03 +04:00
run_tests.sh fix cd_workspace (do no really set script directory) 2013-09-09 17:25:31 +04:00

README.md

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

deploy_engine = Astute::DeploymentEngine::NailyFact
orchestrator = Astute::Orchestrator.new(deploy_engine, 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.