]> git.apps.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
9 years agoMerge pull request #2 from zmc/wip-suite-tests 637/head
Loic Dachary [Mon, 2 Nov 2015 21:03:44 +0000 (22:03 +0100)]
Merge pull request #2 from zmc/wip-suite-tests

suite: Fix updated unit test

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agosuite: Fix updated unit test
Zack Cerza [Mon, 2 Nov 2015 20:18:26 +0000 (13:18 -0700)]
suite: Fix updated unit test

First, split half of test_schedule_suite into
test_schedule_suite_noverify. Also reflect the fact that Mock doesn't
provide a simple assert_called().

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agosuite: add config.suite_verify_ceph_hash when no gitbuilder
Loic Dachary [Tue, 15 Sep 2015 10:50:49 +0000 (12:50 +0200)]
suite: add config.suite_verify_ceph_hash when no gitbuilder

The suite_verify_ceph_hash configuration option is added to disable the
gitbuilder package verifications.

If True, teuthology-suite verifies that a package matching the ceph
branch exists in the gitbuilder. If False, no verification is done and
teuthology-suite assumes the packages are either not necessary to run
the task or they are created on demand.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agosuite: implement git_branch_exists with ls-remote 684/head
Loic Dachary [Thu, 29 Oct 2015 22:40:00 +0000 (07:40 +0900)]
suite: implement git_branch_exists with ls-remote

Use git ls-remote to verify the existence of a branch instead of a
github specific interface so that it plays well with all valid git
remote URL.

Rename github_branch_exists into git_branch_exists.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agosuite: add the git_ls_remote function
Loic Dachary [Thu, 29 Oct 2015 02:59:08 +0000 (11:59 +0900)]
suite: add the git_ls_remote function

It was inlined and used as a fallback when not extracting the ceph hash
from gitbuilders.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agosuite: split build_git_url out of github_branch_exists
Loic Dachary [Thu, 29 Oct 2015 02:57:34 +0000 (11:57 +0900)]
suite: split build_git_url out of github_branch_exists

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #681 from dachary/wip-instance-create-global-lock
Zack Cerza [Thu, 29 Oct 2015 20:25:16 +0000 (14:25 -0600)]
Merge pull request #681 from dachary/wip-instance-create-global-lock

openstack: global server creation lock

9 years agoMerge pull request #678 from dachary/wip-git-url
Zack Cerza [Thu, 29 Oct 2015 19:25:41 +0000 (13:25 -0600)]
Merge pull request #678 from dachary/wip-git-url

suite: use get_ceph_*_url when checking branches

9 years agoMerge pull request #682 from dachary/wip-sh-verbosity
Zack Cerza [Thu, 29 Oct 2015 01:25:19 +0000 (19:25 -0600)]
Merge pull request #682 from dachary/wip-sh-verbosity

misc: .sh must not log the output twice on error

9 years agomisc: .sh must not log the output twice on error 682/head
Loic Dachary [Wed, 28 Oct 2015 23:43:36 +0000 (08:43 +0900)]
misc: .sh must not log the output twice on error

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoopenstack: global server creation lock 681/head
Loic Dachary [Wed, 28 Oct 2015 23:20:46 +0000 (08:20 +0900)]
openstack: global server creation lock

An attempt to reduce the instance error rate on OVH. When all workers
are on the same machine, it makes them wait for an instance creation to
complete before running another one. If not, it is possible for 200
workers to run 200 server creation simultaneously. While this should be
throttled by OVH, these bursts may be the cause for occasional instance
creation errors: few tenants are likely to have such a pattern.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #677 from dachary/wip-openstack-cliff
Zack Cerza [Wed, 28 Oct 2015 20:06:14 +0000 (14:06 -0600)]
Merge pull request #677 from dachary/wip-openstack-cliff

openstack: server show must always return array

9 years agoMerge pull request #680 from dachary/wip-sh-verbosity
Zack Cerza [Wed, 28 Oct 2015 19:37:55 +0000 (13:37 -0600)]
Merge pull request #680 from dachary/wip-sh-verbosity

