121 Commits

Author SHA1 Message Date
Paul Belanger
55dcb81a26
Don't configure deb mirrors for ubuntu-precise
Since this image is going to be short lived, we don't want to add
ubuntu-precise AFS mirrors for ubuntu packages.

Change-Id: I0dc0e6bbb9f695584945056528cfb7e02793bdcd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-05-05 15:31:37 -04:00
Paul Belanger
3612aebc16
Add ceph-deb-hammer.list to both trusty and xenial
Since we mirror both repos now.

Change-Id: Ic2493197c53e9a3d7a52c6014c0e1b5fb19c9051
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-05-03 12:36:04 -04:00
Paul Belanger
acf160a5a7
Revert "Create stackviz element and script in nodepool"
This reverts commit b4a933c18f4791d297a42a7d6f4fcff71b48b4a5.

Currently all our DIBs are failing to build, as a result we are
reverting stackviz until we can properly test.

Change-Id: Id336c1c8df7123c67f821a3a72da77c470a3a1f1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-05-02 11:45:25 -04:00
Austin Clark
b4a933c18f Create stackviz element and script in nodepool
In order to get Stackviz running against tempest gate run data, it
will need to be pulled in its pre-built form (i.e. with npm deps
installed) from the nodepool images. This change adds a couple steps
to build Stackviz so that it is in a ready state for retrieval and use
on the logs server.

A future devstack-gate patch will pull the stackviz directory from the
nodepool images onto the logs server. This nodepool patch is required
first in order to prepare stackviz for download. Installing the npm
modules takes a considerable amount of time (~5-10 mins), so it is
best that this work is done on the images before gate jobs are run.

Change-Id: I9bc50b8eba696264d2b97ed20a37f28f4768abb8
2016-04-29 13:09:33 -04:00
Paul Belanger
926b0e62d6
Configure xenial-updates / xenial-backports on slaves now
Reprepro now as local repos for xenial-updates and xenial-backports on
our mirrors. Lets use them now.

Change-Id: Ic1dbb9cf7e041ecce1a872386e0e3ce15757e261
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-04-27 10:18:33 -05:00
Clark Boylan
7f35178617 Fix package and image list comment cleanup
When cleaning up comments from lines of the form:

  foo bar # this is a comment

You want to remove remove everything after the first comment character
not after the last comment character. This is because:

  foo bar # this is # a comment

Should get everything after bar removed not everything after is.
Unfortunately when you use str.rfind() you remove everything after is
not everything after bar. Switch to regular trusty find to fix this.

Change-Id: I78aa6b51b5be03bd3b8ce7885415442171218977
2016-04-19 17:27:14 -07:00
Paul Belanger
5dab984ff7
Add ceph-deb-hammer mirror for ubuntu-trusty
Change-Id: I6b8c3576a99613799f6b851139c3f3e35802dbc4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-04-16 08:22:25 -04:00
Paul Belanger
26490fad95
Add logic check for xenial APT mirrors
Because reprepro will not mirror repositories with 0 packages,
xenial-backports, xenial-updates, xenial-security are missing from
AFS.  Until we have them populated, we'll only configure APT to use
the xenial mirror.

Change-Id: Id4d788097ae4e1a5d0f13cb84a46fbb9ac9a839e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-04-14 11:35:00 -04:00
Jenkins
51ec23046a Merge "Silence zuul_swift_upload" 2016-04-05 15:03:17 +00:00
Clark Boylan
90bc24b54f Add removal of grub boot timeouts back in
When we removed the restrict memory grub stuff because hpcloud was no
longer in use we also removed the configuration updates that set the
grub timeout to 0. This can save many seconds per instance boot purely
waiting for grub to timeout and continue booting the host.

Change-Id: I2d79ec4ebd55f927d868e06c8f00cf50f34f3b92
2016-03-30 15:20:10 -07:00
Andreas Jaeger
84e76e3f72 Silence zuul_swift_upload
At the end of gate jobs, we get warnings from zuul_swift_upload that
are not actionable for us.

