Skip to content

Commit

Permalink
Configure Gluster for IP6 transport when relevant
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Reis <[email protected]>
  • Loading branch information
benjamreis committed Oct 1, 2024
1 parent 4195ef8 commit 5393cf6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/storage/glusterfs/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ def teardown_for_host(h):
def gluster_volume_started(host, hostA2, gluster_disk):
hosts = host.pool.hosts

if is_ipv6(host.hostname_or_ip):
# Configure gluster for IPv6 transport
for h in hosts:
h.ssh([
'sed',
'-i',
'"s/# option transport.address-family inet6/ option transport.address-family inet6/"',
'/etc/glusterfs/glusterd.vol'
])
for h in hosts:
h.ssh(['systemctl', 'restart', 'glusterd'])

host.ssh(['mkdir', '-p', '/mnt/sr_disk/vol0/brick0'])
hostA2.ssh(['gluster', 'peer', 'probe', host.hostname_or_ip])
for h in hosts[1:]:
Expand Down

0 comments on commit 5393cf6

Please sign in to comment.