Commit Graph

1164 Commits

Author SHA1 Message Date
Tony Breeds a72f8af1d1 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: Ic58bebe25bdaaf22e8c26e79e426e8370f91b0ea
2017-09-12 15:44:45 -06:00
Jenkins 6b802a2440 Merge "Add support for nodepool testing of openSUSE 42.3" 2017-07-19 17:52:23 +00:00
Dirk Mueller 1d00c04610 Add support for nodepool testing of openSUSE 42.3
Copy&paste of the relevant code parts of openSUSE 42.2 without
the dot/underscore, which we dropped in other places as well.

Change-Id: I08a663fd03c8545de09d650001ab250eaf40e427
2017-07-17 22:34:08 +02:00
Jenkins c1db43b515 Merge "Remove duplicate python-jenkins code from nodepool" 2017-07-05 14:23:02 +00:00
Jenkins fde5d0ac20 Merge "Cleanup failed upload records" 2017-06-27 17:31:40 +00:00
Jenkins 44bbd16aee Merge "Disable CleanupWorker thread for test_image_upload_fail" 2017-06-27 17:31:11 +00:00
Clark Boylan 18eca9b2ea Cleanup failed upload records
Failed uploads happen when things like clouds disappearing happen. This
then results in hundreds or even thousands of upload records all failed
while we wait for the cloud to return. THis is noise that makes it hard
to debug actual problems with image uploads as you can't easily see what
is current.

Avoid this noise in output by cleaning up Failed records after they have
been recorded.

Change-Id: Ife0cf3dd0d9af6cf7a587e9906726c67271b0d5c
(cherry picked from commit 84336a4d3c)
2017-06-21 13:42:41 -07:00
Paul Belanger 936097d0d8 Disable CleanupWorker thread for test_image_upload_fail
We currently have a race condition between our cleanup worker and our
unit test. My hope is, if we agree to disable the CleanupWorker thread
for the test, we still consider this a valid test.

Change-Id: I04b87ef044de7f99cc9cbd0c08747e53d383693b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
(cherry picked from commit 78dcd29fa3)
2017-06-21 13:42:41 -07:00
David Shrewsbury 9a15144c9b Consider hostname in determining local builds
If DIB fails to produce local files, or if we remove a failing diskimage
from the config before the ZooKeeper node has been removed, we never
remove the znode. Work around this by considering any recorded builds
that have a 'builder' that matches the host doing the cleanup as owned
by that host.

Change-Id: Id3b1e2ae0d0f71209cd66091a7d69143b0b4b20c
2017-06-02 12:35:47 -04:00
David Shrewsbury 1cb82d6313 Update devstack plugin for security groups
The nova client no longer supports security group actions. Use the
openstack client instead.

Change-Id: I208e8c009d0438de19cd3eb08dc45ddebb45d3e9
2017-05-15 14:22:34 -04:00
Ian Wienand 4170b3eb3b Use full path to socat in devstack plugin
Now devstack is systemd-ified, make sure this has full path to avoid
it complaining.

  [/etc/systemd/system/devstack@statsd.service:6] Executable path is not absolute, ignoring: socat -u udp-recv:8125 -

Change-Id: I47ebf5abb86bc202e5bf90b0cc318764cbb0d062
2017-05-02 16:37:27 +10:00
Jenkins db27ad2c8f Merge "Add functional test for key-name and glean" 2017-04-17 13:59:43 +00:00
Jenkins 6e25bc5b3b Merge "Switch to /etc/ci/mirror_info.sh for nodepool mirrors" 2017-04-17 13:50:31 +00:00
Jenkins 9c344977a1 Merge "Add mirror support for fedora-25 DIB" 2017-04-17 13:49:44 +00:00
Paul Belanger 96f3c731e1
Add functional test for key-name and glean
Validate that glean will properly use the key-name from nodepool, and
allow a root user to ssh into the node.

Change-Id: I8e50caed4541ae31e61fb0b84c1b285f7baa4c6b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-13 16:18:04 -04:00
Paul Belanger 1415e94337
Switch to /etc/ci/mirror_info.sh for nodepool mirrors
Now that we have /etc/ci/mirror_info.sh on our images, we can source
it to learn about our mirrors.

