No interface named 'gce' when trying to setup passwords

Hi,

Trying to set up Elastic 6.5.1 on Compute Engine. I did previously install 6.2.x without issue on another Compute Engine VM, but now I'm facing an issue with GCE settings.

I did install discovery-gce plugin which seems to load properly as it shows in the logs:
[2018-11-29T19:59:05,606][INFO ][o.e.p.PluginsService ] [MUT_gNe] loaded plugin [discovery-gce]

My elasticsearch.yml file looks like this:
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: _gce_
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12

which is the exact same config that I have on 6.2.x and works fine.

Elasticsearch seems to start properly, however when I try bin/elasticsearch-setup-passwords interactive I get the following error:
Exception in thread "main" java.lang.IllegalArgumentException: No interface named 'gce' found, got [name:lo (lo), name:eth0 (eth0)] at org.elasticsearch.common.network.NetworkUtils.getAddressesForInterface(NetworkUtils.java:231) at org.elasticsearch.common.network.NetworkService.resolveInternal(NetworkService.java:233) at org.elasticsearch.common.network.NetworkService.resolveInetAddresses(NetworkService.java:187) at org.elasticsearch.common.network.NetworkService.resolvePublishHostAddresses(NetworkService.java:145) at org.elasticsearch.xpack.security.authc.esnative.tool.CommandLineHttpClient.getDefaultURL(CommandLineHttpClient.java:146) at org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool$SetupCommand.setupOptions(SetupPasswordTool.java:267) at org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool$InteractiveSetup.execute(SetupPasswordTool.java:174) at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:77) at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) at org.elasticsearch.cli.Command.main(Command.java:90) at org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool.main(SetupPasswordTool.java:107)

Not sure what's going on, any insight on this ?

Sounds like a bug to me. Could you open an issue ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.