-
Notifications
You must be signed in to change notification settings - Fork 14.3k
MINOR: support ipv6 in ducker-ak #19537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kevin-wu24. Just a few points. Thanks!
tests/docker/ducker-ak
Outdated
@@ -83,6 +83,8 @@ up [-n|--num-nodes NUM_NODES] [-f|--force] [docker-image] | |||
on the host. The argument can be a single port (like 5005), a port range like (5005-5009) | |||
or a combination of port/port-range separated by comma (like 2181,9092 or 2181,5005-5008). | |||
By default no port is exposed. See README.md for more detail on this option. | |||
|
|||
If --ipv6 is specified, we will create a docker network with IPv6 enabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super nitpicky...
If --ipv6 is specified, we will create a docker network with IPv6 enabled. | |
If --ipv6 is specified, we will create a Docker network with IPv6 enabled. |
tests/docker/ducker-ak
Outdated
[[ $? -ne 0 ]] && die "failed to find the /etc/hosts entry for ${node}" | ||
done | ||
exec 3>&- | ||
for n in $(seq -f %02g 1 ${num_nodes}); do | ||
local node="ducker${n}" | ||
docker exec --user=root "${node}" \ | ||
bash -c "grep -v ${node} /opt/kafka-dev/tests/docker/build/node_hosts >> /etc/hosts" | ||
# Filter oud ipv4 addresses if ipv6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Filter oud ipv4 addresses if ipv6 | |
# Filter out ipv4 addresses if ipv6 |
must_do -v docker network create ducknet | ||
network_create_args="" | ||
if [[ "${ipv6}" == "true" ]]; then | ||
subnet_cidr_prefix="${DUCKER_SUBNET_CIDR:-"fc00:cf17"}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not knowledgeable about IPv6, so I'm wondering if this is a safe thing to hardcode?
add ipv6 support to
ducker-ak