Change-Id: I5c90d2aa51565c9f9cc10f33375b8a46967e1989
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-12 15:52:26 -04:00
Paul Belanger 67ba64cc4a
Add mirror support for fedora-25 DIB
Change-Id: I42408d36344a3b49d5ea8d2a7d9289267c9e3ade
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-12 15:47:34 -04:00
Clark Boylan 7086877f0c Cleanup old keypair config option
This old config option was not plumbed though anymore because we stopped
supported snapshot builds where this was used. Nodepool doesn't want to
manage keypairs at all so no creation/addition/listing/deletion, instead
it now accepts per label key name for precreated key in cloud regions
and will boot with that. Unfortunately this old code was "cleaning" up
this new label specified key for us as the only thing it did anymore.

Fix this by removing the dead code and stop deleting keys it doesn't
know about as we aren't managing keys anymore.

Change-Id: Ifff93de1ad81315141bfe1a53dc3d8578faee8e6
2017-04-11 12:01:12 -07:00
Monty Taylor 2d8e29a1bf
Add support for specifying key-name per label
In order to support putting less things into images via puppet in Infra,
we'd like to be able to pre-populate our clouds with keypairs for the
infra-root accounts and have nova add those at boot time.

Change-Id: I72cfffacdeb56e3e9743e47a107fb309a7517935
2017-04-10 17:26:25 -05:00
Paul Belanger e9a40ebb41 Remove ubuntu-precise from dsvm-nodepool jobs
Ubuntu Precise is EOL now, and we have removed the DIBs from
openstack-infra. Remove test coverage for it.

Change-Id: I70d647da84f5f08005922ca7e9d59ca550330006
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-07 12:35:03 -04:00
Jenkins e87e97a6be Merge "Add opensuse 42.2 DIB testing" 2017-04-06 15:36:32 +00:00
Andreas Jaeger c1e5093d89 Remove link to modindex
The documentation build does not generate any module index, thus remove
the link to the page. The page
http://docs.openstack.org/infra/nodepool/py-modindex.html
does not exist.

Change-Id: I0da636955e25dadf60bc9f72f5774d2998c52612
2017-04-03 07:50:17 +00:00
Paul Belanger cfa4278321 Add opensuse 42.2 DIB testing
As we look to enable opensuse-42.2 images for nodepool.o.o, add
support for jobs to build them. EG: glean and diskimage-builder.

Change-Id: I34e98f0f7693859ed05011b008334628adff612f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-02 19:36:42 -04:00
Jenkins 3f9d2af604 Merge "Add debian-jessie DIB for dsvm testing" 2017-03-29 18:23:45 +00:00
Paul Belanger cca0636bd6 Add debian-jessie DIB for dsvm testing
Add more test coverage for debian, due to recent issues with
system-config debian-jessie jobs failing. It also give projects like
glean and diskimage-builder more coverage.

Change-Id: If5e7fa98ee379f7339148de3ea6574bbcda2b032
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-27 11:00:35 -04:00
Monty Taylor 9b2e36e2fb
Add novaclient and keystoneauth debug logging
So that we can trace the API calls being made, put in debug logging for
novaclient and keystoneauth.

Change-Id: Ib2c95a416131f5b7b3d7779e8b9cbf0f4c823e49
2017-03-23 09:24:31 -05:00
Jenkins 30c4b46b48 Merge "Default config-drive to true" 2017-03-15 17:36:22 +00:00
Paul Belanger 60103bda5e Check if /etc/apt/apt.conf.d first exists
For example, it doesn't make sense to add this to centos / fedora
DIBs.

Change-Id: If7574c84e135f447d9601140dae138242162c2d2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-08 14:40:55 -05:00
Paul Belanger 7142c2193a Remove ubuntu-precise from AFS mirror list
We don't actually mirror precise, so fall back to default settings for
APT mirrors.

Change-Id: Ifed9e8e6e22aba5a65b27d22706d4a665a7ffe0a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-08 14:24:08 -05:00
Jenkins d3a7cfa268 Merge "Fix potential race in image upload cleanup" 2017-03-06 17:30:58 +00:00
Jenkins 590059f607 Merge "Clarification about the rate parameter" 2017-03-06 17:23:26 +00:00
James E. Blair d616e61723 Add destructor to SSHClient
Newer versions of paramiko require a client object to be explicitly
closed.  Fortunately, we wrap all of our use of paramiko client
objects in our own class.  Add a destructor to our class which
closes the client object.

Note, this has been tested to work (and is needed) even if a
connection is not established.

Change-Id: I5dff7ed254567968b42d053b85004769f8647ecb
2017-02-28 15:47:00 -08:00
Paul Belanger 2216e349c0 Fix logic error with nodepool-id
In our case, we won't have zuulv3-dev setting metadata but
nodepool.o.o will.  This now means, nodepool.o.o should not delete
'leaked' nodes because zuulv3-dev.o.o has launched them.

