You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/05/04 07:28:33 UTC

[GitHub] [cloudstack] rvalle commented on issue #4054: Unable to add host: uncapable to identify cause/missing ERROR logs

rvalle commented on issue #4054:
URL: https://github.com/apache/cloudstack/issues/4054#issuecomment-623302854


   The relevant logs that I see are:
   
   Confirmation the agent was created OK, manager logs:
   ```
   2020-05-03 16:22:27,115 DEBUG [c.c.u.s.SSHCmdHelper] (qtp540585569-13:ctx-a9e3d331 ctx-07912f60) (logid:361428b2) SSH command: sudo cloudstack-setup-agent  -m 10.71.0.254 -z 1 -p 1 -c 1 -g ef861baa-8f7c-38fe-9b6a-981df48ac7ac -a -s  --pubNic=host_netbr --prvNic=host_netbr --guestNic=guest_netbr --hypervisor=kvm
   SSH command output:Starting to configure your system:
   Configure SElinux ...         [OK]
   Configure Network ...         [OK]
   Configure Libvirt ...         [OK]
   Configure Firewall ...        [OK]
   Configure Nfs ...             [OK]
   Configure cloudAgent ...      [OK]
   CloudStack Agent setup is done!
   ```
   
   Confirmation the agents connects back with the manager, that logs:
   ```
   2020-05-03 16:22:30,330 DEBUG [o.a.c.c.p.RootCACustomTrustManager] (pool-9-thread-1:null) (logid:) A client/agent attempting connection from address=10.71.0.1 has presented these certificate(s):
   Certificate [1] :
    Serial: 18f633061a199417
     Not Before:Sun May 03 04:21:51 UTC 2020
     Not After:Mon May 03 16:21:51 UTC 2021
     Signature Algorithm:SHA256withRSA
     Version:3
     Subject DN:C=cloudstack, O=cloudstack, OU=cloudstack, CN=compute1.host_net
     Issuer DN:CN=ca.cloudstack.apache.org
   ```
   Similar success logs can be found on the agent, that reports connection to the manager:
   ```
   2020-05-03 16:22:29,478 INFO  [utils.nio.NioClient] (main:null) (logid:) Connecting to 10.71.0.254:8250
   2020-05-03 16:22:29,484 INFO  [utils.nio.Link] (main:null) (logid:) Conf file found: /etc/cloudstack/agent/agent.properties
   2020-05-03 16:22:30,733 INFO  [utils.nio.NioClient] (main:null) (logid:) SSL: Handshake done
   2020-05-03 16:22:30,733 INFO  [utils.nio.NioClient] (main:null) (logid:) Connected to 10.71.0.254:8250
   ```
   
   Confirmation the agent can talk to libvirt, agent logs manipulation of libvirt objects:
   ```
   2020-05-03 16:31:31,963 INFO  [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Found existing defined storage pool c3ae71d6-74a8-4252-bd7c-f886a821dac7, using it.
   ```
   A further check on virsh finds that object:
   ```
   virsh # pool-list 
    Name                 State      Autostart 
   -------------------------------------------
    c3ae71d6-74a8-4252-bd7c-f886a821dac7 active     no 
   ```
   
   At this point I assume that all the bits and pieces are working. However, after a long wait, the manager reports:
   ```
   2020-05-03 16:51:11,793 WARN  [c.c.r.ResourceManagerImpl] (qtp540585569-14:ctx-098be29b ctx-c1b8d4c3) (logid:d82ea0e4) Unable to find the server resources at http://10.71.0.1
   2020-05-03 16:51:11,797 INFO  [c.c.u.e.CSExceptionErrorCode] (qtp540585569-14:ctx-098be29b ctx-c1b8d4c3) (logid:d82ea0e4) Could not find exception: com.cloud.exception.DiscoveryException in error code list for exceptions
   2020-05-03 16:51:11,797 WARN  [o.a.c.a.c.a.h.AddHostCmd] (qtp540585569-14:ctx-098be29b ctx-c1b8d4c3) (logid:d82ea0e4) Exception: 
   com.cloud.exception.DiscoveryException: Unable to add the host
   	at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:825)
   	at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:611)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org