Use requestsexceptions to silence these warnings. Add requestsexceptions
to the venv that is created for zuul_swift_upload to run in.

Example file
http://logs.openstack.org/48/298048/1/check/gate-ha-guide-tox-checkniceness/62e2d16/console.html

The example shows 6 warnings starting with:
/usr/zuul-swift-logs-env/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:315:
SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject
Name Indication) extension to TLS is not available on this platform.
This may cause the server to present an incorrect TLS certificate, which
can cause validation failures. For more information, see
https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/zuul-swift-logs-env/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:120:
InsecurePlatformWarning: A true SSLContext object is not available. This
prevents urllib3 from configuring SSL appropriately and may cause
certain SSL connections to fail. For more information, see
https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
...

Change-Id: I02b4b6c7b426f3e9aa498941e4d75f67066d4d27
2016-03-27 21:23:31 +02:00
Clark Boylan
e88dd66c8a Revert "Allow test slaves to talk to themselves"
This reverts commit 468f17c4f6afac507dba9d4783c7da6fde24f656.

This isn't working on fedora-23 or centos7 slaves for some reason making
it very difficult to get those nodes ready. Revert in order to do more
testing across the platforms.

Change-Id: I634e784b71a2d92a745f8d9c89532e953f48b9cf
2016-03-24 17:11:57 -07:00
Clark Boylan
468f17c4f6 Allow test slaves to talk to themselves
Update iptables rules to allow slaves to talk to themselves over their
known IP addresses. This should allow services to listen on public or
private addresses in addition to the loopback address and talk to those
services over these IPs.

Specifically this should address a problem with rabbitmq coming up on
the public IP but not being able to talk to it due to iptables.

Change-Id: If851eb8ce97ca0c0c113f0a924ec0916c993cf87
2016-03-23 12:14:10 -07:00
Jenkins
d7f85f4b5d Merge "Add debian-jessie image to nodepool" 2016-03-16 13:20:10 +00:00
Thomas Goirand
45fe44f924 Add debian-jessie image to nodepool
This patch adds Debian Jessie diskimage-builder image to nodepool.
debian-packageinstall element is based on debian-minimal and provides
additional required packages, change is introduced in
I9486b1356eac74272e79655c9024d86ee486628c

Depends-On: Ic39ba2b5ceb5018efb75742547b2babf80827e56
Depends-On: I7a661c8b5d4bb632eb32b5018c55474c1c66a4e8
Depends-On: I4a5a8352388de46e9e7713fa11951fcde27eaad9
Change-Id: I851cb47e844a72a430b578dd63d8b230ee6e3ed9
Co-Authored-By: Igor Belikov <ibelikov@mirantis.com>
2016-03-16 00:50:37 +01:00
Clark Boylan
69a073edbe Don't cache inactive repos
We have attic and stackforge projects all of which are now inactive.
Because they are inactive we don't need to be caching these repos on
every test slave image.

Change-Id: I4df78c3d542758ce6159c195c1407f1d56f565a0
2016-03-05 18:01:08 -08:00
Andreas Jaeger
71d84bed47 Remove restrict-memory
We do not have HP cloud anymore, remove the restrict-memory files.

Change-Id: I68f8fbd01927ead42e9fab1ff41360f035275d4a
2016-02-15 20:04:12 +01:00
Monty Taylor
413fcf9275 Do not disable multi-arch on precise
Expressed the conditional as != precise to future-proof for when xenial
comes out.

Change-Id: Icdde40c638d2baf3b86eb58ff42f0132d1181b0b
2016-02-12 09:41:40 -06:00
Monty Taylor
7a8b9992c7 Update configure_mirror to use per-region APT mirrors
Now that we have per-region apt mirrors for ubuntu, we should use them.
As part of doing that we need to disable looking for i386 packages since
we do not mirror nor use those - and we need to tell APT to not check
the GPG signatures of our mirror archive since we're not signing it.

