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] kafka Error: java.net.UnknownHostException: kafkahost
- JAVA: Controller exception handling
- [Solved] SpringBoot Project Startup Error: Field userMapper in com.demo.controller.MemberController required a bean of type ‘c
- [Solved] Log4j2 log startup error: javax.xml.parsers.ParserConfigurationException…
- [Solved] JAVA OpenCV Startup Error: java.lang.UnsatisfiedLinkError
- [Solved] IDEA springboot Startup Error: java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path
- java.net.SocketException: software caused connection abort: socket write error resolution (selenium)
- [Solved] Tomcat configurate HTTPS error: java.net.SocketException: Permission denied
- [Solved] shiro Error: SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
- [2022 New Solution] SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder
- jemter java.net.BindException:Address alreardy in use [How to Solve]
- [Solved] Error: caused by: java.net.bindexception: the address is already in use
- [Solved] hadoop Error: 9000 failed on connection exception java.net.ConnectException Denied to Access
- [Solved] port (127.0.0.1:64444): java.net.SocketException “Interrupted function call: accept failed“
- JAVA Error Illegal access: this web application instance has been stopped already. Could not load net.sf
- [Solved] nacos Startup Error: nested exception is java.lang.RuntimeException: java.lang.RuntimeException: [db-load-error
- [Solved] Swagger Startup Error: java.lang.NumberFormatException: For input string: ““
- [Solved] nacos Startup Error: Please set the JAVA_HOME variable in your environment
- [Solved] IDEA Startup Error: java: Internal error in the mapping processor