RETIRED, Fuel orchestrator
Go to file
Vladmir Sharhsov(warpc) 1014d7602d * rescue StandartError instead of Exception;
* small refactoring reboot_events private method.
2013-09-19 10:01:19 +04:00
bin * refactoring (rename 'fast_provision' to 'provision', 'provision' to 'watch_provision_progress' and more) 2013-09-16 15:31:55 +04:00
docs RC for attributes description 2013-08-03 14:49:44 +04:00
examples Adopt YAML validation to new node roles field instead of role. 2013-09-09 10:49:48 +04:00
lib * rescue StandartError instead of Exception; 2013-09-19 10:01:19 +04:00
mcagents Merge pull request #70 from warpc/ssh_keys 2013-09-11 06:29:52 -07:00
spec * refactoring (rename 'fast_provision' to 'provision', 'provision' to 'watch_provision_progress' and more) 2013-09-16 15:31:55 +04:00
.gitignore * add script for jenkins CI (draft version); 2013-09-03 11:06:26 +04:00
.rspec Add .rspec file with configurations for rspec 2013-05-07 16:47:11 +04:00
.ruby-version * add newline to the end of files; 2013-09-03 11:46:08 +04:00
astute.gemspec Merge pull request #61 from warpc/deduplication_yaml 2013-09-09 03:02:04 -07:00
Gemfile Change ruby gems source for mcollective-client 2013-09-04 09:03:31 +04:00
module.mk import changes 2013-04-12 12:25:44 +04:00
Rakefile * add newline to the end of files; 2013-09-03 11:46:08 +04:00
README.md Update README.md 2013-08-13 16:47:38 +04:00
run_tests.sh fix cd_workspace (do no really set script directory) 2013-09-09 17:25:31 +04:00
setup-env.sh fix paths 2013-04-23 13:35:57 +04: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/naily.facts 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 master. 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.fast_provision(reporter, environment['engine'], environment['nodes'])

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

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

More information about expected content of environment you can find here: http://docs.mirantis.com/fuel/3.1/installation-fuel-cli.html#yaml-high-level-structure

Simple example of using Astute as library: https://github.com/Mirantis/astute/blob/master/bin/astute

Using as CLI

Provision:

astute -f simple.yaml -c provision

Deploy:

astute -f simple.yaml -c deploy

More information about content of simple.yaml you can find here: http://docs.mirantis.com/fuel/3.1/installation-fuel-cli.html#yaml-high-level-structure

Additional materials

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.