We don't need multiverse or restricted in the gate, and they also
contain non-free software. Remove them from our configuration.

Change-Id: I26f5fc5cec224cf4f4ea361e0f71cecbf320fbb0
2016-02-08 16:33:09 -06:00
Michael Krotscheck
10602b13d9 Add wheel mirror to configure_mirror.sh
This patch adds the wheel mirror location for this particular operating
system/region combo to pip.conf.

Change-Id: I700aaceda2b263c7b2e4ba167a52862d08598108
Depends-on: Ic9b069313c7a4e105cd086bdc4516c6c5826d53e
2016-02-03 09:34:08 -08:00
James E. Blair
981d5d2970 Lowercase mirror host
Pip performs a case-sensitive comparison on the trusted host.  Just
make sure all our hostnames are lower case.

Change-Id: I63a66978a599629cb713c2de99618455f40ed0cc
2016-01-29 13:16:22 -08:00
Michael Krotscheck
0c660e42da Corrected entry for pip's trusted-host
trusted-host should be the hostname, not the URL.

Change-Id: Ie8df441475cd83d0cdd665bcccef60310615671d
2016-01-29 10:01:09 -08:00
Michael Krotscheck
82c8262321 Added schema to pypi mirror
The HTTP schema was missed.

Change-Id: Id255713f942f90a6c6676fda3cfa03aa9804ebcb
2016-01-29 16:34:25 +01:00
James E. Blair
473f875a1f Fix permission error in ready script
The ready script runs as the jenkins user, so to write pip.conf
we need to use sudo.

Change-Id: I94b617f1778bad415d7fa9415c6fcb2cafcb8a5a
2016-01-28 15:56:21 -08:00
Michael Krotscheck
b6264d3d29 Point nodepool slaves at new pypi mirror location.
The configure_mirror script has been updated to point our nodepool
slaves at mirror.<region>.<cloud>.openstack.org/pypi rather than
pypi.<region>.openstack.org.

Change-Id: I895b419e7755f8ec0e5fa594eebc8f9d79d333ba
Depends-on: I3d7629d80fe1e8762344852fab4a942bc476b706
2016-01-28 16:25:29 +00:00
James E. Blair
0da79a780f Write complete pip.conf when nodes are ready
Rather than trying to sed pip.conf, just write the whole thing.
This means we don't have to wait for image updates anymore.  It's
not clear to me why we didn't just do this once we started seding
it.

Change-Id: Ie6743e2a8f95f95cea19a0dbe9fceaedbff8bf94
2016-01-28 08:12:30 -08:00
James E. Blair
8eb0732a00 Remove unused fix_pip.sh
This doesn't appear to be used any more.

Change-Id: I094c42e6eaaaaa779efa7a4978c2fd84557ccf79
2016-01-19 18:03:40 -08:00
Andreas Jaeger
1db085d5ec Wrap some overly long lines
To cut down on noise when running bashate, wrap some overlong lines.

Change-Id: I23dcffbae2539d3d6b11e5527f3d4cbf08a18064
2015-12-23 13:56:53 +01:00
James E. Blair
381d507b04 Increase memory restriction to 9023M
On OVH and Bluebox, the memory layout is such that there is still
significant (~900M) memory above the 8192M address.  Increase the
limit to encompass that, which will bring these providers up to
approximately 8G, while increasing hpcloud (which is the actual
target of this restriction) to about 8.5G.

Change-Id: I5c121be55cadad13ad5807968f33b492f9b1e215
2015-12-15 10:32:06 -08:00
Jenkins
cdd2dfda55 Merge "Remove now duplicate sync;sleep 5" 2015-12-07 13:10:20 +00:00
Andreas Jaeger
d8170deb07 Remove CentOS6 from nodepool scripts
With CentOS6 usage removed, remove special handling for it from nodepool
scripts.

