mlaunch init --auth --replicaset --nodes 2 --arbiter --enableMajorityReadConcern false
… should create a PSA cluster with majority read concern disabled.
> mlaunch init --auth --replicaset --nodes 2 --arbiter --enableMajorityReadConcern false
Detected mongod version: 6.2.0
Generating keyfile: /Users/felipe/data/keyfile
launching: "mongod" on port 27017
launching: "mongod" on port 27018
launching: "mongod" on port 27019
Traceback (most recent call last):
File "/Users/felipe/Library/Python/3.11/bin/mlaunch", line 8, in <module>
sys.exit(main())
^^^^^^
File "/Users/felipe/Library/Python/3.11/lib/python/site-packages/mtools/mlaunch/mlaunch.py", line 2191, in main
tool.run()
File "/Users/felipe/Library/Python/3.11/lib/python/site-packages/mtools/mlaunch/mlaunch.py", line 628, in run
getattr(self, self.args['command'])()
File "/Users/felipe/Library/Python/3.11/lib/python/site-packages/mtools/mlaunch/mlaunch.py", line 807, in init
self._initiate_replset(nodes[0], self.args['name'])
File "/Users/felipe/Library/Python/3.11/lib/python/site-packages/mtools/mlaunch/mlaunch.py", line 1824, in _initiate_replset
rs_status = con['admin'].command({'replSetGetStatus': 1})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/felipe/Library/Python/3.11/lib/python/site-packages/pymongo/_csot.py", line 105, in csot_wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/felipe/Library/Python/3.11/lib/python/site-packages/pymongo/database.py", line 805, in command
with self.__client._socket_for_reads(read_preference, session) as (
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/felipe/Library/Python/3.11/lib/python/site-packages/pymongo/mongo_client.py", line 1296, in _socket_for_reads
server = self._select_server(read_preference, session)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/felipe/Library/Python/3.11/lib/python/site-packages/pymongo/mongo_client.py", line 1257, in _select_server
server = topology.select_server(server_selector)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/felipe/Library/Python/3.11/lib/python/site-packages/pymongo/topology.py", line 272, in select_server
server = self._select_server(selector, server_selection_timeout, address)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/felipe/Library/Python/3.11/lib/python/site-packages/pymongo/topology.py", line 261, in _select_server
servers = self.select_servers(selector, server_selection_timeout, address)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/felipe/Library/Python/3.11/lib/python/site-packages/pymongo/topology.py", line 223, in select_servers
server_descriptions = self._select_servers_loop(selector, server_timeout, address)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/felipe/Library/Python/3.11/lib/python/site-packages/pymongo/topology.py", line 238, in _select_servers_loop
raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 61] Connection refused, Timeout: 0.001s, Topology Description: <TopologyDescription id: 63eee76a5ce24c47881600d0, topology_type: Single, servers: [<ServerDescription ('localhost', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:27017: [Errno 61] Connection refused')>]>
Run the command.
macOS Ventura (latest as of this writing).
> uname -a
Darwin M-HJR99W7WX5 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64
Expected behavior
This:
… should create a PSA cluster with majority read concern disabled.
Actual/current behavior
Steps to reproduce the actual/current behavior
Run the command.
Environment
macOS Ventura (latest as of this writing).