153 Commits

Author SHA1 Message Date
Paul Belanger
062fa627f6 Add ubuntu-mariadb to configure_mirror.sh
Change-Id: I20d9091f6540dd8074820963132233cb1d2cd1c3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-02 14:13:31 -05:00
Paul Belanger
6f3bb9d7f5 Add nl01.o.o support for configure_mirror.sh
Because we are using the 'zuul' user to SSH into our zuul workers, we
need to add it to configure_mirror.sh and still support the jenkins
user.

Change-Id: I79eff670f56d06c49a16e1330a73889e7b8482f1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-02-22 10:07:21 -05:00
Paul Belanger
736cee2421 Remove fedora-24 from openstack-infra
Now that we have migrated all our jobs to fedora-25, we can remove
fedora-24 from project-config.

Change-Id: I3a58c785c12f779060a6dca5cd40ddcc46429971
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-01-22 12:02:33 -05:00
Paul Belanger
25968cc69a Add support for fedora (25+) AFS mirrors
Now that fedora-25 is online, we can start using the new AFS mirror for
fedora. Keep in mind, we didn't mirror fedora-24, since fedora-25 will
be replacing it.

Once fedora-24 has been removed from nodepool.yaml, we can remove our
conditional check.

Change-Id: I1bd510c6a568b71b604c27d6cae16d2654063d0c
Depends-On: I762e55fb7fe0c5ebfb7810545ddb4d5ccfedf2ff
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-01-13 16:11:37 -05:00
Jenkins
1b4bc250cc Merge "cleanup: remove unused scripts used for snapshots" 2016-11-15 15:25:59 +00:00
Paul Belanger
e2cec702be Support all 3 repos for UCA mirrors
We incorrectly setup our mirrors for UCA. Now we support 3 openstack
releases.

Change-Id: Ie3a05398d9fdc7a7f7c0c74366a7c4dd70200a2b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-08 12:22:13 -05:00
Isaac Beckman
3f04bd8071 cleanup: remove unused scripts used for snapshots
This review cleanup scripts that were exclusively used by
snapshot scripts for nodepool which were removed in:
https://review.openstack.org/#/c/331494/

Change-Id: I37900a5d698a43bc0d510100289a5a7ec527021d
2016-11-06 11:43:16 +02:00
Jenkins
5d5fa20a57 Merge "Remove snapshot scripts for nodepool" 2016-11-03 14:45:01 +00:00
Paul Belanger
d9ce152ced
Use Debian AFS mirror for debian-jessie nodes
Change-Id: I16f4232570975ee668d52785de0276c4a60539a7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-26 22:47:24 -04:00
Paul Belanger
d623c337ba
Include dib-builddate.txt for configure_mirror.sh
Update our script to provide additional debug information, such as the
builddate of our DIB images.

Change-Id: Ie399b1ac9cd6c6ea4372378ae7b7bf930fac16a3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-23 11:24:58 -04:00
Paul Belanger
a44be1116e
Run host lookup first for configure_mirror.sh
A cosmetic change to reduce the debug output on DNS failures. First
check for valid DNS, then proceed with configuration.

Change-Id: I3370a155bf6b49088c398dc9d4d572b6210b84b2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-23 11:21:49 -04:00
Jenkins
a286f8c8d4 Merge "Add smarter dns checking for configure_mirror.sh" 2016-08-22 18:08:58 +00:00
Jenkins
64e0f4dba7 Merge "Resolve DNS soon in configure_mirror.sh" 2016-08-18 13:43:31 +00:00
Paul Belanger
79120078ea
Use ip6tables if nodepool is using IPv6
Change-Id: Ifebc8061dbbc99eed47938c7401b5220fd62d19a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-17 13:41:47 -04:00
Paul Belanger
fce3a76c22
Add smarter dns checking for configure_mirror.sh
After noticing ubuntu-xenial launch failures in osic-cloud1, it looks
like our unbound service is taking up to 1 minute to start properly.
So wait 30 seconds for host to timeout, and try 10 times.  This gives
us a 300 second timeout window to configure DNS properly.

Change-Id: Id0432c91cc853fb4ecab43da991948c2e9d84b7d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-15 22:20:17 -04:00
Paul Belanger
599c3a9da4
Resolve DNS soon in configure_mirror.sh
Because how often we run into nodes having DNS issues, a large amount
of debug info is dumped into nodepool logs when the ready-script
fails.

As such, move our dns checks soon so the ready-script failure output
is minimized.

Change-Id: I003f8ee816f279ef30075524c1b806e93c56e7f9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-12 15:32:04 -04:00
Jenkins
8bb2d58add Merge "Fix preseed script for the brave new world" 2016-08-11 05:21:39 +00:00
Paul Belanger
52fbebbb1b
Add $LSBDISTCODENAME-newton-backports for debian-openstack mirror list
Now that we have debian-openstack-newton-backports online, we need to
update our source.list file for debian.

Change-Id: I55ef64ff7f1ed0c3fbd01e9666d3adab76928f6d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-05 09:03:11 -04:00
Paul Belanger
c2eb77b0f1
Add debian-openstack source.list to debian
We now offer debian-openstack packages[1] for jessie-newton. Give a
way for users to enable them.