Change-Id: Ife5ec9ade201dcd8f5969087dd2fc88be12dbebd
2015-12-04 22:11:22 +01:00
Andreas Jaeger
ca687cd8b4 Remove centos6 handling from cache_devstack
With CentOS6 support gone, we can remove special treatment from
nodepool scripts.

Change-Id: Ia50de3450c0f21c27740d2d6294d0f2451196e21
2015-12-04 21:52:49 +01:00
Monty Taylor
97c0e3b0b6 Remove now duplicate sync;sleep 5
Since https://review.openstack.org/#/c/196252/ merged, nodepool
injects a sync;sleep 5 after running the scripts, so having it in the
scripts is a double sleep.

Change-Id: Ie7a9315e6de67625eca15b45f1662e4c63f8bc10
2015-12-01 13:27:19 -06:00
Matthew Treinish
3ed5aa98c5 Revert "Set a temporary cap on subunit2sql before 1.0.0 release"
The release has happened, the migration worked, all's right with the
world.

This reverts commit 04eb36588d80dd77a9c692f53470b7d727567604.

Change-Id: I28a3e9cf3b420a6ccca20c52c4e67adc3f5710c5
2015-11-29 17:01:45 +00:00
Matthew Treinish
04eb36588d
Set a temporary cap on subunit2sql before 1.0.0 release
This commit adds a temporary version cap on subunit2sql to be < 1.0.0.
The 1.0.0 release includes a very large database migration which will
be slow to execute. The python DB api from >=v1.0.0 will not work with
a database that doesn't have the updated schema. So while the migration
is running let's cap the version we install to prevent everything from
breaking while the migration is running. (which might take days)

Change-Id: Iab89beb5c7aba8b744a62f5063e513b72cab0ec2
2015-11-23 15:49:58 -05:00
Cyril Roelandt
2554d974b8 Add python3-dev
The gate-neutron-dsvm-functional-py34 job needs Python.h, and it is
currently not available when running Python 3.

Change-Id: I00ce26864db682a4577dc5360519918007aa5499
Partial-Bug: #1500400
2015-10-22 15:08:28 +02:00
Matthew Treinish
76d164b1ba
Create an os-testr venv for running subunit2html
This commit creates a venv for installing os-testr which will enable
all test jobs to have access to the subunit2html utility which has
been moved to live inside the os-testr package instead of as a slave
script.

