]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
9 years agoopenstack: nuke must use ID and not name 763/head
Loic Dachary [Tue, 5 Jan 2016 19:24:48 +0000 (20:24 +0100)]
openstack: nuke must use ID and not name

Otherwise it will fail if there are multiple instances by the same name.

http://tracker.ceph.com/issues/14238 Fixes: #14238

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #756 from dachary/wip-openstack-centos-7-1
Zack Cerza [Wed, 23 Dec 2015 00:52:10 +0000 (17:52 -0700)]
Merge pull request #756 from dachary/wip-openstack-centos-7-1

openstack: support CentOS 7.1

9 years agoMerge pull request #761 from ceph/wip-dbrst-mac
Dan Mick [Wed, 23 Dec 2015 00:19:37 +0000 (16:19 -0800)]
Merge pull request #761 from ceph/wip-dbrst-mac

Downburst: make MAC setting persistent and remove test user's password

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoDownburst: Remove the test user's password 761/head
Zack Cerza [Tue, 22 Dec 2015 23:55:16 +0000 (16:55 -0700)]
Downburst: Remove the test user's password

So that console logins are possible

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoDownburst: Make MAC setting persistent
Zack Cerza [Tue, 22 Dec 2015 23:22:24 +0000 (16:22 -0700)]
Downburst: Make MAC setting persistent

On CentOS hosts, the MAC is being reset on some reboots. Write it to the
appropriate file.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoopenstack: support CentOS 7.1 756/head
Loic Dachary [Thu, 17 Dec 2015 06:40:24 +0000 (07:40 +0100)]
openstack: support CentOS 7.1

It uses the same cloud image as centos-7.0 because it already was 7.1
anyway, only misnamed 7.0 because changing it is inconvenient.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #755 from dachary/wip-openstack-package-data-files
Zack Cerza [Mon, 21 Dec 2015 22:02:14 +0000 (15:02 -0700)]
Merge pull request #755 from dachary/wip-openstack-package-data-files

openstack: package data files

9 years agoMerge pull request #754 from dachary/wip-suite-dry-run-verify-hash
Zack Cerza [Mon, 21 Dec 2015 22:01:28 +0000 (15:01 -0700)]
Merge pull request #754 from dachary/wip-suite-dry-run-verify-hash

suite: honor suite_verify_ceph_hash on --dry-run

9 years agoMerge pull request #753 from dachary/wip-openstack-dead-code
Zack Cerza [Mon, 21 Dec 2015 22:01:08 +0000 (15:01 -0700)]
Merge pull request #753 from dachary/wip-openstack-dead-code

openstack: remove dead code

9 years agoMerge pull request #751 from dachary/wip-openstack-image-private
Zack Cerza [Mon, 21 Dec 2015 21:59:19 +0000 (14:59 -0700)]
Merge pull request #751 from dachary/wip-openstack-image-private

openstack: keep image private

9 years agoMerge pull request #750 from dachary/wip-openstack-bugous-ip
Zack Cerza [Mon, 21 Dec 2015 21:59:00 +0000 (14:59 -0700)]
Merge pull request #750 from dachary/wip-openstack-bugous-ip

openstack: remove bugous static IP regexp

9 years agoMerge pull request #749 from dachary/wip-openstack-dnsmasq
Zack Cerza [Mon, 21 Dec 2015 21:58:43 +0000 (14:58 -0700)]
Merge pull request #749 from dachary/wip-openstack-dnsmasq

dnsmasq is not actually restarting

9 years agoMerge pull request #747 from dachary/wip-openstack-integration-cleanup
Zack Cerza [Mon, 21 Dec 2015 21:55:55 +0000 (14:55 -0700)]
Merge pull request #747 from dachary/wip-openstack-integration-cleanup

tests: openstack-integration is too agressive

9 years agoMerge pull request #746 from dachary/wip-openstack-delegate-tests
Zack Cerza [Mon, 21 Dec 2015 21:55:24 +0000 (14:55 -0700)]
Merge pull request #746 from dachary/wip-openstack-delegate-tests

tests: delegate integration tests to OpenStack