misc: reduce misc.sh verbosity

9 years agomisc: reduce misc.sh verbosity 680/head
Loic Dachary [Wed, 28 Oct 2015 18:25:40 +0000 (03:25 +0900)]
misc: reduce misc.sh verbosity

Only shows the first 128 characters of the output when the command
succeeds and show all of it only when it fails.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agosuite: use get_ceph_*_url when checking branches 678/head
Loic Dachary [Tue, 20 Oct 2015 00:03:10 +0000 (02:03 +0200)]
suite: use get_ceph_*_url when checking branches

Otherwise the check is always done on the default
http://github.com/ceph/xxx

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoopenstack: server show must always return array 677/head
Loic Dachary [Mon, 26 Oct 2015 09:09:47 +0000 (18:09 +0900)]
openstack: server show must always return array

If cliff-tablib is not present, the output of openstack server show is a
dictionary, otherwise it is a list of Field/Value pairs. Since
cliff-tablib is not a required dependency of python-openstack client,
the output format of openstack server show may vary. Add cliff-tablib as
a dependency so that the output format is always the same.

https://bugs.launchpad.net/python-openstackclient/+bug/1510546

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #675 from dachary/wip-openstack-timeout
Zack Cerza [Tue, 27 Oct 2015 15:51:49 +0000 (09:51 -0600)]
Merge pull request #675 from dachary/wip-openstack-timeout

openstack: increase ssh timeout to 240

9 years agoMerge pull request #673 from dachary/wip-openstack-doc-pulpito
Zack Cerza [Tue, 27 Oct 2015 15:51:33 +0000 (09:51 -0600)]
Merge pull request #673 from dachary/wip-openstack-doc-pulpito

openstack: the web interface is pulpito

9 years agoMerge pull request #672 from dachary/wip-openstack-tests-capture-log
Zack Cerza [Tue, 27 Oct 2015 15:51:15 +0000 (09:51 -0600)]
Merge pull request #672 from dachary/wip-openstack-tests-capture-log

openstack: tests: look in caplog

9 years agoMerge pull request #671 from dachary/wip-openstack-dead-code
Zack Cerza [Tue, 27 Oct 2015 15:50:26 +0000 (09:50 -0600)]
Merge pull request #671 from dachary/wip-openstack-dead-code

openstack: remove dead code

9 years agoMerge pull request #669 from dachary/wip-openstack-set-provider
Zack Cerza [Tue, 27 Oct 2015 15:50:11 +0000 (09:50 -0600)]
Merge pull request #669 from dachary/wip-openstack-set-provider

openstack: implement OpenStack.set_provider

9 years agoMerge pull request #667 from dachary/wip-openstack-reset-gitbuilder-host
Zack Cerza [Tue, 27 Oct 2015 15:49:44 +0000 (09:49 -0600)]
Merge pull request #667 from dachary/wip-openstack-reset-gitbuilder-host

openstack: reset the gitbuilder_host on stop

9 years agoopenstack: increase ssh timeout to 240 675/head
Loic Dachary [Mon, 26 Oct 2015 08:35:34 +0000 (17:35 +0900)]
openstack: increase ssh timeout to 240

When the connectivity is not great, this is required.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoopenstack: the web interface is pulpito 673/head
Loic Dachary [Tue, 27 Oct 2015 00:09:24 +0000 (09:09 +0900)]
openstack: the web interface is pulpito

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoopenstack: tests: look in caplog 672/head
Loic Dachary [Mon, 26 Oct 2015 23:10:59 +0000 (08:10 +0900)]
openstack: tests: look in caplog

The output is now logged, use caplog instead of capsys and add it as a
test dependency.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoopenstack: remove dead code 671/head
Loic Dachary [Tue, 20 Oct 2015 16:24:06 +0000 (18:24 +0200)]
openstack: remove dead code

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #670 from ceph/wip-nuke-ovh
Loic Dachary [Sat, 24 Oct 2015 07:38:30 +0000 (09:38 +0200)]
Merge pull request #670 from ceph/wip-nuke-ovh