Change-Id: I2050b54eb2def10438764f3eeb55ecf9caa874dc
2015-08-14 12:37:22 -04:00
Paul Belanger
ebdd2553d0 Remove color output from puppet apply
This help when reading log files from nodepool. Otherwise we see the
following in the log files:

  [1;31mWarning: Config file /etc/puppet/hiera.yaml not found, using
  Hiera defaults[0m

Change-Id: I3a865e5107e2749ed44c144539af49e311e0125f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-08-06 15:38:35 -04:00
yanyanhu
da344ab915 Fix a typo in prepare_node_devstack.sh
Change-Id: I763b6efe57d37c1e2a1da299b9a2a0c32e0df32f
2015-08-04 02:36:07 -04:00
Jeremy Stanley
f954e8ccd4 Revert "Block installing of mock from wheels"
This reverts commit 71d10ea626f5a62d6b48133e19f469b19c9a7f14.

It was unnecessary once the offending wheel got removed from PyPI,
and this never worked anyway. It was preventing the ability to boot
new nodes, erroring thusly:

    ./configure_mirror.sh: line 25: /tmp/pip.conf: Permission denied

Deleting the images to which the change was applied returned
nodepool to being able to boot new nodes again.

Change-Id: I0841c6a5a26cf5be22e2d8fea861bdceb0393842
2015-07-12 01:54:12 +00:00
Monty Taylor
71d10ea626 Block installing of mock from wheels
This is needed until a new wheel of mock can be cut after the new pbr
release is cut.

Change-Id: I96a1794ee754f879514b34add3e36a4a42fd681b
2015-07-10 10:23:22 -04:00
Jeremy Stanley
62ad51e638 Remove managed stable/icehouse branch testing
Remove jobs which test stable/icehouse branches of repos tagged
release:managed as the branch has reached end-of-life and is being
removed from those repos.

Change-Id: I88a44cfa84597012af7da0bd22de02dc2349b1fa
2015-07-01 18:40:41 +00:00
Ian Wienand
877d93bb84 Remove cloud-init details
If we have booted with cloud-init, then this status directory is
populated.  Remove it so when we boot snapshot images, they behave as
if on a fresh system.

Change-Id: Idc9ce01290b659e3239d30be847221447a8e5e84
2015-06-18 14:05:50 +10:00
Ian Wienand
a9444cdad8 Remove mount of ephemeral disk
hpcloud has started sending metadata to cloud-init to mount ephemeral
disks.  This ends up writing a fstab entry for /dev/vdb.

---
$ curl http://169.254.169.254/2009-04-04/meta-data/block-device-mapping/ephemeral0
/dev/vdb
---

It's unclear why this just started happening, but it did.

devstack-gate later attempts to repartition this into swap & disk
space and mount it elsewhere.  So remove this mount from fstab -- it
shouldn't come back because the next thing we do here is tell
cloud-init to not use the metadata source.

Change-Id: I3787d0f7e5139e891686ffbb2970e65d09f112b1
2015-06-18 14:05:38 +10:00
Steve Kowalik
85a0f4f44f Switch to using $() for subshells, part 1
Cleanup every use of `` for subshells in the nodepool and tools
directory , replacing them with $(), and finally making the scripts
consistent.

Change-Id: I2b05cd20f9c9a30ab88f8db235aa81da93b1fad3
2015-06-04 15:30:55 +10:00
James E. Blair
8e5c538e5a Add allow_hosts to pydistutils.cfg
This should cause easy_install to only contact our pypi mirrors
when fetching packages.

https://pythonhosted.org/setuptools/easy_install.html#restricting-downloads-with-allow-hosts

Change-Id: I7f7847721c2e8c6299c7fe5ab20045e8bdbc5bd7
2015-06-02 10:50:03 -07:00
Jenkins
38ec65bd48 Merge "Deal with yum --downloadonly CentOS 6.x quirks" 2015-05-12 21:38:26 +00:00
Jeremy Stanley
3d5b04ed19 Deal with yum --downloadonly CentOS 6.x quirks
Some packages may depend on python-setuptools, which is not
installed and cannot be reinstalled on CentOS 6.x once yum has
erased them, so use --skip-broken to avoid aborting. Also on this
platform --downloadonly causes yum to return nonzero even when it
succeeds, so ignore its exit code.

Change-Id: Iaada39ae81e1e47fe9d0bedba80fd19e4e0e6f38
2015-05-12 15:25:01 +00:00
Clark Boylan
f4bb992006 Don't disable cloud-init if not installed part 2
During scripted snapshot image builds we remove python-setuptools on
rhel/centos 6. This uninstalls cloud-init on hpcloud centos6 builds
because cloud-init depends on setuptools. We don't actually need
cloud-init in hpcloud because they use dhcp and we have hard coded ssh
keys so just don't bother setting cloud-init config if the config dir in
/etc does not exist.

One could argue that we would possibly want cloud-init to regen host
keys for us, but centos' sshd service should do that for us if the host
keys do not exist.

Change-Id: I96621b0ab1574eb8db0f4394877d3c1fc8208576
2015-05-11 19:39:11 -07:00
Jeremy Stanley
0137c25b46 Install yum-plugin-downloadonly on nodes
The --downloadonly option to yum is provided by the
yum-plugin-downloadonly package. This is merely a virtual package
satisfied by yum itself in newer releases, but an optional package
in older ones such as CentOS/RHEL 6.x. Install it just to be sure it
will work, since we use this to pre-cache RPMs on nodepool images.

Change-Id: I9e2e1605f3721c410180aa46a81b7b731d08503a
2015-05-07 13:33:12 +00:00