9 years agoMerge pull request #718 from dachary/wip-get-pkg-type
Zack Cerza [Mon, 21 Dec 2015 21:51:43 +0000 (14:51 -0700)]
Merge pull request #718 from dachary/wip-get-pkg-type

misc: get_pkg_type to infer the package time from the os_type

9 years agoMerge pull request #759 from ceph/wip-openstack-requests
Dan Mick [Fri, 18 Dec 2015 22:11:55 +0000 (14:11 -0800)]
Merge pull request #759 from ceph/wip-openstack-requests

Block requests==2.9.0

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoBlock requests==2.9.0 759/head
Zack Cerza [Fri, 18 Dec 2015 22:01:24 +0000 (15:01 -0700)]
Block requests==2.9.0

Because of https://bugs.launchpad.net/nova/+bug/1526413

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #758 from dmick/wip-ntpservers
Zack Cerza [Fri, 18 Dec 2015 19:15:27 +0000 (12:15 -0700)]
Merge pull request #758 from dmick/wip-ntpservers

clock: get the servers to use for ntpdate from ntp.conf

9 years agoclock: get the servers to use for ntpdate from ntp.conf 758/head
Dan Mick [Wed, 9 Dec 2015 01:39:40 +0000 (17:39 -0800)]
clock: get the servers to use for ntpdate from ntp.conf

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agoMerge pull request #757 from ceph/fix-ansible-error-reporting
Zack Cerza [Thu, 17 Dec 2015 20:04:53 +0000 (13:04 -0700)]
Merge pull request #757 from ceph/fix-ansible-error-reporting

ansible: include the contents of the failure log in the exception

9 years agoansible: include the contents of the failure log in the exception 757/head
Andrew Schoen [Thu, 17 Dec 2015 19:51:45 +0000 (13:51 -0600)]
ansible: include the contents of the failure log in the exception

When parsing of the ansible failure log fails this will actually print
the contents of the malformed log in the raised AnsibleFailedError.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
9 years agoMerge pull request #734 from dachary/wip-openstack-ssh
Zack Cerza [Wed, 16 Dec 2015 00:44:06 +0000 (17:44 -0700)]
Merge pull request #734 from dachary/wip-openstack-ssh

openstack: TeuthologyOpenStack.ssh continuous output

9 years agoopenstack: TeuthologyOpenStack.cloud_init_wait continuous output 734/head
Loic Dachary [Sun, 29 Nov 2015 18:54:08 +0000 (19:54 +0100)]
openstack: TeuthologyOpenStack.cloud_init_wait continuous output

Instead of tailing the files every 30 seconds, wait for the
string that proves the teuthology installation completed with a tail -f
and display the result continously.

The number of attempts is reduced from 100 to 30 because there is no
need for repeated calls to tail to check for the desired string.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoopenstack: display reminders before running the suite
Loic Dachary [Sun, 29 Nov 2015 19:36:56 +0000 (20:36 +0100)]
openstack: display reminders before running the suite

If --wait, it is useful to display the URL/ssh reminders before waiting
for the suite to complete.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoopenstack: TeuthologyOpenStack.ssh continuous output
Loic Dachary [Sun, 29 Nov 2015 18:07:36 +0000 (19:07 +0100)]
openstack: TeuthologyOpenStack.ssh continuous output

Instead of waiting for the completion of the ssh command,
display stdout/stderr continously.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agomisc: sh displays sdterr/stdout continuously
Loic Dachary [Sun, 29 Nov 2015 17:50:45 +0000 (18:50 +0100)]
misc: sh displays sdterr/stdout continuously

Instead of blocking until the command completes, which makes for a
better user experience when the command takes more than a second to complete.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoopenstack: package data files 755/head
Loic Dachary [Sat, 12 Dec 2015 23:02:44 +0000 (00:02 +0100)]
openstack: package data files

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agosuite: honor suite_verify_ceph_hash on --dry-run 754/head
Loic Dachary [Sat, 12 Dec 2015 17:58:04 +0000 (18:58 +0100)]
suite: honor suite_verify_ceph_hash on --dry-run

