diff --git a/testsuites/CBLTester/upgrade_tests/test_cbl_upgrade.py b/testsuites/CBLTester/upgrade_tests/test_cbl_upgrade.py index 7380bfe7dd..769155c944 100644 --- a/testsuites/CBLTester/upgrade_tests/test_cbl_upgrade.py +++ b/testsuites/CBLTester/upgrade_tests/test_cbl_upgrade.py @@ -92,6 +92,7 @@ def test_upgrade_cbl(params_from_base_suite_setup): connection_url = "couchbases://{}?ssl=no_verify".format(cbs_ip) else: connection_url = "couchbase://{}".format(cbs_ip) + print("\ncluster url: ", connection_url) sdk_client = get_cluster(connection_url, cbs_bucket) log_info("Creating primary index for {}".format(cbs_bucket)) n1ql_query = "create primary index index1 on `{}`".format(cbs_bucket) diff --git a/utilities/cluster_config_utils.py b/utilities/cluster_config_utils.py index 6c9e3c5f87..7025ff11c9 100644 --- a/utilities/cluster_config_utils.py +++ b/utilities/cluster_config_utils.py @@ -41,9 +41,16 @@ def write(self, fp): def get_cluster(url, bucket_name): timeout_options = ClusterTimeoutOptions(kv_timeout=timedelta(seconds=180), query_timeout=timedelta(seconds=300), config_total_timeout=timedelta(seconds=600)) - options = ClusterOptions(PasswordAuthenticator("Administrator", "password"), timeout_options=timeout_options) - cluster = Cluster(url, options) - cluster = cluster.bucket(bucket_name) + try: + options = ClusterOptions(PasswordAuthenticator("Administrator", "password"), timeout_options=timeout_options) + cluster = Cluster(url, options) + cluster = cluster.bucket(bucket_name) + except Exception as e: + if e: + print("\nHere is error: ", str(e)) + print("\nbucket name: ", bucket_name) + print("\nurl: ", url) + print("\noptions: ", options) return cluster.default_collection()