382 Commits

Author SHA1 Message Date
Mathieu Grzybek
98b4699bc7 Uses a dedicated telegraf role
Change-Id: I17651120ac4b77fc6e0d4cbcde99e4e1fa36d1d1
2017-12-01 14:14:26 +01:00
Zuul
17a30dacc0 Merge "change the phase we run post-install.d actions" 2017-12-01 03:29:42 +00:00
Zuul
0d61aaff47 Merge "Validate the target directory exists before linking." 2017-11-29 16:14:20 +00:00
Marc Gariepy
2ccc760da8 Validate the target directory exists before linking.
If you run the script manually and export the target release to another tag, it
might generate a broken link, this ensure the target exists.

Change-Id: Ia18bd7796f5f48c42ad9c23e917ddb37aa8103b3
2017-11-29 14:06:22 +00:00
Matthew Thode
1602871952
change the phase we run post-install.d actions
It's generally not a good idea to use the last phase if you can help it.

Change-Id: If815aa0438c1eed3a71c0d94544c18520351753b
2017-11-28 10:42:44 -06:00
Matthew Thode
e5b4d98f81
Install NetworkManager to ensure consistent network bringup on centos
Sets up and enables NetworkManager.

In testing this was the only way to get the network to come up after
reboots on centos.

Change-Id: Iac8d982977982d886b29a8933b59dd3f55578769
2017-11-20 19:49:53 -06:00
Zuul
0421a02e0c Merge "Enable support for hardware that brings the network up slowly" 2017-11-18 05:41:42 +00:00
Andreas Jaeger
3f94b4f524 Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.

Change-Id: I0ee338b5bcc744426f04ec5e2409851afebaf742
2017-11-17 07:52:51 +01:00
Matthew Thode
e34ad321f7
Enable support for hardware that brings the network up slowly
Add the slow-network element which defaults the timeout of network
bring-up to 60 seconds set by the NETWORK_TIMEOUT environment variable.

Syncs the ops repository to a known location so that we can use the
element when building images.

Rename the register-images script to register-nodes as that what it
actually does.

Change-Id: I403667f7bf6c69e255a4f5639ee4a8e0e8af18e3
2017-11-16 14:00:14 -06:00
Zuul
62a41aef85 Merge "Add ironic image generation and node registration scripts" 2017-11-15 14:56:50 +00:00
Matthew Thode
56894da2b3
Add ironic image generation and node registration scripts
The image generation script will generate centos xenial and trusty
images along with the deploy image.  It will then upload the images into
glance and clean up after itself, other then the pacakges needed for
diskimage-builder and virtualenv this is all contained and easily
cleaned up.

The node registration script relies on the image generation script being
run first.  It will create flavors if needed, but the values for some of
the variables are designed to be modified (image_ram/cpu for example).

Change-Id: I247cc57f9ec1c961c302eac90be3e5ee2dfa7e2c
2017-11-14 14:42:26 -06:00
Zuul
b4f3e676f7 Merge "Specify containers to destroy" 2017-11-14 20:25:37 +00:00
Antony Messerli
4538a7e083 Specify containers to destroy
Allows the operator to specify the containers to destroy
or exclude.

Change-Id: If1b72fd8bdf790184579130aa4b44221b339a41f
2017-11-13 19:04:42 -06:00
Zuul
e3153f79a1 Merge "Abort run if VMs aren't up before timeout" 2017-11-10 17:40:38 +00:00
Zuul
d6e0b2f4f3 Merge "Prevent deploying old code once leaped" 2017-11-10 17:30:39 +00:00
OpenStack Proposal Bot
044fc96d45 Updated from OpenStack Ansible Tests
Change-Id: I9dc8a1e20cf7b58c44de857388d146677fcf611e
2017-11-10 13:15:29 +00:00
Antony Messerli
71fd2f6b7f Prevent deploying old code once leaped
Previously the operator could choose to leap from old
code once the code to leap to had been deployed. This
would cause things to break as it would attempt to
run the older version code on top of the newly deployed
leaped code.

This identifies those conditions, alerts the operator
and calls the resume_incompete_leap instead of asking
the operator to input the release to upgrade from
again.

