Skip to content

Commit

Permalink
updated vagrant to ubuntu20 and fixed network discovery to account fo…
Browse files Browse the repository at this point in the history
…r other possible interface names (confluentinc#328)
  • Loading branch information
stan-is-hate authored and gousteris committed Aug 30, 2023
1 parent 237d7e8 commit e62f1c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ VAGRANTFILE_API_VERSION = "2"
enable_dns = false
num_workers = 3
ram_megabytes = 300
base_box = "ubuntu/trusty64"
base_box = "ubuntu/focal64"

local_config_file = File.join(File.dirname(__FILE__), "Vagrantfile.local")
if File.exists?(local_config_file) then
Expand Down
3 changes: 2 additions & 1 deletion ducktape/cluster/linux_remoteaccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def get_external_accessible_network_devices(self):
device
for device in self.get_network_devices()
if device != 'lo' # do not include local device
and ("eth" in device or "ens" in device) # filter out other devices
and (device.startswith("en") or device.startswith('eth')) # filter out other devices; "en" means ethernet
# eth0 can also sometimes happen, see https://unix.stackexchange.com/q/134483
]

# deprecated, please use the self.externally_routable_ip that is set in your cluster,
Expand Down

0 comments on commit e62f1c4

Please sign in to comment.