When running dry-run, an attempt is made to figure out if the hash of
the job is already present in the gitbuilder. This must not be done
if suite_verify_ceph_hash is false.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoopenstack: remove dead code 753/head
Loic Dachary [Sat, 12 Dec 2015 12:22:39 +0000 (13:22 +0100)]
openstack: remove dead code

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoopenstack: keep image private 751/head
Robin H. Johnson [Fri, 11 Dec 2015 20:50:11 +0000 (12:50 -0800)]
openstack: keep image private

Ensure a newly created image is private to this tenant by default,
regardless of whatever the openstack defaults are.

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
9 years agoopenstack: remove bugous static IP regexp 750/head
Loic Dachary [Wed, 9 Dec 2015 20:21:52 +0000 (21:21 +0100)]
openstack: remove bugous static IP regexp

Instead of duplicating a bugous static IP regexp, use the get_ip()
method.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agodnsmasq is not actually restarting 749/head
Robin H. Johnson [Mon, 7 Dec 2015 23:44:08 +0000 (15:44 -0800)]
dnsmasq is not actually restarting

The init.d fres, but does nothing.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
9 years agotests: openstack-integration is too agressive 747/head
Loic Dachary [Wed, 2 Dec 2015 11:15:10 +0000 (12:15 +0100)]
tests: openstack-integration is too agressive

It will wipe out all targets in the tenant which can be devastating and
unexpected when multiple teuthology clusters use the same tenant. Filter
the deletion using the ownedby property to limit the destruction to the
targets owned by the cluster in which the integration tests are run.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agotests: delegate integration tests to OpenStack 746/head
Loic Dachary [Tue, 1 Dec 2015 20:30:00 +0000 (21:30 +0100)]
tests: delegate integration tests to OpenStack

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #733 from dachary/wip-openstack-instance
Zack Cerza [Sat, 12 Dec 2015 00:04:23 +0000 (17:04 -0700)]
Merge pull request #733 from dachary/wip-openstack-instance

openstack: use OpenStackInstance in TeuthologyOpenStack

9 years agoMerge pull request #732 from dachary/wip-orchestra-debug
Zack Cerza [Sat, 12 Dec 2015 00:02:39 +0000 (17:02 -0700)]
Merge pull request #732 from dachary/wip-orchestra-debug

orchestra: display connect_args on debug

9 years agoMerge pull request #683 from dachary/wip-13520-openstack-12.04
Zack Cerza [Sat, 12 Dec 2015 00:02:24 +0000 (17:02 -0700)]
Merge pull request #683 from dachary/wip-13520-openstack-12.04

openstack: add support for ubuntu 12.04

9 years agoMerge pull request #731 from dachary/wip-openstack-verify
Zack Cerza [Fri, 11 Dec 2015 23:47:48 +0000 (16:47 -0700)]
Merge pull request #731 from dachary/wip-openstack-verify

openstack: use flavor list to verify connectivity

9 years agoMerge pull request #714 from ceph/wip-teuthology-tree
Zack Cerza [Fri, 11 Dec 2015 20:19:47 +0000 (13:19 -0700)]
Merge pull request #714 from ceph/wip-teuthology-tree

teuthology-describe-tests: a way to examine a qa suite

9 years agodescribe-tests: add newline before start of docstrings 714/head
Josh Durgin [Thu, 10 Dec 2015 00:57:31 +0000 (16:57 -0800)]
describe-tests: add newline before start of docstrings

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agodescribe-tests: fix formatting for flake8
Josh Durgin [Thu, 10 Dec 2015 00:54:28 +0000 (16:54 -0800)]
describe-tests: fix formatting for flake8

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #729 from dachary/wip-typos
Zack Cerza [Wed, 9 Dec 2015 23:36:36 +0000 (16:36 -0700)]
Merge pull request #729 from dachary/wip-typos

fix typos

9 years agoMerge pull request #728 from dachary/wip-openstack-cron-openstack-stale
Zack Cerza [Wed, 9 Dec 2015 23:36:15 +0000 (16:36 -0700)]
Merge pull request #728 from dachary/wip-openstack-cron-openstack-stale

openstack: cleanup leftovers every 30 minutes

9 years agoMerge pull request #725 from dachary/wip-gitlab
Zack Cerza [Wed, 9 Dec 2015 23:35:11 +0000 (16:35 -0700)]
Merge pull request #725 from dachary/wip-gitlab

