Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Opensearch 2.8.0
OSB 1.11.0
Describe the issue:
I*m trying to run create-workload to get a configuration from my existing OS cluster.
My OS cluster only has a self-signed certificate and the connection to the target-host fails.
I’m able to connect using CURL: curl -k -u : -XGET https://:3190/data_in/_cat/aliases.
Here my cli entry:
opensearch-benchmark create-workload --workload="acdi-events" --target-hosts="-k https://<OS server IP>:3190/data_in" --client-options="basic_auth_user:'<user>',basic_auth_password:'>passwd>'" --indices="audit-default"
Configuration:
OS w/self-signed certificate
Simple user authentication is configured
I’m using a proxy to connect: https://:3190/data_in
**Relevant Logs
2025-01-27 18:07:32,40 -not-actor-/PID:21191 osbenchmark.benchmark INFO OS [uname_result(system='Linux', node='vlosbsrv1', release='6.4.0-150600.23.33-default', version='#1 SMP PREEMPT_DYNAMIC Thu Jan 9 14:10:22 UTC 2025 (ba46628)', machine='x86_64')]
2025-01-27 18:07:32,44 -not-actor-/PID:21191 osbenchmark.benchmark INFO Python [namespace(name='cpython', cache_tag='cpython-311', version=sys.version_info(major=3, minor=11, micro=10, releaselevel='final', serial=0), hexversion=51055344, _multiarch='x86_64-linux-gnu')]
2025-01-27 18:07:32,44 -not-actor-/PID:21191 osbenchmark.benchmark INFO Benchmark version [1.11.0]
2025-01-27 18:07:32,44 -not-actor-/PID:21191 osbenchmark.utils.net INFO Connecting directly to the Internet (no proxy support).
2025-01-27 18:07:32,348 -not-actor-/PID:21191 osbenchmark.benchmark INFO Detected a working Internet connection.
2025-01-27 18:07:32,349 -not-actor-/PID:21191 osbenchmark.workload_generator.helpers INFO Indices Docs Map: [None]
2025-01-27 18:07:32,349 -not-actor-/PID:21191 osbenchmark.client INFO Creating OpenSearch client connected to [{'host': None, 'url_prefix': '-k https://192.168.65.60:3190/data_in'}] with options [{'basic_auth_user': 'osadmin', 'basic_auth_password': '*****'}]
2025-01-27 18:07:32,349 -not-actor-/PID:21191 osbenchmark.client INFO SSL support: off
2025-01-27 18:07:32,349 -not-actor-/PID:21191 osbenchmark.client INFO HTTP basic authentication: on
2025-01-27 18:07:32,349 -not-actor-/PID:21191 osbenchmark.client INFO HTTP compression: off
2025-01-27 18:07:32,412 -not-actor-/PID:21191 osbenchmark.benchmark ERROR A fatal error occurred while running subcommand [create-workload].
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/osbenchmark/benchmark.py", line 1035, in dispatch_sub_command
workload_generator.create_workload(cfg)
File "/usr/local/lib/python3.11/site-packages/osbenchmark/workload_generator/workload_generator.py", line 38, in create_workload
client_options=client_options.all_client_options[opts.TargetHosts.DEFAULT]).create()
^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/osbenchmark/client.py", line 322, in create
return opensearchpy.OpenSearch(hosts=self.hosts, ssl_context=self.ssl_context, **self.client_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/opensearchpy/client/__init__.py", line 219, in __init__
super().__init__(hosts, transport_class, **kwargs)
File "/usr/local/lib/python3.11/site-packages/opensearchpy/client/client.py", line 41, in __init__
self.transport = transport_class(_normalize_hosts(hosts), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/opensearchpy/transport.py", line 201, in __init__
self.set_connections(hosts)
File "/usr/local/lib/python3.11/site-packages/opensearchpy/transport.py", line 255, in set_connections
connections = list(zip(map(_create_connection, hosts), hosts))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/opensearchpy/transport.py", line 253, in _create_connection
return self.connection_class(metrics=self.metrics, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/opensearchpy/connection/http_urllib3.py", line 130, in __init__
super().__init__(
File "/usr/local/lib/python3.11/site-packages/opensearchpy/connection/base.py", line 121, in __init__
if ":" in host: # IPv6
^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable