Commit Graph

11 Commits

Author SHA1 Message Date
Changbin Liu 02b6284ec2 Rename "LOGGER" to "LOG"
Align with OpenStack projects

Change-Id: Ie30b2819bce754650f3afa293935c2a0b551c217
2013-09-22 15:40:45 -04:00
Scott Daniels 9014b2388e Force tty (stdin) closed on ssh commands.
Adding the -n to the ssh command forces ssh to redirect stdin from /dev/null
and prevents the remote processes from blocking waiting for user (tty) input.

Change-Id: Ic659c951926e81eacb0db72c6ff0668b5bd38167
2013-09-05 11:21:06 -04:00
Changbin Liu 641c97e2a4 Add license to *.py files
Change-Id: I8efb89fc65ed3da7bfef8c2573bff784f2c21bcc
2013-08-26 12:57:56 -04:00
Changbin Liu 3d62045d44 Use logging instead of print
- log module supports oslo.config

- orchestrator executable code is split into bin/

Change-Id: Ia1bc509c09c6bd4cc4734d950ee077ae2be30a5b
2013-07-17 10:52:37 -04:00
Changbin Liu 4f80e53970 VXLAN and DNS deployment
Deploy VXLAN and DNS using recipes in cookbook-openvswitch. Btw, fix a
typo in utils/cmd.py

Change-Id: I0ae7b19f84b05bcfb777d1d69a2231e323a861cc
2013-05-21 11:19:56 -04:00
Changbin Liu b60457b913 * cmd ssh and local made consistent, and ssh is cleaned up a bit
* orchestrator waiting time 60s => 90s
2013-05-14 14:10:24 -04:00
Yun Mao 6c173583f3 Unify the ssh code path
for screen_output = True or False, always use Popen and raise
exceptions correctly.
2013-05-13 22:47:17 -04:00
Changbin Liu b0f439cca8 * print all exceptions in cleanup()
* add SshConnectionError, and catch more specific exceptions in
  polling
2013-05-13 20:16:07 -04:00
Changbin Liu 86a7da16d3 * add txnal option: whether auto delete servers upon exception
* add userdata: for auto executing a script in late boot stage

* add _checkin_chefserver()
2013-05-12 00:55:31 -04:00
Changbin Liu 87def934db Several improvements
* add shell option

* fix relative/absolute path. now we can call orchestrator.py from any
path

* improve cmd execution util

* change servers to server_ids
2013-05-11 12:28:48 -04:00
Changbin Liu be9ed42bcc Add Orchestrator class
* step 1: create servers and wait for them to be ready

* step 2: setup chefserver

* step 3-5: marked as TODO functions

Plus:

*  80-char limited bin/*.sh

* add utils and cmd for executing command (both local and ssh)
2013-05-10 00:16:17 -04:00