Change-Id: I928bf7e6db88d46617af800692e9b76a6bcc1ba8
2017-11-03 11:42:47 -05:00
Adrien Cunin
53b5d88867 Added cleanup-venvs.yml to help remove older venvs
Change-Id: I259c13ffc07ea5c20178875d75b2fb3d42285d66
2017-11-03 15:24:17 +01:00
Zuul
07637bf82e Merge "add example basic resource generation scripts" 2017-11-02 20:57:12 +00:00
Antony Messerli
4536c0a9ef Abort run if VMs aren't up before timeout
Occasionally the VM install will exceed the timeout
if it doesn't fire correctly.  Instead of treating
the host as down and continuing on with the others,
fail early.

Change-Id: I543d8e354a5357f7059fe82497edb9b7e3a22097
2017-11-02 11:49:20 -05:00
Antony Messerli
169b475168 Pin to latest supported Ansible version from osa-tests
Change-Id: I886a538059290fd80247e3705104a37f071378ea
2017-10-27 12:54:52 -05:00
Kevin Carter
bf71876abf
add example basic resource generation scripts
Change-Id: Id7eac8a81d2e264727ce24c655808758446c1da2
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-10-27 10:27:00 -05:00
Antony Messerli
419e44385c Lock Ansible to 2.4.0.0 in multi-node-aio
2.4.1.0 appears to have introduced some different behaviors
around vars and breaks.  Locking to 2.4.0.0 until we can
work through those issues.

Change-Id: I0f577e5e3cbeef082f2a870a7214116937e84351
2017-10-26 13:06:16 -05:00
Kevin Carter
676d574623
Run security hardening when leaping a deployment
The security hardening playbook was not being executed. This change adds
the security hardning playbook to the defeault re-deployment process. If
a deployer wishes to opt-out of the default security hardening they can
disable it using the `apply_security_hardening` option.

Change-Id: I69baa1d2cb209cf3686ca2da00e698ed5dbf92f9
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-10-25 10:47:48 -05:00
Zuul
0690bb6085 Merge "Clean out old mariadb apt sources" 2017-10-20 15:26:04 +00:00
Zuul
8b0f0b296d Merge "Exclude elasticsearch from container-destroy task" 2017-10-20 12:53:44 +00:00
Antony Messerli
027c91704c Clean out old mariadb apt sources
Cleans out old mariadb apt sources before
running redeploy to prevent issues during
leap frog with galera client.

Change-Id: Iba91de800d4f1ec66a062e2213344e61c392407b
2017-10-19 22:20:28 -05:00
Zuul
60b8cd7e18 Merge "Tune-up the MNAIO for physical and virtual hosts" 2017-10-19 20:36:58 +00:00
Zuul
378b0ce6b8 Merge "Update readme to use force flag instead" 2017-10-19 02:35:43 +00:00
Frank-ZhangXin
0176aa4624 Exclude elasticsearch from container-destroy task
The goal is to keep elasticsearch logs from leap upgrade from Kilo,
Liberty and Mitaka to Newton.

Change-Id: I14840c16266dcfe2ed0aa0b89078adae441c8569
2017-10-18 15:09:43 -05:00
Jesse Pretorius
caab814228 Initial OSA zuul v3 role jobs
This patch implements an initial set of jobs intended to match
the current job execution method. It does not intend to improve
how the jobs are executed - only to replicate what is currently
in openstack-infra/openstack-zuul-jobs and provide the platform
to iterate on.

Depends-On: I0391ec310c4eede436011a48490e3c524c8ddf4d
Change-Id: I2ba5bce479a33bc4369c8034e28cf2bc8cfb5ac1
2017-10-18 18:17:24 +01:00
Antony Messerli
c92d4c5938 Update readme to use force flag instead
echo y seems to still prompt for each volume
when using -f will complete the action without
prompting.

Change-Id: Ic8231817656e2093e53e0bfcd1fd5e72bd8181b2
2017-10-16 15:59:40 -05:00
Kevin Carter
2f503c228e
Tune-up the MNAIO for physical and virtual hosts
This change makes it possible to deploy ACNG within a physical
host NOT automatically tied to an MNAIO installation. This also
adds an infra preseed file which can be used to provision physical
hosts.

By default the domain name is now passed into the server boot params
which is useful when setting up an environment in support of
RFC-1034/5.

Ubuntu 16.04 has an issue with the options "quiet splash" being passed
in which cause it to have no usable console. See [Related-Issue] for
more.

