[
https://issues.apache.org/jira/browse/FLINK-35694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17860046#comment-17860046
]
Sam Barker commented on FLINK-35694:
------------------------------------
Why does it switching to {{--all-ip-addresses}} fix this? Is it that it omits
the loopback interfaces or is it just the ordering of IP addresses? I ask as
the man page says not to depend on the order of IP addresses returned.
{quote}-I, --all-ip-addresses
Display all network addresses of the host. This option enumerates
all configured addresses on all network interfaces. The loopback interface
and IPv6 link-local addresses are omitted. Contrary to option
-i, this option does not depend on name resolution. Do not make any assumptions
about the order of the output.{quote}
> Flink-end-to-end-test kubernetes fails due to hostname --ip-adress command
> --------------------------------------------------------------------------
>
> Key: FLINK-35694
> URL: https://issues.apache.org/jira/browse/FLINK-35694
> Project: Flink
> Issue Type: Bug
> Components: Tests
> Affects Versions: 1.20.0
> Environment: centos9
> Reporter: David Kornel
> Priority: Major
>
> Im trying to run e2e tests on my linux machne (centos9) and I see that it
> fails due to wrong return value of `hostname --ip-address` which returns ipv6
> loopback address as first which causes issue during build containers
>
> build_image test_kubernetes_embedded_job fe80...(omitted) Retrying...
>
> The solution if replace `hostname --ip-address` with `hostanme -I` in
> get_host_machine_address method in common_kubernetes.sh
>
> I can open PR.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)