Fixes related to ProvisionOpenStack.destroy()

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agomisc.sh(): Use Popen instead of check_output() 670/head
Zack Cerza [Fri, 23 Oct 2015 22:26:49 +0000 (16:26 -0600)]
misc.sh(): Use Popen instead of check_output()

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agomisc.sh(): Don't log.exception() before raise
Zack Cerza [Fri, 23 Oct 2015 22:00:06 +0000 (16:00 -0600)]
misc.sh(): Don't log.exception() before raise

log.exception() logs the traceback, and raise will also cause it to be
logged. There's no need to have it logged twice; additionally, when sh()
was being called within a try/except clause we were confusingly logging
an expected failure. Callers can choose to log if they want.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agomisc.sh(): Don't log empty output
Zack Cerza [Fri, 23 Oct 2015 20:38:53 +0000 (14:38 -0600)]
misc.sh(): Don't log empty output

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoSkip volume detachment on broken instances
Zack Cerza [Thu, 22 Oct 2015 21:14:36 +0000 (15:14 -0600)]
Skip volume detachment on broken instances

That is, if the state is 'ERROR', don't attempt to detach volumes before
deleting.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoProvisionOpenStack: Cache server info in destroy()
Zack Cerza [Thu, 22 Oct 2015 21:05:22 +0000 (15:05 -0600)]
ProvisionOpenStack: Cache server info in destroy()

So we don't have to call "openstack server show" twice

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoOpenStack: Enable caching instance info
Zack Cerza [Thu, 22 Oct 2015 21:02:52 +0000 (15:02 -0600)]
OpenStack: Enable caching instance info

... via a new show() method, which returns the information from
"openstack server show -f json"

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoOpenStack.get_value(): Be case-insensitive.
Zack Cerza [Thu, 22 Oct 2015 20:07:03 +0000 (14:07 -0600)]
OpenStack.get_value(): Be case-insensitive.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoProvisionOpenStack.destroy(): Don't pass --wait
Zack Cerza [Thu, 22 Oct 2015 16:44:02 +0000 (10:44 -0600)]
ProvisionOpenStack.destroy(): Don't pass --wait

... when deleting the instance

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoopenstack: implement OpenStack.set_provider 669/head
Loic Dachary [Thu, 22 Oct 2015 13:57:11 +0000 (15:57 +0200)]
openstack: implement OpenStack.set_provider

Setting the provider name depending on the OS_AUTH_URL content is
generally useful and moved to the OpenStack base class. There is a need
to cope with public OpenStack providers special cases, even if
temporarily (i.e. no volumes on OVH, no security group on RackSpace
etc.).

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoopenstack: reset the gitbuilder_host on stop 667/head
Loic Dachary [Thu, 22 Oct 2015 23:18:05 +0000 (01:18 +0200)]
openstack: reset the gitbuilder_host on stop

The package-repository instance is destroyed and requests to it will
timeout which takes time. Reverting to the default gitbuilder.ceph.com
is quicker and easier.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #668 from dachary/wip-openstack-timeout
Zack Cerza [Fri, 23 Oct 2015 22:08:42 +0000 (16:08 -0600)]
Merge pull request #668 from dachary/wip-openstack-timeout

openstack: increase timeout from 4 hours to 6 hours

9 years agoMerge pull request #666 from dachary/wip-openstack-volumes-ownedby
Zack Cerza [Fri, 23 Oct 2015 22:07:59 +0000 (16:07 -0600)]
Merge pull request #666 from dachary/wip-openstack-volumes-ownedby

openstack: add ownedby property to volumes

9 years agoMerge pull request #665 from dachary/wip-openstack-zero-volumes
Zack Cerza [Fri, 23 Oct 2015 22:07:34 +0000 (16:07 -0600)]
Merge pull request #665 from dachary/wip-openstack-zero-volumes

openstack: revert to zero volumes default

