123 Commits

Author SHA1 Message Date
Melissa Kam
83201edfb5 Remove whitespaces before EOF
Change-Id: I6023839bf10e6b22cf41e7022b736cf9e7387f93
2017-02-21 16:07:44 -06:00
Jenkins
90d1757eaf Merge "Adds more values into variables.sh and places in extra scripts" 2017-02-20 19:57:54 +00:00
Jenkins
439dc5180c Merge "Adds in option to disable overriding of apt-sources list" 2017-02-20 19:57:48 +00:00
Jenkins
4c53790432 Merge "Adds in option to modify DNS - removes hardcoded values" 2017-02-20 16:16:32 +00:00
Rick Box
550b2824cc Adds more values into variables.sh and places in extra scripts
More values have been added to the variables.sh file. None of these have
been adjusted from the default values but this now provides a standard
goto place to have all these values and be able to change with ease.

An include for varibles.sh is now also at the top of each of the script
files.

Change-Id: I2354c87e985115ce0b7f168ab1d056d5032e5cff
2017-02-20 16:07:44 +00:00
Rick Box
d38b7b059a Adds in option to disable overriding of apt-sources list
By default AIO deploy overrides apt-sources, if things like a local
mirror are already set up then this script will override these. This
option allows for the override to be disabled.

Change-Id: Id84c2c5d12153125d7ac6698493c41a840993c5b
2017-02-20 15:32:15 +00:00
Rick Box
d261d1a6e8 Adds in option if proxy is set - push through to containers
This commit allows for a proxy to be pushed to each of the deployed
containers based on the standard environment variable "$http_proxy".

Change-Id: I94dc3a8afda9472f032fbd94991f8b676131cbfb
2017-02-20 15:16:05 +00:00
Rick Box
3baca05501 Adds in option to modify DNS - removes hardcoded values
Some networks may not allow 8.8.8.8 Google DNS servers. This patch
allows this to be specified in the variables file or to pull the value
from the systems resolv.conf file.

Change-Id: I494ab82c41bcd59ea85404d49cb2696029353a0e
2017-02-20 12:49:46 +00:00
Melissa Kam
1b40ea4cf3 Use Trusty sources for any 14.04 build
Change-Id: I42b2a63b899cd1254669569dee04f0821cb08ba0
2017-02-17 09:55:09 -06:00
Jenkins
eb8da37a36 Merge "Adds in Playbook and inventory for Ubuntu 16.04 roles" 2017-02-13 17:36:46 +00:00
Jenkins
a9be7df625 Merge "Adds in proxy role - Ubuntu 16.04" 2017-02-13 08:12:42 +00:00
Jenkins
d8aeb4cfca Merge "Adds in network config - removes hardcoded values" 2017-02-13 08:09:39 +00:00
Rick Box
116867f117 Adds in Playbook and inventory for Ubuntu 16.04 roles
Building on from the previous commit https://review.openstack.org/427869
this playbook calls all the roles and contains the required data to
deploy the pxe build environment.

Change-Id: I1a319b68558a4823832693f38f40921a72be783e
2017-02-13 08:09:35 +00:00
Rick Box
a8a44e2002 Adds in proxy role - Ubuntu 16.04
Building on from the previous commit https://review.openstack.org/427869
this add in a proxy role which sets up the environment and apt in case
this machine is based behind some form of proxy.

Change-Id: I1f2266f6443354aa954438801c0ddc84e78d6994
2017-02-13 08:09:15 +00:00
Jenkins
ef570d14c5 Merge "Updated from global requirements" 2017-02-12 18:53:56 +00:00
Jenkins
40ce84bcbc Merge "Replaces yaml.load() with yaml.safe_load()" 2017-02-12 08:12:48 +00:00
Jenkins
ea898130cc Merge "Replaces yaml.load() with yaml.safe_load()" 2017-02-12 08:12:41 +00:00
OpenStack Proposal Bot
b34253720d Updated from global requirements
Change-Id: I1f950b87447a585cffe44c27a18b27d0eed2daca
2017-02-11 17:48:31 +00:00
Rick Box
952f91f004 Adds in network config - removes hardcoded values
172.29 has the potential to conflict with internal addressing schemes.
Rather than have this hard coded these changes are to allow this to be
configured. Variables file has also been added to allow customization of
defined values.

Change-Id: I0b3e68443e7331b02794c3a54478e131d23fd5ec
2017-02-10 15:27:12 +00:00
OpenStack Proposal Bot
772b4f4239 Updated from global requirements
Change-Id: I2212f923769c0f9cfb64ddc7c2b9d3feecc0ddfb
2017-02-10 05:55:38 +00:00
Jenkins
d388328465 Merge "Adds in TFTP Configure role - Ubuntu 16.04" 2017-02-06 13:41:36 +00:00
Jenkins
ce4f0aa634 Merge "Adds in DHCPD role - Ubuntu 16.04" 2017-02-06 13:41:11 +00:00
Jenkins
50cd9e4ab5 Merge "Adds in Apache2 role - Ubuntu 16.04" 2017-02-06 13:41:06 +00:00
Jenkins
91bea90f41 Merge "Add downgrade kernel script" 2017-02-06 13:41:00 +00:00
ji-xuepeng
62ab658962 Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I41d526e84d2c5da3366f242e6a00f93a1c762cfa
2017-02-06 22:22:41 +08:00
gengchc2
64a549e6db Replaces yaml.load() with yaml.safe_load()
Yaml.load() return Python object may be dangerous if you receive
a YAML document from an untrusted source such as the Internet.
The function yaml.safe_load() limits this ability to simple Python
objects like integers or lists.

