mirror of
https://github.com/ceph/ceph
synced 2025-01-04 02:02:36 +00:00
tasks/watch_notify_same_primary: adjust to new ctx.manager location
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
This commit is contained in:
parent
9f5b0370dd
commit
34a58dda56
@ -45,9 +45,10 @@ def task(ctx, config):
|
|||||||
PREFIX = 'client.'
|
PREFIX = 'client.'
|
||||||
assert role.startswith(PREFIX)
|
assert role.startswith(PREFIX)
|
||||||
(remote,) = ctx.cluster.only(role).remotes.iterkeys()
|
(remote,) = ctx.cluster.only(role).remotes.iterkeys()
|
||||||
ctx.manager.raw_cluster_cmd('osd', 'set', 'noout')
|
manager = ctx.managers['ceph']
|
||||||
|
manager.raw_cluster_cmd('osd', 'set', 'noout')
|
||||||
|
|
||||||
pool = ctx.manager.create_pool_with_unique_name()
|
pool = manager.create_pool_with_unique_name()
|
||||||
def obj(n): return "foo-{num}".format(num=n)
|
def obj(n): return "foo-{num}".format(num=n)
|
||||||
def start_watch(n):
|
def start_watch(n):
|
||||||
remote.run(
|
remote.run(
|
||||||
@ -103,8 +104,8 @@ def task(ctx, config):
|
|||||||
|
|
||||||
[notify(n, 'notify1') for n in range(len(watches))]
|
[notify(n, 'notify1') for n in range(len(watches))]
|
||||||
|
|
||||||
ctx.manager.kill_osd(0)
|
manager.kill_osd(0)
|
||||||
ctx.manager.mark_down_osd(0)
|
manager.mark_down_osd(0)
|
||||||
|
|
||||||
[notify(n, 'notify2') for n in range(len(watches))]
|
[notify(n, 'notify2') for n in range(len(watches))]
|
||||||
|
|
||||||
@ -129,5 +130,5 @@ def task(ctx, config):
|
|||||||
log.info(lines)
|
log.info(lines)
|
||||||
assert got1 and got2
|
assert got1 and got2
|
||||||
|
|
||||||
ctx.manager.revive_osd(0)
|
manager.revive_osd(0)
|
||||||
ctx.manager.remove_pool(pool)
|
manager.remove_pool(pool)
|
||||||
|
Loading…
Reference in New Issue
Block a user