Added overrides for vps time outs

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
Merge pull request #81 from ceph/wip_add_manual_override

Added overrides for vps time outs
Added idle_timeout: to fix time-outs problems for some tests

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
Fixed syntax

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
Merge pull request #83 from ceph/wip_add_manual_override2

Added idle_timeout: to fix time-outs problems for some tests
overrides: rgw must not be nested in ceph

Signed-off-by: Loic Dachary <loic@dachary.org>
Merge pull request #85 from dachary/wip-rgw-idle-timeout

overrides: rgw must not be nested in ceph
rados.py: avoid CephManager creation race

gevent may hold the rados.py thread when it has an opportunity. The

   if not hasattr(ctx, 'manager'):

must therefore be immediately before the manager creation it is supposed
to protect. If any of the functions called as a side effect of

   first_mon = teuthology.get_first_mon(ctx, config)
   (mon,) = ctx.cluster.only(first_mon).remotes.iterkeys()

give gevent an opportunity to hold the thread, it creates a race
condition.

The other possibility would be use a ctx lock to protect the code, but
this solution seem simpler.

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

Signed-off-by: Loic Dachary <loic@dachary.org>
rgw: add default_idle_timeout to allow override

Globally overriding the rgw idle_timeout is not possible because it it
needs to be done on a per client.0, client.1, etc. basis. Add the
default_idle_timeout key to the rgw config : it defaults to the
previously hardcoded default (30) and can be changed via the override.

The existing tasks that were previously overriding the idle_timeout on a
per client basis are changed to use the default_idle_timeout instead for
consistency and to allow a global override.

Signed-off-by: Loic Dachary <loic@dachary.org>
Merge pull request #87 from dachary/wip-8988-default-idle-timeout

rgw: add default_idle_timeout to allow override
Merge pull request #86 from dachary/wip-9027-create-unique-pool

rados.py: avoid CephManager creation race
rest-api tests: enable debugging

Hoping to catch #9058

Signed-off-by: Sage Weil <sage@redhat.com>
rgw: s/idle_timeout/default_idle_timeout/

Signed-off-by: Loic Dachary <loic@dachary.org>
Merge pull request #90 from dachary/wip-8988-default-idle-timeout

rgw: s/idle_timeout/default_idle_timeout/

Reviewed-by: John Spray <john.spray@redhat.com>
move functions from ceph to ceph_manager

mount_osd_data and make_admin_daemon_dir are only used by
ceph_manager.py although they are defined in ceph.py

Signed-off-by: Loic Dachary <loic@dachary.org>
initialize ctx.manager in ceph.py

instead of rados.py because ceph.py is only run once where rados.py
could be run multiple time, leading to race conditions

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

Signed-off-by: Loic Dachary <loic@dachary.org>
replace locally instantiated CephManager

Use the ctx.manager instance created by ceph.py instead

Signed-off-by: Loic Dachary <loic@dachary.org>
rgw.yaml: keep the client.0 key even if empty

Because rgw.py iterates over it to run the rgw server. If it is removed
the rgw servers are not run and all fails.

Signed-off-by: Loic Dachary <loic@dachary.org>
Merge pull request #89 from dachary/wip-9027-create-unique-pool

initialize ctx.manager in ceph.py

Reviewed-by: Sage Weil <sage@redhat.com>
Merge pull request #96 from dachary/wip-8988-default-idle-timeout

rgw.yaml: keep the client.0 key even if empty