Skip to content

andymcc/opencenter-install-scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opencenter Cluster Install

This will setup a cluster containing an Opencenter Server, 2 Opencenter Clients and an Opencenter Dashboard server. You can use the individual scripts to install the components on servers rather than creating the whole cluster.

Installing Opencenter Cluster

./opencenter-cluster.sh <Cluster-Name> <Number of Clients> [--packages] [--network(=<CIDR>)]
  • Number of Clients defaults to 2 if left unspecified
  • If you are using opencenter-client locally you can set your endpoint: export OPENCENTER_ENDPOINT=http://:8080
  • --packages will install from packages instead of github repos, not for Dev work.
  • To use CentOS - export IMAGE_TYPE="CentOS 6.3"
  • --network will create a private network for the cluster defaulting to 192.168.0.0/24
  • network range can be specified as a CIDR by using --network=
  • --network will require nova with "network-create" functionality

Prerequisities

Installing individual servers

curl -L "https://bcd46edb6e5fd45555c0-409026321750f2e680f86e05ff37dd6d.ssl.cf1.rackcdn.com/install.sh" | bash -s [server | agent | dashboard] <SERVER IP>
Defaults to "agent" 0.0.0.0
  • NB This doesn't have the same pre-requisites Wiping the Cluster

./utils/wipe.sh <Cluster-Name>

This will remove all cloud servers in the cluster and delete the specific logs in /tmp

Pushing updates to the Cluster

From within "opencenter", "opencenter-agent", "opencenter-client", "opencenter-dashboard" directories on your local laptop/desktop you can push updates and have the services restart automaticallyL

./utils/push.sh <Cluster-Name> <repo> <repo path>
<repo> defaults to "opencenter-all" which will include opencenter/opencenter-agent/opencenter-client
<repo> possible options: [opencenter-all | opencenter | opencenter-client | opencenter-agent | opencenter-dashboard]
<repo path> can be left blank if you are within one of the directories, otherwise specify the path

Tailing Task Logs on Opencenter servers:

This should show the last 1K of the task logs, updating every 10 seconds. ./utils/logtail.py <task_id>

Rerunning Setup Script on the 4 nodes.

If something failed during the setup of the node and you want to re-run the setup script without waiting for new instances to spin up, then set RERUN=true before running opencenter-cluster.sh with the same prefix as used initially.

export RERUN=true
./opencenter-cluster.sh <Cluster-Name>

Creating DNS records

./utils/syncdns.py <cloud dns domain> <path to pyrax config file> <opencenter cluster prefix>

The DNS names execlude the cluster prefixes so that they stay consistent when you build a new cluster.

For example:

(default27)MK63HADV33:utils hugh3869$ python syncdns.py uk.rs.wherenow.org ~/.pyrax.cfg dev1
uk.rs.wherenow.org
  opencenter-dashboard.uk.rs.wherenow.org A 95.138.169.97
  opencenter-client2.uk.rs.wherenow.org A 95.138.170.102
  opencenter-client1.uk.rs.wherenow.org A 95.138.169.61
  opencenter-server.uk.rs.wherenow.org A 95.138.169.55

Pyrax config file example:

[settings]
identity_type = rackspace
region = LON

[rackspace_cloud]
username = <your username>
api_key = <your api key>

About

OpenCenter Installation Scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 86.6%
  • Python 13.4%