enable GitLab CI

9 years agoMerge pull request #712 from dachary/wip-13581-openstack-hint
Zack Cerza [Wed, 9 Dec 2015 23:31:09 +0000 (16:31 -0700)]
Merge pull request #712 from dachary/wip-13581-openstack-hint

openstack: enforce hints as an array

9 years agoMerge pull request #743 from dachary/wip-misc-sh-truncate
Zack Cerza [Wed, 9 Dec 2015 23:30:33 +0000 (16:30 -0700)]
Merge pull request #743 from dachary/wip-misc-sh-truncate

misc: truncating shell output to 1024 per line

9 years agodescribe-tests: specify default output format
Josh Durgin [Thu, 3 Dec 2015 03:08:57 +0000 (19:08 -0800)]
describe-tests: specify default output format

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agodescribe-tests: rename input element from 'description' to 'meta'
Josh Durgin [Thu, 3 Dec 2015 02:54:33 +0000 (18:54 -0800)]
describe-tests: rename input element from 'description' to 'meta'

teuthology-suite already uses a top-level description field that other
tools rely on. This is shorter to type too.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agodescribe-tests: add docstrings
Josh Durgin [Thu, 3 Dec 2015 01:57:56 +0000 (17:57 -0800)]
describe-tests: add docstrings

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agodescribe-tests: handle ParseErrors from any method
Josh Durgin [Thu, 3 Dec 2015 01:30:47 +0000 (17:30 -0800)]
describe-tests: handle ParseErrors from any method

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agodescribe-tests: add options for json or csv output
Josh Durgin [Thu, 3 Dec 2015 01:25:30 +0000 (17:25 -0800)]
describe-tests: add options for json or csv output

For simple consumption, use objects with fields in the json output,
and list the headers separately in case the original order is useful.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agodescribe-tests: add subsuite columns for combo output
Josh Durgin [Thu, 3 Dec 2015 00:36:12 +0000 (16:36 -0800)]
describe-tests: add subsuite columns for combo output

This gives more context when looking at larger suites as a whole,
e.g. rbd or rados.

Sort the rows as well, so tests within subsuites, e.g. basic, thrash,
singleton, etc. are grouped together.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agodescribe-tests: add options to show the combinations of a suite
Josh Durgin [Wed, 2 Dec 2015 08:12:18 +0000 (00:12 -0800)]
describe-tests: add options to show the combinations of a suite

Match the behavior of teuthology-suite and generate the full product
of all fragments by default. Include the same filtering and subset
options as well. Just print an asii table for now.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agotest-describe-tests: remove unnecessary vars
Josh Durgin [Wed, 2 Dec 2015 08:09:29 +0000 (00:09 -0800)]
test-describe-tests: remove unnecessary vars

These tests use the class-initialized attributes instead.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agodescribe-tests: tolerate non-dict files
Josh Durgin [Wed, 2 Dec 2015 08:08:00 +0000 (00:08 -0800)]
describe-tests: tolerate non-dict files

Some yamls are empty to represent the absence of a setting, and parse
into None.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoteuthology-describe-tests: change input format to yaml
Josh Durgin [Tue, 1 Dec 2015 01:14:34 +0000 (17:14 -0800)]
teuthology-describe-tests: change input format to yaml

Rather than using comments, read description metadata from a yaml
'description' section. Make it a list so that teuthology-suite
aggregates the descriptions in order, and allow multiple fields by
making the list contain a dict.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoteuthology-describe-tests: rename from teuthology-tree
Josh Durgin [Mon, 30 Nov 2015 23:03:06 +0000 (15:03 -0800)]
teuthology-describe-tests: rename from teuthology-tree

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoteuthology-tree: show facets for each file by default
Josh Durgin [Tue, 24 Nov 2015 21:40:48 +0000 (13:40 -0800)]
teuthology-tree: show facets for each file by default

