mirror of
https://github.com/ceph/ceph
synced 2025-01-29 22:43:40 +00:00
Merge branch 'wip-yuval-pubsub_teuthology' of https://github.com/ceph/ceph-ci into wip-yuval-pubsub_teuthology
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
This commit is contained in:
parent
2ff7c1328b
commit
677dbfce61
@ -18,3 +18,4 @@ overrides:
|
||||
endpoints: [c2.client.0]
|
||||
- name: test-zone3
|
||||
endpoints: [c1.client.1]
|
||||
is_pubsub: true
|
||||
|
@ -11,6 +11,7 @@ from util.rgw import rgwadmin, wait_for_radosgw
|
||||
from util.rados import create_ec_pool, create_replicated_pool
|
||||
from rgw_multi import multisite
|
||||
from rgw_multi.zone_rados import RadosZone as RadosZone
|
||||
from rgw_multi.zone_ps import PSZone as PSZone
|
||||
|
||||
from teuthology.orchestra import run
|
||||
from teuthology import misc
|
||||
@ -33,6 +34,7 @@ class RGWMultisite(Task):
|
||||
|
||||
* 'is_master' is passed on the command line as --master
|
||||
* 'is_default' is passed on the command line as --default
|
||||
* 'is_pubsub' is used to create a zone with tier-type=pubsub
|
||||
* 'endpoints' given as client names are replaced with actual endpoints
|
||||
|
||||
zonegroups:
|
||||
@ -78,6 +80,9 @@ class RGWMultisite(Task):
|
||||
- name: test-zone2
|
||||
is_default: true
|
||||
endpoints: [c2.client.0]
|
||||
- name: test-zone3
|
||||
is_pubsub: true
|
||||
endpoints: [c1.client.1]
|
||||
|
||||
"""
|
||||
def __init__(self, ctx, config):
|
||||
@ -369,7 +374,10 @@ def create_zonegroup(cluster, gateways, period, config):
|
||||
def create_zone(ctx, cluster, gateways, creds, zonegroup, config):
|
||||
""" create a zone with the given configuration """
|
||||
zone = multisite.Zone(config['name'], zonegroup, cluster)
|
||||
zone = RadosZone(config['name'], zonegroup, cluster)
|
||||
if config.pop('is_master', False):
|
||||
zone = PSZone(config['name'], zonegroup, cluster)
|
||||
else:
|
||||
zone = RadosZone(config['name'], zonegroup, cluster)
|
||||
|
||||
# collect Gateways for the zone's endpoints
|
||||
endpoints = config.get('endpoints')
|
||||
|
@ -129,7 +129,6 @@ NOTIFICATION_SUFFIX = "_notif"
|
||||
# pubsub tests
|
||||
##############
|
||||
|
||||
|
||||
def test_ps_info():
|
||||
""" log information for manual testing """
|
||||
return SkipTest("only used in manual testing")
|
||||
|
@ -74,6 +74,13 @@ def make_request(conn, method, resource, parameters=None, sign_parameters=False,
|
||||
return data, status
|
||||
|
||||
|
||||
def print_connection_info(conn):
|
||||
"""print info of connection"""
|
||||
print("Host: " + conn.host+':'+str(conn.port))
|
||||
print("AWS Secret Key: " + conn.aws_secret_access_key)
|
||||
print("AWS Access Key: " + conn.aws_access_key_id)
|
||||
|
||||
|
||||
class PSTopic:
|
||||
"""class to set/get/delete a topic
|
||||
PUT /topics/<topic name>[?push-endpoint=<endpoint>&[<arg1>=<value1>...]]
|
||||
|
Loading…
Reference in New Issue
Block a user