9 years agoMerge pull request #664 from dachary/wip-13580-openstack-resources-hint
Zack Cerza [Fri, 23 Oct 2015 20:50:58 +0000 (14:50 -0600)]
Merge pull request #664 from dachary/wip-13580-openstack-resources-hint

openstack: resources hint is the max of all hints

9 years agoopenstack: increase timeout from 4 hours to 6 hours 668/head
Loic Dachary [Thu, 22 Oct 2015 22:15:13 +0000 (00:15 +0200)]
openstack: increase timeout from 4 hours to 6 hours

It takes more than 4 hours for some upgrade jobs to complete.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoopenstack: add ownedby property to volumes 666/head
Loic Dachary [Thu, 22 Oct 2015 23:39:07 +0000 (01:39 +0200)]
openstack: add ownedby property to volumes

And delete the volumes owned by a teuthology instance on restart.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoopenstack: revert to zero volumes default 665/head
Loic Dachary [Fri, 23 Oct 2015 10:37:42 +0000 (12:37 +0200)]
openstack: revert to zero volumes default

Volumes are rarely needed, having no volumes by default is sane.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoopenstack: resources hint is the max of all hints 664/head
Loic Dachary [Thu, 22 Oct 2015 14:00:02 +0000 (16:00 +0200)]
openstack: resources hint is the max of all hints

Exactly one OpenStack resources hint can be included in a given job, as
part of an existing facet. It is error prone because it is sometimes not
trivial to figure out how a given job is composed and if two resources
hint are included only one of them will be taken into account which can
lead to problems difficult to diagnose. Another undesirable side effect
is to artificially increase resources usage. It is easier and more
reliable (from the test maintainer point of view) to increase the
resources of all jobs when a few need more RAM or disk rather than
trying to figure where to write the hints so that they are used by these
jobs and these jobs only.

Instead of being a fixed hint for a given job, the max of all hints
found in each facet is used. For instance, rados/thrash can have a facet
requiring that all jobs are given 3 devices.

cat rados/thrash/cluster/openstack.yaml
  openstack:
    - volumes:
        count: 3

If one task in rados/thrash needs 16GB RAM instead of the default of 8GB
RAM, it can have:

cat rados/thrash/tasks/bigworkunit.yaml

  task:
    - workunit: highmemoryusage.sh
  openstack:
    - machine:
        ram: 16 # GB

And a job composed of rados/thrash/{cluster/openstack.yaml
tasks/bigworkunit.yaml} is aggregated as the max of all resources,
including the default, that is:

  task:
    - workunit: highmemoryusage.sh
  openstack:
    - machine:
        disk: 20 # GB
        ram: 16 # GB
        cpu: 1
      volumes:
        count: 3
        size: 1 # GB

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoProvisionOpenStack.destroy(): Detach volumes
Zack Cerza [Thu, 22 Oct 2015 16:43:21 +0000 (10:43 -0600)]
ProvisionOpenStack.destroy(): Detach volumes

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoOpenStack.exists(): Don't list every instance
Zack Cerza [Thu, 22 Oct 2015 16:39:36 +0000 (10:39 -0600)]
OpenStack.exists(): Don't list every instance

Instead of "openstack server list", dumping the entire tentant's list of
instances, use "openstack server show" to show a single instance. While
"list" can accept a "--name" argument to filter, it does not have an
"--id" argument.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoWhitespace correction for linter
Zack Cerza [Thu, 22 Oct 2015 16:26:10 +0000 (10:26 -0600)]
Whitespace correction for linter

My editor makes these changes automatically.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoFix typoed exception name
Zack Cerza [Wed, 21 Oct 2015 21:00:02 +0000 (15:00 -0600)]
Fix typoed exception name

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #663 from ceph/wip-ovh-fixes
Loic Dachary [Tue, 20 Oct 2015 22:53:09 +0000 (00:53 +0200)]
Merge pull request #663 from ceph/wip-ovh-fixes

Fixes for unlock-related issues in OVH

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agofind_stale_locks(): Only query locked nodes 663/head
Zack Cerza [Tue, 20 Oct 2015 22:35:20 +0000 (16:35 -0600)]
find_stale_locks(): Only query locked nodes