Suggested by Loic, this provides more context without
needing to remember or look back at the parent directory.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoteuthology-tree: remove whitespace from metadata
Josh Durgin [Sat, 21 Nov 2015 00:49:39 +0000 (16:49 -0800)]
teuthology-tree: remove whitespace from metadata

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoteuthology-tree: add unit tests
Josh Durgin [Sat, 21 Nov 2015 00:31:19 +0000 (16:31 -0800)]
teuthology-tree: add unit tests

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agofake_fs: add fake open() support
Josh Durgin [Fri, 20 Nov 2015 22:34:53 +0000 (14:34 -0800)]
fake_fs: add fake open() support

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agotest: move fs fakes to a common file
Josh Durgin [Fri, 20 Nov 2015 22:13:07 +0000 (14:13 -0800)]
test: move fs fakes to a common file

This will be useful for other tests shortly.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoteuthology-tree: remove cruft from usage
Josh Durgin [Fri, 20 Nov 2015 21:35:42 +0000 (13:35 -0800)]
teuthology-tree: remove cruft from usage

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoteuthology-tree: support multiple lines with the same prefix
Josh Durgin [Fri, 20 Nov 2015 20:57:57 +0000 (12:57 -0800)]
teuthology-tree: support multiple lines with the same prefix

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoteuthology-tree: output in a table
Josh Durgin [Thu, 19 Nov 2015 22:45:39 +0000 (14:45 -0800)]
teuthology-tree: output in a table

This is easier to read since it aligns the metadata.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoscripts: teuthology-tree tool to examine a qa suite
Josh Durgin [Thu, 19 Nov 2015 19:15:31 +0000 (11:15 -0800)]
scripts: teuthology-tree tool to examine a qa suite

An initial prototype, with basic formatting printing out the directory
tree and comments from the yaml fragments.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agomisc: truncating shell output to 1024 per line 743/head
Loic Dachary [Wed, 9 Dec 2015 20:53:44 +0000 (21:53 +0100)]
misc: truncating shell output to 1024 per line

Truncating by default to 128 frequently trims useful debug
information. Set the default to 1024: the intent is to avoid huge logs
when a json output is repeatedly returning large (>10k) payloads.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #742 from ceph/wip-os-version
Dan Mick [Tue, 8 Dec 2015 22:45:46 +0000 (14:45 -0800)]
Merge pull request #742 from ceph/wip-os-version

Remote: only submit X.Y for os_version

Copying comment for future documentation:

The opsys.OS class passes the operating system's version according to
the actual host; in some cases e.g. CentOS is reporting things like
'7.1.1503'. In these cases, let's make
Remote.inventory_info['os_version'] only use the '7.1' - since we don't
care about the rest. This will allow us to continue scheduling against
CentOS smoothly.

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoRemote: only submit X.Y for os_version 742/head
Zack Cerza [Tue, 8 Dec 2015 22:27:33 +0000 (15:27 -0700)]
Remote: only submit X.Y for os_version

The opsys.OS class passes the operating system's version according to
the actual host; in some cases e.g. CentOS is reporting things like
'7.1.1503'. In these cases, let's make
Remote.inventory_info['os_version'] only use the '7.1' - since we don't
care about the rest. This will allow us to continue scheduling against
CentOS smoothly.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #727 from dachary/wip-nuke-stale-openstack
Zack Cerza [Tue, 8 Dec 2015 17:54:27 +0000 (10:54 -0700)]
Merge pull request #727 from dachary/wip-nuke-stale-openstack

nuke: --stale-openstack must cope with disappearing volumes / instances

9 years agonuke: --stale-openstack must cope with disappearing volumes / instances 727/head
Loic Dachary [Wed, 2 Dec 2015 10:19:58 +0000 (11:19 +0100)]
nuke: --stale-openstack must cope with disappearing volumes / instances

"openstack server/volume show" typically takes a few seconds to
complete due to the provider API slowness/throttling. It is possible that
a volume/instance found with "openstack server list" no longer exists when
running "openstack server show" to get more information about it.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #741 from ceph/wip-apt-mirror
Andrew Schoen [Mon, 7 Dec 2015 20:22:57 +0000 (14:22 -0600)]
Merge pull request #741 from ceph/wip-apt-mirror

Stop hardcoding apt-mirror's IP

