228 Commits

Author SHA1 Message Date
Jenkins
e2cf647aac Merge "Install python2.7 on xenial" 2017-01-30 19:09:27 +00:00
Weezer Su
413d20267a Add the md5 check on image
Add the md5 image hash check, if the image exists, check the md5
hash, if the hash is not the same, remove the old image and download
new one.

Change-Id: I2232129a814e89aaac9bf54ee16ede983fff5b48
2017-01-27 15:29:33 -06:00
Weezer Su
10bc36ed80 Install python2.7 on xenial
Starting in 16.04 Ubuntu no longer installs python v2.7 by default.
Instead the default version of python is v3.5.  If you still need v2.7
then add the `python` package to this list

Change-Id: Ieb47e319ef2124570cc72acf1219c5b9d9fc9814
2017-01-27 14:27:47 -06:00
Melissa Kam
6c45b23c4a Set SSH key in cobbler setup
SSHKEY is originally set in setup-host.sh, so this allows
setup-cobbler.sh to run independently of that script.

Change-Id: I4793e6a5db7359bec0eaa7b6a66efa7d58084126
2017-01-23 16:29:21 -06:00
Jenkins
25a865588f Merge "Add instruction of the option for Operation system for VMs" 2017-01-19 09:24:09 +00:00
Weezer Su
93d7492496 Replace the tilde with /tmp
the tilde symbol may cause problem when VMs don't have the same
folder path as the host, replace it with tmp will resolve this
issue.

Change-Id: I14114d018fa9dc9fa332f1e34077f88d75995f21
2017-01-18 21:44:59 +00:00
Weezer Su
7daef611b9 Add instruction of the option for Operation system for VMs
Add the DEFAULT_IMAGE instruction into README.rst

Change-Id: I77e1b43a2533638af50d7430195f6162763126cd
2017-01-18 13:51:14 -06:00
Weezer Su
289f884795 Add the xenial support to the multi-node-AIO
Starts from Newton release, Openstack needs ubuntu 16.0.4(xenial)
as the operation system to depoy openstack. add the xenial image
will help people to test or develop openstack projects.

Change-Id: Ida3a2102664abc4a69e8d94f6c8d6cc177a8c4c3
2017-01-16 21:18:17 -06:00
Weezer Su
4f64e92864 Sort out the hosts.json.
Make it clean and tidy, and easy to work with the add node capacity
scripts.

Change-Id: Ifc3463e6f56bbe3dc287a5fe5a58ed2a2ed96d83
2017-01-06 12:12:43 -06:00
Weezer Su
ff9002ba36 Add PRE_CONFIG_OSA option and move the RUN_OSA to the run playbook part
Add PRE_CONFIG_OSA to set up the user_variable and all the other
parameters for OSA powered cloud, and move the RUN_OSA to the playbook
part.

Change-Id: Ia962e42466dd2a123e30b1a9c37e60a371710842
2016-11-02 11:53:40 -05:00
Joshua Hesketh
66b017144f Replace github with git.o.o
Change-Id: Id1ec52d14ecac9fd68b261c2be0e1dcdabbf7d81
2016-11-02 12:16:10 +11:00
Weezer Su
c8f1af0bcf Remove the expired key and opensuse repo after cobbler being installed
Remove the opensuse expired key and opensuse cobbler repo after
cobbler being installed. OSA deployment doesn't need it.

And fix a typo and a link of README.rst

Change-Id: I24f5d823806f039d879dd69762b2eac3a6005628
2016-10-20 16:13:46 -05:00
Jenkins
1b4cb5699a Merge "Add remove known_hosts in the instruction for Multi-Node AIO" 2016-10-20 19:14:44 +00:00
Weezer Su
62178b010e Enhanced the setup-cobbler.sh
Replace the service xinetd stop and start to service xinetd restart
, the stop will cause the unknow instance error and stop the
rebuild