Simple performance oversight.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoDon't retry unlocking when it fails normally
Zack Cerza [Tue, 20 Oct 2015 22:34:33 +0000 (16:34 -0600)]
Don't retry unlocking when it fails normally

We only want to retry when there is a connection error.

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #662 from ceph/wip-retry-unlock-one
Andrew Schoen [Tue, 20 Oct 2015 16:14:32 +0000 (11:14 -0500)]
Merge pull request #662 from ceph/wip-retry-unlock-one

Break out of retry loop

9 years agoBreak out of retry loop 662/head
Zack Cerza [Tue, 20 Oct 2015 15:45:44 +0000 (09:45 -0600)]
Break out of retry loop

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agoMerge pull request #660 from dachary/wip-openstack-ports
John Spray [Mon, 19 Oct 2015 22:34:15 +0000 (23:34 +0100)]
Merge pull request #660 from dachary/wip-openstack-ports

openstack: open ports 1:65356 for all targets

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoopenstack: open ports 1:65356 for all targets 660/head
Loic Dachary [Mon, 19 Oct 2015 21:56:37 +0000 (23:56 +0200)]
openstack: open ports 1:65356 for all targets

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #659 from ceph/wip-retry-unlock-one
Andrew Schoen [Mon, 19 Oct 2015 21:43:58 +0000 (16:43 -0500)]
Merge pull request #659 from ceph/wip-retry-unlock-one

Use safe_while to work around an OVH problem

9 years agoUse safe_while to work around an OVH problem 659/head
Zack Cerza [Mon, 19 Oct 2015 21:35:37 +0000 (15:35 -0600)]
Use safe_while to work around an OVH problem

We're seeing intermittent network failures when running inside OVH; they
present as:
https://github.com/kennethreitz/requests/issues/2364
This should help work around the issue.

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoMerge pull request #654 from dachary/wip-openstack-home
Zack Cerza [Fri, 9 Oct 2015 16:15:43 +0000 (10:15 -0600)]
Merge pull request #654 from dachary/wip-openstack-home

openstack: ensure HOME environment variable

10 years agoMerge pull request #653 from dachary/wip-openstack-buildpackages
Zack Cerza [Fri, 9 Oct 2015 16:15:15 +0000 (10:15 -0600)]
Merge pull request #653 from dachary/wip-openstack-buildpackages

openstack: clear the buildpackages directory on stop

10 years agoMerge pull request #640 from dachary/wip-13249-package-signatures
Zack Cerza [Fri, 9 Oct 2015 16:14:43 +0000 (10:14 -0600)]
Merge pull request #640 from dachary/wip-13249-package-signatures

config: ~/teuthology.yaml check_package_signatures hint

10 years agoMerge pull request #652 from dachary/wip-revert-buildpackages
Zack Cerza [Fri, 9 Oct 2015 16:14:00 +0000 (10:14 -0600)]
Merge pull request #652 from dachary/wip-revert-buildpackages

openstack: do not buildpackages by default

10 years agoMerge pull request #650 from dachary/wip-install-upgrade-logic
Zack Cerza [Fri, 9 Oct 2015 16:13:01 +0000 (10:13 -0600)]
Merge pull request #650 from dachary/wip-install-upgrade-logic

install: split the upgrade_common function

10 years agoMerge pull request #641 from dachary/wip-11883-git-url
Zack Cerza [Fri, 9 Oct 2015 16:10:36 +0000 (10:10 -0600)]
Merge pull request #641 from dachary/wip-11883-git-url

config: add ceph_git_url and ceph_qa_suite_git_url

10 years agoMerge pull request #651 from dmick/master
Zack Cerza [Fri, 9 Oct 2015 16:09:12 +0000 (10:09 -0600)]
Merge pull request #651 from dmick/master

run_tasks.py: fix Sentry URL

