When calling OpenStack using openstack4j connection, an error is reported
Specific part of the error reported:
Exception in thread "main" ConnectionException{message=RESTEASY004655: Unable to invoke request, status=0} at org.openstack4j.connectors.resteasy.HttpExecutorServiceImpl.invoke(HttpExecutorServiceImpl.java:57) at org.openstack4j.connectors.resteasy.HttpExecutorServiceImpl.execute(HttpExecutorServiceImpl.java:31) at org.openstack4j.core.transport.internal.HttpExecutor.execute(HttpExecutor.java:51) at org.openstack4j.openstack.internal.BaseOpenStackService$Invocation.execute(BaseOpenStackService.java:213) at org.openstack4j.openstack.internal.BaseOpenStackService$Invocation.execute(BaseOpenStackService.java:207) at ............................. Caused by: java.net.UnknownHostException: controller at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323) at java.net.InetAddress.getAllByName0(InetAddress.java:1276) at java.net.InetAddress.getAllByName(InetAddress.java:1192) at java.net.InetAddress.getAllByName(InetAddress.java:1126)
OpenStack environment: Through the OpenStack environment built on two virtual machines, the hostnames of the two virtual machines are controller, compute. and here the error is reported as unknown host.
Solution:
(1) Open windws/system32/driver/etc/hosts under Windows and add the following content
Virtual Machine IP controller Virtual Machine IP compute
(2) Linux server
vi /etc/hosts
Read More:
- [Solved] kafka Error: java.net.UnknownHostException: ls-bptysztw
- [Solved] spring boot Startup Error: Error creating bean with name ‘requestMappingHandlerMapping‘ defined in class path
- maven.TestGenerateMojo.execute(TestGenerateMojo.java:65) [How to Solve]
- [Solved] JAVA fx Error: java.lang.instrument ASSERTION FAILED ***: “!errorOutstanding“ with message transform
- [Solved] kafka Error: java.net.UnknownHostException: kafkahost
- [Solved] Android project Compile error: error processing kotlin-stdlib-1.6.0.jar
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only
- [Solved] Error creating bean with name ‘entityManagerFactory‘ defined in class path resource
- Gitee Idea Push Error: Invocation failed Server returned invalid Response. java.lang.RuntimeException
- [Solved] IDEA Startup Error: java: Internal error in the mapping processor
- [Solved] Tomcat Startup Error: A child container failed during start、LifecycleException: Failed to start component
- [Solved] MVN Build Project Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test
- Springboot integrates Redis annotation and access error: java.io.NotSerializableException: com.demo.entity.MemberEntity
- [Solved] Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred.
- [Solved] XxlJob Error: XxlJobFileAppender [101] -| Permission denied
- Mybatis Error: Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.
- [Solved] mybatis Error: Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.
- SpringBoot Project Run Page Error: Whitelabel Error Page This application has no explicit mapping for /error
- [Solved] IDEA springboot Startup Error: java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path
- [Tomcat] Unrecognized Windows Sockets error: 10106: Socket creation failed