9 years agoStop hardcoding apt-mirror's IP 741/head
Zack Cerza [Mon, 7 Dec 2015 20:15:45 +0000 (13:15 -0700)]
Stop hardcoding apt-mirror's IP

We will point to apt-mirror.sepia.ceph.com, which is
publicly-accessible.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #740 from smithfarm/wip-bootstrap-opensuse
Zack Cerza [Mon, 7 Dec 2015 19:31:26 +0000 (12:31 -0700)]
Merge pull request #740 from smithfarm/wip-bootstrap-opensuse

bootstrap: fixes for openSUSE

9 years agobootstrap: fixes for openSUSE 740/head
Nathan Cutler [Mon, 7 Dec 2015 13:17:09 +0000 (14:17 +0100)]
bootstrap: fixes for openSUSE

When a package is found not to exist, we need to also check if there
is another package installed that provides a capability of the same
name.

Also, the python-devel package must be installed, or the pip phase
fails.

http://tracker.ceph.com/issues/14002 Fixes: #14002

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoMerge pull request #737 from ceph/wip-config-port
Andrew Schoen [Thu, 3 Dec 2015 16:19:49 +0000 (10:19 -0600)]
Merge pull request #737 from ceph/wip-config-port

Use the newer config API

9 years agonuke: Use newer config API 737/head
Zack Cerza [Tue, 1 Dec 2015 18:46:40 +0000 (11:46 -0700)]
nuke: Use newer config API

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agonuke: Linter fixes
Zack Cerza [Tue, 1 Dec 2015 18:44:25 +0000 (11:44 -0700)]
nuke: Linter fixes

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agomisc: Use newer config API
Zack Cerza [Tue, 1 Dec 2015 18:44:07 +0000 (11:44 -0700)]
misc: Use newer config API

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoImplement YamlConfig.get()
Zack Cerza [Wed, 2 Dec 2015 16:58:45 +0000 (09:58 -0700)]
Implement YamlConfig.get()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoDrop misc.read_config()
Zack Cerza [Tue, 1 Dec 2015 21:29:14 +0000 (14:29 -0700)]
Drop misc.read_config()

Replace with config.set_config_attr(). This is mainly for
backward-compatibility in tasks contained in ceph-qa-suite.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoopenstack: use OpenStackInstance in TeuthologyOpenStack 733/head
Loic Dachary [Sun, 29 Nov 2015 18:03:51 +0000 (19:03 +0100)]
openstack: use OpenStackInstance in TeuthologyOpenStack

The setup() function of TeuthologyOpenStack creates an OpenStackInstance
datamember to cache results and avoid running numerous duplicate
commands.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoorchestra: display connect_args on debug 732/head
Loic Dachary [Sun, 29 Nov 2015 18:02:25 +0000 (19:02 +0100)]
orchestra: display connect_args on debug

Instead of log.info because it is noisy.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoopenstack: use flavor list to verify connectivity 731/head
Loic Dachary [Sun, 29 Nov 2015 17:53:19 +0000 (18:53 +0100)]
openstack: use flavor list to verify connectivity

Using the server list to verify if the connection to the OpenStack
cluster works may generate too much output if there are many
instances. Use the last two lines of flavor list instead.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agofix typos 729/head
Loic Dachary [Sun, 29 Nov 2015 10:39:18 +0000 (11:39 +0100)]
fix typos

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoopenstack: cleanup leftovers every 30 minutes 728/head
Loic Dachary [Fri, 27 Nov 2015 22:44:04 +0000 (23:44 +0100)]
openstack: cleanup leftovers every 30 minutes

Resources are billed by the hour, it makes a difference to cleanup
leftovers once every hour. Provide a crontab that runs

  teuthology-nuke --stale-openstack

every 30 minutes.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoopenstack: enforce hints as an array 712/head
Loic Dachary [Sat, 21 Nov 2015 11:01:40 +0000 (12:01 +0100)]
openstack: enforce hints as an array

All OpenStack hints have been converted to arrays (hammer, infernalis,
master), raise an error if a hint is added old style to avoid mixing
style.

http://tracker.ceph.com/issues/13581 Fixes: #13581

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoopenstack: add support for ubuntu 12.04 683/head
Loic Dachary [Thu, 29 Oct 2015 17:11:26 +0000 (02:11 +0900)]
openstack: add support for ubuntu 12.04