10 years agoopenstack: ensure HOME environment variable 654/head
Loic Dachary [Wed, 16 Sep 2015 19:14:37 +0000 (21:14 +0200)]
openstack: ensure HOME environment variable

Make it so even after a reboot and run from root, the HOME is set to the
user directory where the scripts are expected to be.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoopenstack: clear the buildpackages directory on stop 653/head
Loic Dachary [Wed, 23 Sep 2015 15:48:31 +0000 (17:48 +0200)]
openstack: clear the buildpackages directory on stop

When running /etc/init.d/teuthology stop, all OpenStack resources are
destroyed, including the instance hosting the repository where the
buildpackages task artefacts are archived. Remove /tmp/stampsdir so that
everything gets rebuilt.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoconfig: ~/teuthology.yaml check_package_signatures hint 640/head
Loic Dachary [Fri, 25 Sep 2015 17:54:18 +0000 (19:54 +0200)]
config: ~/teuthology.yaml check_package_signatures hint

If check_package_signatures is false, the tasks installing
packages (install, ceph-deploy, ...) are authorized to skip the package
signatures verifications.

Set this as the default for a cluster dynamically generated by the
OpenStack backend.

http://tracker.ceph.com/issues/13249 Refs: #13249

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoopenstack: do not buildpackages by default 652/head
Loic Dachary [Fri, 9 Oct 2015 10:28:16 +0000 (12:28 +0200)]
openstack: do not buildpackages by default

It depends on other commits that were not merged yet.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agorun_tasks.py: fix Sentry URL 651/head
Dan Mick [Fri, 9 Oct 2015 01:22:25 +0000 (18:22 -0700)]
run_tasks.py: fix Sentry URL

I don't know when or why it changed, but the existing URL format, which
uses '/search?q=<id>', fails; what works, by observing the web UI's URL
submission and by testing, is to omit the 'search' part of the path:
'/?q=<id>'

Signed-off-by: Dan Mick <dan.mick@redhat.com>
10 years agoinstall: split the upgrade_common function 650/head
Loic Dachary [Thu, 8 Oct 2015 21:16:45 +0000 (23:16 +0200)]
install: split the upgrade_common function

The upgrade_common function implements a non trivial logic that defines
how overrides are applied to the install.upgrade task, as well as the
way upgrades are applied to the desired targets.

The function is split in two:

  upgrade_common which remains the entry point
  upgrade_remote_to_config which encapsulates the logic

This allows other parts of teuthology to obey the same logic by calling
the function instead of replicating it.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoconfig: add ceph_git_url and ceph_qa_suite_git_url 641/head
Loic Dachary [Fri, 25 Sep 2015 10:39:24 +0000 (12:39 +0200)]
config: add ceph_git_url and ceph_qa_suite_git_url

The ~/.teuthology.yaml ceph_git_base_url configuration does not allow to
modify the URL of the Ceph repository without also modifying the URL of
the teuthology repository. Although it is frequently needed to point to
an alternate ceph or ceph-qa-suite repository, it is rarely necessary to
point to an alternate teuthology repository.

This is not a blocker: it is enough to mirror the teuthology,
ceph-cm-ansible, ceph-deploy and maybe a few other repositories to
satisfy this requirement. This is however inconvenient because the
exact list of repositories that need to be mirrored is not easily
accessible. In addition, unless the user is careful about updating the
mirrors prior to running teuthology, there is a good chance that an
obsolete version of the repository will be used and this may lead to
problems difficult to diagnose.

The git_ceph_url and git_ceph_qa_suite_url configuration variables are
added to specify the URL of the ceph and ceph-qa-suite repositories
without modifying the git_ceph_base_url value so that all other
repositories retain their default location.

For easier consumption within teuthology and ceph-qa-suite, the
get_git_ceph_url() and get_git_ceph_qa_suite_url() accessors are added
to the config class. They use the user provided value, if available, and
otherwise fallback to constructing the URL with git_ceph_base_url which
is the legacy behavior.

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

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoMerge pull request #617 from dachary/wip-openstack-doc
Zack Cerza [Tue, 6 Oct 2015 21:49:23 +0000 (15:49 -0600)]
Merge pull request #617 from dachary/wip-openstack-doc

