When building a venv for leap upgrades, checkout the applicable
requirements repo SHA and apply its upper-constraints file. If
packages within the venv are installed unconstrained, a project's
database migration scripts may fail.
Also remove tempest from being built within the venv.
Change-Id: Ic7e9aaa2d445bfe22c0f707a00a867cc8e84a38d
This creates a specific slice which all OpenStack services will operate
from. By creating an independent slice these components will be governed
away from the system slice allowing us to better optimise resource
consumption.
See the following for more information on slices:
* https://www.freedesktop.org/software/systemd/man/systemd.slice.html
See for following for more information on resource controls:
* https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html
Tools like ``systemd-cgtop`` and ``systemd-cgls`` will now give us
insight into specific processes, process groups, and resouce consumption
in ways that we've not had access to before. To enable some of this reporting
the accounting options have been added to the [Service] section of the unit
file.
Change-Id: Ife2e28ce6b3e0d0219b8a5ec2ca8d9dbe513d5a7
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
Since there is no central storage for the restart actions and the tests
at the moment, they should have timestamped output to correlate events.
Using a standard format will make this easier to do programmatically,
too.
The output is sent both to stdout and a log file. Additionally, Ansible
output is suppressed now, so it doesn't pollute the console. Log times
are in UTC, to avoid timezone mismatches between nodes (observed in
multi-node AIOs).
The `configure_logging` function was copied into the tests/keystone.py
file instead of put into a common module in order to keep that file a
standalone unit for the time being.
Change-Id: I399d1827a8559896ca87e45c00241293ccd033d2
Base on the http://packages.ubuntu.com/trusty/kernel/, the
linux-image-generic will install the 3.13.0.112.120 [amd64, i386]
kernel. leave it empty will do nothing to the kernel. this is
important when you deploy ubuntu 14.04.5 on VMs which use 4.4 rather
then 3.13.
Change-Id: I7984edaef5a65320ec3b10085646e8ad5c93f65d
These tools help simulate rolling downtime by taking down service
containers in a controlled fashion. While this can be done manually,
using a script to inspect the inventory for targets is much easier.
Having the rolling downtime happen automatically is also a bit less
error prone.
Tests for things like response times will be placed in the tests
directory, allowing for scripts to be written against different services
to try different things (like adding resources while rolling downtime
happens).
There is no central orchestration for the two components currently, in
order to keep things simple. Restarting containers and running the tests
is therefore best accomplished in a pair of tmux sessions.
Change-Id: I2d8e3484bbb1a71d2cd0c4124f824d49f76e5c2c
Precreated bundled venvs for OpenStack-Ansible have been created,
update the default VENV_URL with the path to them. Also fix the wget
command used to download them so that it returns a 0 on success and
deletes a failed download allowing the local build function to continue
on.
Change-Id: Ic4ae115384015dd7159da4e5850452bb5db181be
Within the multi-node-aio-xenial-ansible folder the multi-node-aio
content has been copied over, Cobbler and Trusty specific parts have
been removed.
The intent here is to replace much of the bash which is present with
Ansible and not support Trusty. To do this a clean separate folder is
required so large changes which are made will not affect the current
working Trusty based install.
Change-Id: Ib64ee168ece4b7a00f950c8d5b1cd6dd4dcd7ba7
Perform a git branch checkout on cloned OSA repo directories when the
ignore-changes.marker file does not exist.
Change-Id: Ib062198f54e399d644e13c7aea7582e0ad6e1976
- Check for existence of the configuration directory
(rpc_deploy/openstack_deploy) since only one should exist, dependent
on the current stage of the upgrade
- Correct the path to upgrade-requirements.txt
- Use pip to install requirements found in upgrade-requirements.txt
to avoid a 'double requirement given' error when installing pip
Change-Id: If39826c26eb948b91f14e7e27d0a5d0740c8349c
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
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
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
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
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
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
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
According to suggestion, add the kernel option in the preseed file,
leave it empty to get the lastest kernel, or specify the kernel
number.
Change-Id: Ie5b8f62a89ef9eb51954f0452becbaa9e81ee973
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
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