Workaround the bug in cloud-init 0.6.3 that prevents the final message
from being
displayed (https://bugs.launchpad.net/cloud-init/+bug/1511485). Also
make the Ubuntu 14.04 user-data file not a symlink since it looks like
each version will need its own.

http://tracker.ceph.com/issues/13520 Fixes: #13520

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoenable GitLab CI 725/head
Loic Dachary [Tue, 1 Dec 2015 17:47:13 +0000 (18:47 +0100)]
enable GitLab CI

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #723 from dachary/wip-nuke-stale-openstack
Zack Cerza [Tue, 1 Dec 2015 17:38:33 +0000 (10:38 -0700)]
Merge pull request #723 from dachary/wip-nuke-stale-openstack

nuke: cleanup stale OpenStack resources

9 years agoMerge pull request #709 from ceph/wip-epel-remove
Zack Cerza [Tue, 1 Dec 2015 17:18:34 +0000 (10:18 -0700)]
Merge pull request #709 from ceph/wip-epel-remove

Remove epel packages during downstream testing if present on the node

9 years agoMerge pull request #710 from dachary/wip-internal-buildpackages
Zack Cerza [Tue, 1 Dec 2015 17:16:09 +0000 (10:16 -0700)]
Merge pull request #710 from dachary/wip-internal-buildpackages

internal: the buildpackages task must come first

9 years agoMerge pull request #719 from dachary/wip-openstack-parallel-delete
Zack Cerza [Tue, 1 Dec 2015 17:01:56 +0000 (10:01 -0700)]
Merge pull request #719 from dachary/wip-openstack-parallel-delete

openstack: run 20 server/deletion at a time

9 years agoMerge pull request #720 from dachary/wip-openstack-instance-size
Zack Cerza [Tue, 1 Dec 2015 16:58:03 +0000 (09:58 -0700)]
Merge pull request #720 from dachary/wip-openstack-instance-size

openstack: teuthology for 100 or more need 32GB

9 years agoMerge pull request #722 from dachary/wip-openstack-parallel
Zack Cerza [Tue, 1 Dec 2015 16:57:32 +0000 (09:57 -0700)]
Merge pull request #722 from dachary/wip-openstack-parallel

openstack: run one job at a time by default

9 years agonuke: cleanup stale OpenStack resources 723/head
Loic Dachary [Fri, 27 Nov 2015 20:41:57 +0000 (21:41 +0100)]
nuke: cleanup stale OpenStack resources

Implement the --stale-openstack action to cleanup OpenStack resources
that are known to be stale because:

* instances or volumes have been created a long time ago
* instances or volumes with REMOVE-ME in the name
* nodes that are locked but did not get an instance

Only the instances and volumes known to belong to the teuthology cluster
because they have ownedby=IP in the name are considered, where IP is the
IP address of the machine running the teuthology clusters.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agolock: locked_since_seconds converts locked_since
Loic Dachary [Fri, 27 Nov 2015 20:39:43 +0000 (21:39 +0100)]
lock: locked_since_seconds converts locked_since

The node locked_since property is converted by locked_since_seconds
into the number of seconds since the present time, which is convenient
to compare with configured delays.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoopenstack: introduce OpenStackInstance
Loic Dachary [Sun, 22 Nov 2015 22:57:30 +0000 (23:57 +0100)]
openstack: introduce OpenStackInstance

To reduce the number of redundant calls and reduce the code complexity.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agointernal: the buildpackages task must come first 710/head
Loic Dachary [Sat, 14 Nov 2015 09:00:03 +0000 (10:00 +0100)]
internal: the buildpackages task must come first

Otherwise the machines will be locked and remain idle while the packages
are building. When there are 20 jobs requiring a package, it means an
average of 40 machines locked idle while the packages are building.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agomisc: get_pkg_type to infer the package time from the os_type 718/head
Loic Dachary [Sat, 14 Nov 2015 15:09:59 +0000 (16:09 +0100)]
misc: get_pkg_type to infer the package time from the os_type

Signed-off-by: Loic Dachary <loic@dachary.org>