openstack: document common pitfalls and OpenStack tenant grants

10 years agoMerge pull request #638 from dachary/wip-default-buildpackages
Zack Cerza [Tue, 6 Oct 2015 21:47:50 +0000 (15:47 -0600)]
Merge pull request #638 from dachary/wip-default-buildpackages

openstack: do not rely on gitbuilder.ceph.com by default

10 years agoMerge pull request #647 from dachary/wip-13027-openstack-security-group-pr
Zack Cerza [Tue, 6 Oct 2015 21:44:57 +0000 (15:44 -0600)]
Merge pull request #647 from dachary/wip-13027-openstack-security-group-pr

openstack: rackspace does not support security groups

10 years agoMerge pull request #648 from dachary/wip-13363-wait-osd-up
Zack Cerza [Tue, 6 Oct 2015 16:27:43 +0000 (10:27 -0600)]
Merge pull request #648 from dachary/wip-13363-wait-osd-up

misc: wait_until_osds_up must verify 'up' in state

10 years agomisc: wait_until_osds_up must verify 'up' in state 648/head
Loic Dachary [Tue, 6 Oct 2015 16:18:44 +0000 (18:18 +0200)]
misc: wait_until_osds_up must verify 'up' in state

It is not enough to count the number of entries in the osds
array, wait_until_osds_up must count which one are actually up by
checking if the string "up" is in the "state" array.

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

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoopenstack: rackspace does not support security groups 647/head
Loic Dachary [Sat, 3 Oct 2015 23:40:47 +0000 (01:40 +0200)]
openstack: rackspace does not support security groups

Skip security groups if running against RackSpace and document the
restriction.

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

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoMerge pull request #646 from ceph/wip-kernel-uri
Zack Cerza [Mon, 5 Oct 2015 15:43:01 +0000 (09:43 -0600)]
Merge pull request #646 from ceph/wip-kernel-uri

task/kernel: set the URI properly

10 years agotask/kernel: set the URI properly 646/head
John Spray [Mon, 5 Oct 2015 15:32:30 +0000 (16:32 +0100)]
task/kernel: set the URI properly

...instead of relying on already-created repos to have
the correct URI.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agovalgrind.supp: suppress ec factory leaks infernalis
Sage Weil [Thu, 1 Oct 2015 18:17:26 +0000 (14:17 -0400)]
valgrind.supp: suppress ec factory leaks

fixme someday

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #645 from ceph/wip-131version
Zack Cerza [Thu, 1 Oct 2015 17:04:29 +0000 (11:04 -0600)]
Merge pull request #645 from ceph/wip-131version

fix for version match, 1.3.1 now maps to 0.94.3

10 years agofix for version match, 1.3.1 now maps to 0.94.3 instead of the prevoius 0.94.2 645/head
Vasu Kulkarni [Thu, 1 Oct 2015 00:34:20 +0000 (20:34 -0400)]
fix for version match, 1.3.1 now maps to 0.94.3 instead of the prevoius 0.94.2

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
10 years agoMerge pull request #644 from ceph/wip-valgrind
Zack Cerza [Wed, 30 Sep 2015 23:23:33 +0000 (17:23 -0600)]
Merge pull request #644 from ceph/wip-valgrind

misc: do not trace children with valgrind

10 years agomisc: do not trace children with valgrind 644/head
Sage Weil [Wed, 30 Sep 2015 19:50:00 +0000 (15:50 -0400)]
misc: do not trace children with valgrind

Fixes: #13251
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #639 from ceph/wip-prun
Andrew Schoen [Mon, 28 Sep 2015 20:17:16 +0000 (15:17 -0500)]
Merge pull request #639 from ceph/wip-prun

Add teuthology-prune-logs

10 years agoMerge pull request #642 from dachary/wip-openstack-throttle
Zack Cerza [Mon, 28 Sep 2015 17:27:08 +0000 (11:27 -0600)]
Merge pull request #642 from dachary/wip-openstack-throttle