Change-Id: I1a8a7a72f51b3d4dcdca3b0158f7771efd567032
2016-10-20 12:46:23 -05:00
Weezer Su
22501ca02a Add remove known_hosts in the instruction for Multi-Node AIO
Add the rm ~/.ssh/known_hosts for the Rerunning the build script
part in the instruction.

Change-Id: Iba7610e00f07bb61cd8b11892e208ea4c67a1d75
Closes-Bug: #1635037
2016-10-19 16:04:28 -05:00
Jenkins
213884ebb8 Merge "Add an option for deploying OSA or other OSA powered cloud" 2016-10-19 15:24:48 +00:00
Weezer Su
9b5320dcb9 Add an option for deploying OSA or other OSA powered cloud
Add an option $RUN_OSA to the deploy-osa.sh to let user have more
choices, if user want to deploy another OSA powered cloud on AIO-
multinode, he can switch it to false and then use the existing env
to deploy the cloud he wants to.

Change-Id: Ief8c701f596595607d3b86ac03f17d6690f5954f
Closes-Bug: #1634582
2016-10-18 16:38:00 -05:00
Kevin Carter
f337e4aec1 Implement automatic flavor create
This change is needed because nova no longer provides flavors.

Change-Id: Icaf97d94007aef7fd54691174cab6ed2db89404b
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-18 04:55:04 +00:00
Jenkins
bf09a35de7 Merge "Updated deploy-osa section to setup more production like" 2016-10-07 11:26:49 +00:00
Kevin Carter
6fb0879ab7 Updated deploy-osa section to setup more production like
This change simple makes the system deploy a network stack and create
various images in a more production like fashion.

Change-Id: Ib316d5fcab08aa31f2965175a4fb31f1d3566228
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-07 00:29:29 -05:00
Kevin Carter
82f1994067
roll the network hosts into the infra hosts
By default we generally deploy the network agents onto the infra hosts.
This patch simply forces the multi-node-aio to follow that process which
is being done to lower resource consumption.

Change-Id: I6612a85cb669596893dbd3ee0a858a8ee5476729
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-06 16:19:26 -05:00
Kevin Carter
2e1925250c
Fix typo in apt repo path
Change-Id: I1c3aa85837cdf9e04b999d2e6db3b0f190e20093
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-06 16:02:04 -05:00
Dave Wilde
3d3a8c0d5d Add test to ensure that directories are not empty
The scp command will fail if the directory in the preceeding for
loop is empty.  This adds a test to ensure that $i is acutally a
file name.

Change-Id: Ib2a3c929a7a15b290c2cf09c05d4079a1ec8c6e6
Closes-Bug: #1621160
2016-09-07 16:40:00 +00:00
Kevin Carter
2309683438
Removed file name which should not have been included
In one interation a debug file was used on my test node which remained
as I posed this commit. Sadly the attmpted inclusion breaks the end of
the deploy VMs process. To resolve this, the bad file name has been
removed from the loop.

Change-Id: I44aafc8aa26bdad7efc43835719003637a608ee6
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-01 18:26:28 -05:00
Kevin Carter
746589d8c9
Updated multi-node-aio for newton
Change-Id: I76cc6b8d0afb3bfd791290d3742dd64cf896cffe
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-31 00:18:39 -05:00
alextricity25
2fb0f45a2f Removed ANSIBLE_PARAMETERS
The variable isn't used in this project

Change-Id: I60492c78c4ac31316b0d328542654cf49321653c
2016-08-26 14:07:09 -05:00
alextricity25
40755451b1 Added successerator function to osa-multi-node-aio
The successerator function retries a failed playbook
that might of failed due to network saturation issues.
i.e. target host ssh unreachable errors.

Change-Id: I2164a22555474749228fcb278d34885cf154a743
2016-08-22 17:13:40 -05:00
Kevin Carter
a7180a096c
Ported the osa-multi-node-aio
This change imports the code from [ https://github.com/cloudnull/osa-multi-node-aio ]
so that others in the OSA community can benifit from and contribute to
the project.

Change-Id: Id9a2d928f7e8bbd185725349e8ce51344f19daa4
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-10 09:40:40 -05:00