[1] http://mirror.dfw.rax.openstack.org/debian-openstack/

Change-Id: Ie3343608fb4c3af77680fb959c717785bc2567c6
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-01 20:13:36 -04:00
Jeremy Stanley
0ba568d42e
Refactor mirror configuration script for scaling
To make it easier to follow additions to configure_mirror.sh as we
grow more and more mirrors of things, separate the configuration
file contents into separate variable definitions so they don't make
the script logic as hard to follow.

Change-Id: I421da8eefeb040d9daded59b8d62158f0aa1610b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-07-22 11:29:52 -04:00
Clark Boylan
a51c6602e3 Remove old ceph apt sources config
We have successfully migrated the devstack-plugin-ceph repo over to
using the opt in apt sources list for ceph mirroring. They were the
consumer of this so we can remove having it installed by default now.

Change-Id: Ibb3f906e673aa86ad1222e52d3a1c96104b0a00c
2016-07-19 13:29:24 -07:00
Steven Dake
8df33536ea Add an ubuntu cloud archive lists file
Note the format of the deb on my system is:
deb http://ubuntu-cloud.archive.cononical.com/ubnut trusty-updates/mitaka main

Change-Id: Ieb1e0cddf3bec724bb09b2eeeef068a719222fbf
2016-07-08 18:46:40 -07:00
Clark Boylan
d51ebf69ac Opt in test instance apt repo mirror configs
Rather than enabling ceph and cloud archive repos by default when when
configuring test instances to use our apt repo mirrors write out
configures for them in another directory which can be optionally
enabled.

This prevents growing dependencies on these repositories except for
where explicitly desired.

To use a mirror either symlink to the sources.list.available.d/ files or
copy them into sources.list.d/ and rerun apt-get update.

Change-Id: I410f45064080e1bb93684899028e9af34bd555a1
2016-07-08 09:09:05 -07:00
Alexander Evseev
7c43abd15e Fix configuring mirror for CentOS in nodepool
* add NODEPOOL_CENTOS_MIRROR to set custom CentOS mirror in same manner
    as for Ubuntu
  * add NODEPOOL_EPEL_MIRROR to set custom EPEL mirror
  * use $releasever for CentOS and EPEL repositories

Change-Id: I93c92aea60725bb9b172e6fed12655e4a94b265b
2016-06-29 12:34:33 +03:00
Matthew Treinish
d0590b73e7
Fix preseed script for the brave new world
Ever since we started populating the subunit2sql db with data from all
gate and periodic jobs this script has been kinda useless. This was
added with the intent to preseed tempest runs with data from past runs
to hopefully have a positive impact on the testr scheduler. (its
actual usefulness is limited because of bug 1416512 and other
scheduler limitations) However, because we're not filtering now we
end up preseeding tempest runs with data from things like zuul unit
tests which are just a waste. This commit adds the necessary
filtering to the DB queries to ensure we only preseed with data
from previous tempest runs.

Note: For this patch to work the depends-on below must be included in
a subunit2sql release

Change-Id: I32866d63b5f0fa406213709fc88a9029d0318645
Depends-On: Id6ca7e7a4cd1f913d9f84efae5f48d247dd9ed64
2016-06-23 11:54:27 -04:00
Paul Belanger
18c3b9c46e
Remove snapshot scripts for nodepool
Currently these 9 scripts are no longer used by nodepool. While we
could leave them in tree, I'd like to remove them as not to encourage
users to use / reference them.

They have served us well in the past, but no longer of use today.

Change-Id: Ib954ad59988b81a9b60ab4d2dede7f1008cea21a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-06-19 19:04:53 -04:00
Paul Belanger
df58489056
Add support for xenial-backports
Our AFS mirrors now support xenial-backports[1].

[1] http://mirror.dfw.rax.openstack.org/ubuntu/dists/xenial-backports/

Change-Id: Idd355721a28595c7fcef7e17385f9cb893952801
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-05-26 20:23:31 -04:00
Michael Krotscheck
2580b420f3
Loosened npm cache timeout values.
This patch loosens the timeout requirements for npm on our jenkins
nodes, in order to accomodate a cold AFS cache.

Change-Id: Icba1366aac3cb831b4b00441f691cfaca38ddb6e
2016-05-18 11:32:54 -07:00
Paul Belanger
d274f5265d
Add epel support for configure_mirror.sh
Change-Id: I5098ba8ad2e78832be9309526c274100d00c744a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-05-17 17:52:05 -04:00
Jenkins
d667edc926 Merge "Configure npm mirror for nodepool slaves." 2016-05-16 14:15:18 +00:00
Michael Krotscheck
71b360a0d9
Configure npm mirror for nodepool slaves.
This patch adds the npm mirror location to jenkins' .npmrc file,
which should supercede anything except an explicit declaration in
a similar file at a project root. All javascript jobs from this
point forward will use our npm mirrors rather than the public
registry.

Change-Id: I2b6463225ac86b83fa0c11ecdd390968b2209c4b
2016-05-11 09:51:28 -07:00
Paul Belanger
a59acc8238
Add CentOS support to configure_mirror.sh
Change-Id: I00417bf8a0fb1391a2392b9b2c5e0b5660e11da2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-05-11 12:48:04 -04:00
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