openstack: throttling helps the instance running the cluster

10 years agoMerge pull request #643 from dachary/wip-openstack-centos-6
Zack Cerza [Mon, 28 Sep 2015 16:07:31 +0000 (10:07 -0600)]
Merge pull request #643 from dachary/wip-openstack-centos-6

openstack: update CentOS 6 cloud image

10 years agoopenstack: update CentOS 6 cloud image 643/head
Loic Dachary [Sat, 26 Sep 2015 17:09:27 +0000 (19:09 +0200)]
openstack: update CentOS 6 cloud image

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoopenstack: throttling helps the instance running the cluster 642/head
Loic Dachary [Mon, 14 Sep 2015 12:04:27 +0000 (14:04 +0200)]
openstack: throttling helps the instance running the cluster

The instance throttling (not launching more than X instances per minute)
helps the instance running the teuthology cluster when running multiple
workers. The workload does not spike when launching a suite and that
allows to run more workers on a machine with the same hardware configuration.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoAdd teuthology-prune-logs 639/head
Zack Cerza [Wed, 29 Jul 2015 15:40:54 +0000 (09:40 -0600)]
Add teuthology-prune-logs

Signed-off-by: Zack Cerza <zack@redhat.com>
10 years agoopenstack: do not rely on gitbuilder.ceph.com by default 638/head
Loic Dachary [Wed, 23 Sep 2015 19:57:12 +0000 (21:57 +0200)]
openstack: do not rely on gitbuilder.ceph.com by default

Make it so the default when using the OpenStack backend is to build the
packages transparently using the OpenStack cluster instead of relying on
http://ceph.com/gitbuilder.cgi.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoMerge pull request #623 from dachary/wip-13031-repositories
Zack Cerza [Wed, 23 Sep 2015 21:17:43 +0000 (15:17 -0600)]
Merge pull request #623 from dachary/wip-13031-repositories

internal: move buildpackages before install task

10 years agointernal: do not check packages if task buildpackages is found 623/head
Loic Dachary [Tue, 15 Sep 2015 13:45:57 +0000 (15:45 +0200)]
internal: do not check packages if task buildpackages is found

The buildpackages task is responsible for creating the packages, there
is no point in verifying they are already present.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agointernal: move buildpackages before install task
Loic Dachary [Mon, 14 Sep 2015 11:25:02 +0000 (13:25 +0200)]
internal: move buildpackages before install task

If a buildpackages task is found, ensure it is always before the install
task because it is intended to produce the packages that will be used by
the install task.

http://tracker.ceph.com/issues/13031 Refs: #13031

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoMerge pull request #636 from ceph/wip-13116
Sage Weil [Tue, 22 Sep 2015 18:54:18 +0000 (14:54 -0400)]
Merge pull request #636 from ceph/wip-13116

ceph.conf: short cephfs data pool replay window

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoceph.conf: short cephfs data pool replay window 636/head
Sage Weil [Tue, 22 Sep 2015 18:01:40 +0000 (14:01 -0400)]
ceph.conf: short cephfs data pool replay window

This will make it more likely for us to hit #13116

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #635 from ceph/wip-readme-typo
Zack Cerza [Mon, 21 Sep 2015 20:10:30 +0000 (14:10 -0600)]
Merge pull request #635 from ceph/wip-readme-typo

README.rst: minor grammar/style fixes (first half)

10 years agoREADME.rst: minor grammar/style fixes (first half) 635/head
Nathan Cutler [Mon, 21 Sep 2015 20:00:01 +0000 (22:00 +0200)]
README.rst: minor grammar/style fixes (first half)

Signed-off-by: Nathan Cutler <ncutler@suse.com>
10 years agoMerge pull request #634 from ceph/wip-fix-email
Andrew Schoen [Mon, 21 Sep 2015 19:49:27 +0000 (14:49 -0500)]
Merge pull request #634 from ceph/wip-fix-email

Fix results-email-job scheduling