Change-Id: I9a2dbd3845928f83a9cca67082fd6b1ca247a607
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-02-28 13:13:48 -05:00
Paul Belanger a6f4f6be9b Add nodepool-id to provider section
Currently, while testing zuulv3, we are wanting to share the
infracloud-chocolate provider between 2 nodepool servers.  The current
issue is, if we launch nodes from zuulv3-dev.o.o, nodepool.o.o will
detect the nodes as leaked and delete them.

A way to solve this, is to create a per provider 'nodepool-id' where
an admin can configure 2 separate nodepool servers to share the same
tenant.  The big reason for doing this, is so we don't have to stand
up a duplicate nodepool-builder and upload duplicate images.

Change-Id: I03a95ce7b8bf06199de7f46fd3d0f82407bec8f5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-02-27 15:16:57 -05:00
David Moreau-Simard ed4eb0ce67 Clarification about the rate parameter
Change-Id: I1d1900c143ceff43748752846395ee8ca6ffd899
2017-02-22 10:46:12 -05:00
David Shrewsbury ac1e0bac53 Fix potential race in image upload cleanup
It's possible for an active image upload to complete during the
builder cleanup phase, which would release its lock and change
the state to READY. If the cleanup thread has cached the UPLOADING
state and checks to see if the upload is in progress (just after
the lock has been release), then we could accidentally delete the
upload record because we don't have the correct state. This adds
a second check on the state to make sure it didn't change on us.

Change-Id: I60be43e999cf86d4c3c46e6ea69ecd1bcb69f533
2017-02-16 09:20:39 -05:00
Jenkins cb1f52634a Merge "Make web status text/plain" 2017-02-14 15:36:48 +00:00
Jenkins 1ff41354f1 Merge "Support AFS mirrors for nodepool diskimages" 2017-02-09 14:05:05 +00:00
Jenkins 24c54016be Merge "Start using dogpile caching in devstack tests" 2017-02-08 15:45:27 +00:00
Jenkins 117f8e5a10 Merge "Set diskimage formats for building state" 2017-02-06 20:24:19 +00:00
Ian Wienand 3e0035e908 Make web status text/plain
When I added the JSON targets in
I3410a4e4efd649732747b0502d66d212f50fa1bb I also changed the text
output mime-type to be application/text, which seemed to pair with
application/json.  But this means browsers prompt to download the file
rather than display it, which is not the intention.  Restore to
text/plain.

Change-Id: I6fa6597b2fcd05a4c33ba4932c966101daf98ecf
2017-02-03 11:57:50 +11:00
Monty Taylor a21a2cdae7
Add comment explaining test-not-create behavior
Change-Id: I37ed71d0ffc405ea430815aa2b208bda84e0d798
2017-01-31 16:43:06 -06:00
Monty Taylor 491fae7b28
Revert "Create mandatory /etc/nodepool for later use"
At first glance, this may be causing a hang on the remote side that is
causing the nodepool test to hang. We didn't notice it because the test
was otherwise broken.

This reverts commit 44ee08c2d7.

Change-Id: Iaef2a140e33fc48f8bfa8ff4769eded37ce152c6
2017-01-31 16:18:57 -06:00
Monty Taylor 7c217682a4
Start nodepool in the test-config phase
test-config is a devstack plugin phase that runs at the very end. That's
much more what we want, and allows us to continue running the services
using the devstack functions.

Change-Id: I1bdfb23d0ba2c988e367cd13171a59398a3b9c71
2017-01-31 14:20:47 -06:00
Jenkins 12d3caf560 Merge "Fix fedora 25 pause bug with devstack" 2017-01-31 18:29:47 +00:00
Jenkins 404be71e92 Merge "Ensure env-vars are strings in config validate" 2017-01-31 12:24:06 +00:00
Jenkins 703c1f4cc6 Merge "Removed redundant 'the'" 2017-01-31 12:21:41 +00:00
Jenkins 576f5281fb Merge "Create mandatory /etc/nodepool for later use" 2017-01-31 12:21:33 +00:00
Paul Belanger fd2b3c921c Fix fedora 25 pause bug with devstack
We mistakenly skipped this setting, as a results fedora-25 images are
built by default, causing un needed churn for our nodepool project
jobs.

Change-Id: Id91991a490709f9bbac5a4f6e9847e047b83ca51
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-01-29 10:51:23 -05:00
Jenkins 5914f28068 Merge "Move to fedora-25 for devstack testing" 2017-01-24 00:19:56 +00:00