Related-Issue: #1656605
Change-Id: I731dfb70e4b5d676d8c22082da77c0d22d5afb58
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-10-16 00:42:32 -05:00
OpenStack Proposal Bot
835c2632f2 Updated from OpenStack Ansible Tests
Change-Id: I95a371b21f3649468caa6442bc3d4620d9423e5c
2017-10-12 20:44:01 +00:00
Kevin Carter
e7ea3b56c6 Add option to set FROM code and fix logic bug
The leap tooling was attempting to run `set_upgrade_vars` at point where
specific upgrade variables were already needed. Within this change that
function call is moved up a few lines so that it has the chance to set
the required values. Additionally the option to pre-define the variable
CODE_UPGRADE_FROM has been added giving the deployer the option to set
this variable before a leap upgrade is run.

Change-Id: I2c780eb46dd57e680fc8681824de2fe913824fd9
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-10-11 14:15:56 +00:00
Kevin Carter
cc9294bb0d
use linux-image-generic by default
The package, linux-image-generic, should be used by the MNAIO to ensure
we're testing with the supported LTS kernel for the distro being
deployed.

Change-Id: I25b3318a02a3c8e79fb300e93b2fdb18a7cc3b20
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-10-10 01:03:16 -05:00
Kevin Carter
be1d365ef5
allow a default kernel to be set
Change-Id: I6cf0cf918df6c79757b283333f5a687ff20a46bd
2017-10-09 22:28:16 -05:00
Kevin Carter
d0cb21c139
create specific preseed for vm-compute
Change-Id: I8dc124265774fae6f754e75f5936210c222fc93d
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-10-09 18:46:19 -05:00
Jenkins
e50252a102 Merge "Remove duplicate Create Basic configs task" 2017-10-07 03:28:29 +00:00
Jenkins
37ff5563ec Merge "Allow for Leapfrogs from other Releases" 2017-10-04 15:47:52 +00:00
Kevin Carter
bc2e128143
make group membership blocks optional
Deployers sometime need the ability to opt out of specific deployment
groups. While a deployer can modify or extend the configuration
groups using conf.d files, until now they didn't have the ability
to remove groups when testing different scenarios. This change
simply adds conditionals to the openstack_user_config giving users
the ability to tailor the default user configuration options to
their needs.

Change-Id: I100ddf09faa072a999b72c4e46a1d3de6480d7e6
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-09-28 13:46:36 -05:00
Antony Messerli
e2592e4d06 Allow for Leapfrogs from other Releases
Leapfrogs currently only work with Juno/Kilo
releases as certain parts are hard coded.

This patch adds support for handling
multiple releases and attempts to remove some
duplicate code with loops.

Also adds a UPGRADES_TO_TODOLIST variable check on
migration.sh and upgrade.sh to ensure the list of
releases to be ugpraded to are set if the commands
are ran individually.

Change-Id: Ia56f073863533d4b6fa58b78b59b5086c7f9a331
2017-09-27 14:11:42 -05:00
Jenkins
89e45170fe Merge "populate the default user variables file" 2017-09-27 18:47:28 +00:00
Jenkins
1ec23fecb7 Merge "Convert the user config group build outs to be dynamic" 2017-09-27 18:45:26 +00:00
Jenkins
b406dc02eb Merge "Allow for the use of an external inventory" 2017-09-27 18:40:52 +00:00
Jenkins
1512e7dddc Merge "Add the option to configure VM server ram" 2017-09-27 18:38:27 +00:00
Matt Thompson
3129aa56d5 Remove duplicate Create Basic configs task
Change-Id: If9217a5b3b3b546a51f35be538861a43e9d9ea3a
2017-09-27 12:10:33 -04:00
Kevin Carter
55640fa286 Convert the user config group build outs to be dynamic
the previous group build outs for the osa user config were statically
defined. This change makes all of them dynamic which gives a user the
ability to add or remove hosts from the basic inventory as they need.

Change-Id: I1eae7de6d62435e8222ec80b05b6c0a060c5bb69
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-09-27 15:11:41 +00:00
Kevin Carter
3da22ca992 Allow for the use of an external inventory
It makes sense to allow a user to provide their own inventory as needed.
this change simply allows a user to explort the option "MNAIO_INVENTORY"
prior to running `build.sh` which will allow them to define their own
inventory using the general purpose build script.

Change-Id: Ib5233da1bf34620ec8bf3decc4ecd51823b50b79
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-09-27 10:08:07 -05:00
Kevin Carter
fb8ad75eea populate the default user variables file
The user_variables file may be empty. If it is, some older
versions of OSA will break. This new task simply ensures the variable
file is populated which will help us build and test more versions of OSA
as needed.

Change-Id: I38d204b41f781fe303d145878dfdbaa8172e16ba
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-09-27 14:57:28 +00:00