Reference:
https://security.openstack.org/guidelines/dg_avoid-dangerous-input-parsing-libraries.html

Change-Id: I78fde872948d6838957e35765c3f182bd4b9b512
2017-02-04 18:21:33 +08:00
gecong1973
af9d8ff093 Replaces yaml.load() with yaml.safe_load()
Yaml.load() return Python object may be dangerous if
you receive a YAML document from an untrusted source
such as the Internet. The function yaml.safe_load()
limits this ability to simple Python objects like
integers or lists.

Reference:
https://security.openstack.org/guidelines/dg_avoid-dangerous-input-parsing-libraries.html

Change-Id: Ib260be0cc604f2272e3c676930bcb307752e142b
2017-02-04 12:05:47 +08:00
Rick Box
f8fef621cb Adds in TFTP Configure role - Ubuntu 16.04
Building on from the previous commit https://review.openstack.org/427869
this adds in TFTP configure role which handles all the pre-seed
templates and sets up all the PXEBoot files.

Change-Id: Ibdf7bfac9bc2c5b5cabdc79ce8584112b2ae0678
2017-02-03 04:19:39 +00:00
Rick Box
088d941d22 Adds in DHCPD role - Ubuntu 16.04
Building on from the previous commit https://review.openstack.org/427869
this adds in DHCPD role to provide DHCP to the virtual machines which
are booting up and point them towards our TFTP server.

Change-Id: I73649562096a659dee7227b0cfb84f2c4a4f5ec4
2017-02-03 04:16:44 +00:00
Rick Box
e0381502e3 Adds in Apache2 role - Ubuntu 16.04
Building on from the previous commit https://review.openstack.org/427869
this adds in Apache2 role to host the pre-seed files and some Ubuntu
install files.

Change-Id: Ib0c2469e25f5e7a03c7c79efc201cd51f673966e
2017-02-03 04:10:12 +00:00
Weezer Su
4e341cf48a Add downgrade kernel script
The ubuntu release always comes with the lastest kernel, this
script will save sometime to do the downgrade kernel for you,
actually it not only downgrade kernel, you can specify any kernel
you want to put on the image.

Change-Id: I8639ca4a8c0cfa28db8a7faa6587510f44e27303
2017-02-02 21:17:08 +00:00
Rick Box
49ccdbeb2c Adds in ATFTPD role - Ubuntu 16.04
We have done an amount of work making the Multinode AIO work with Xenial
on both the deployment host and the booted virtual machines.  Sadly
Cobbler was a large complex system which required poking and prodding to
make it work properly on Xenial. Instead we have created a small system
which is a PXE environment with TFTPboot, DHCPD server and various
pre-seeds.

This work is virtually complete and working, this is a first commit of
many to get this merged in. Starting with a small commit to get one of
the few Ansible roles we have in place. After this has been checked over
and merged in, we will push all the rest of the work making sure any
amendments or recommendations are made to the rest of our work.

This first commit is simply an Ansible Role to install and configure
ATFTP on Ubuntu 16.04 deployment host, and does not currently affect
other items.

Change-Id: I9bfd88d81d27d5a6af7b297b9a4426f5e6200baf
2017-02-02 13:13:53 +00:00
Jenkins
3d0ab1bef5 Merge "Added leap upgrade tooling" 2017-02-01 17:29:30 +00:00
Kevin Carter
2438ad03ab Added leap upgrade tooling
This change adds upgrade tooling that will take a Juno based
OpenStack-Ansible cloud and upgrade it to Newton. The tooling
will run a deployment through all of the needed steps upgrading
the environment and skipping all of the OpenStack releases in
between.

**This tooling should be considered experimental at this time**

Change-Id: I1880794717b9e47786ae255ea1afa57d805cde8e
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-02-01 14:27:07 +00:00
Weezer Su
0bf6407914 Grab the ubuntu release version from VMs
Grab the ubuntu release version from VMs, then feed the VMs with
right sources.list file.

Change-Id: Iaf89716af1248676fbf2b735dd705a285e6cdf8b
2017-01-31 21:13:05 +00:00
Weezer Su
e96b57d8d6 Typo on MD5SUM5 should be MD5SUMS
fix the typo. and put it into silent mode.

Change-Id: I3bdb7184d4c565de88b9aab936d9df718778657f
2017-01-30 13:40:39 -06:00
Jenkins
e2cf647aac Merge "Install python2.7 on xenial" 2017-01-30 19:09:27 +00:00
Jenkins
75ed6b5388 Merge "Add the md5 check on image" 2017-01-30 19:08:35 +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
Kevin Carter
e786c69b15 Added Cinder storage pools data
This change adds the cinder storage pools data to the influx metric
collection system as a plugin.

Change-Id: I632b53aa09d69c6df28b86988629242a26ab9b50
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-01-27 17:38:28 +00:00
Nish Patwa
f0b26e6301 Added kapacitor scripts
Added kapacitor tickscripts to trigger alerts based on certain
thresholds.

Change-Id: I66d1b1e58d279405637d9a2f06b3aae19fa29cc3
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-01-26 22:10:45 +00: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
Jenkins
bbfa748698 Merge "Import osa-gate-profile" 2017-01-14 17:43:51 +00:00
Kevin Carter
229739377d Added kvm_virsh to telegraf plugins
The KVM virsh plugin already existed however the setup was not using the
new playbook plugin system. This change moves the kvm vish plugin into
that system and updates the plugin to use the influxdb line format
instead of the json format which was recently deprecated.

Change-Id: Ib23a0a231044389aab5669dc0c467175cd220423
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-01-10 18:02:49 +00: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