abdelouahabb commented on issue #4659: URL: https://github.com/apache/cloudstack/issues/4659#issuecomment-779460083
Update : after disabling the security check `ca.plugin.root.auth.strictness false` in global settings, it seems there is a bug with `libvirt` Here is the new updated issue from the agent : ``` 2021-02-15 22:06:35,371 INFO [utils.nio.Link] (main:null) (logid:) Conf file found: /etc/cloudstack/agent/agent.properties 2021-02-15 22:06:35,420 WARN [utils.nio.Link] (main:null) (logid:) Failed to load keystore, using trust all manager 2021-02-15 22:06:35,857 INFO [utils.nio.NioClient] (main:null) (logid:) SSL: Handshake done 2021-02-15 22:06:35,858 INFO [utils.nio.NioClient] (main:null) (logid:) Connected to 192.168.56.85:8250 2021-02-15 22:06:35,867 INFO [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Could not read cpuinfo_max_freq, falling back on libvirt 2021-02-15 22:06:35,927 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Attempting to create storage pool 5b0c937c-471e-4ea3-92cb-6ba6cdcc6c30 (Filesystem) in libvirt 2021-02-15 22:06:35,932 ERROR [kvm.resource.LibvirtConnection] (Agent-Handler-1:null) (logid:) Connection with libvirtd is broken: invalid connection pointer in virConnectGetVersion 2021-02-15 22:06:35,936 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Found existing defined storage pool 5b0c937c-471e-4ea3-92cb-6ba6cdcc6c30, using it. 2021-02-15 22:06:35,937 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Trying to fetch storage pool 5b0c937c-471e-4ea3-92cb-6ba6cdcc6c30 from libvirt 2021-02-15 22:06:36,015 INFO [cloud.serializer.GsonHelper] (Agent-Handler-1:null) (logid:) Default Builder inited. 2021-02-15 22:06:36,071 INFO [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Proccess agent startup answer, agent id = 0 2021-02-15 22:06:36,071 INFO [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Set agent id 0 2021-02-15 22:06:36,086 INFO [cloud.agent.Agent] (AgentShutdownThread:null) (logid:) Stopping the agent: Reason = sig.kill 2021-02-15 22:06:36,087 INFO [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Startup Response Received: agent id = 0 2021-02-15 22:06:47,969 INFO [cloud.agent.AgentShell] (main:null) (logid:) Agent started 2021-02-15 22:06:47,973 INFO [cloud.agent.AgentShell] (main:null) (logid:) Implementation Version is 4.15.0.0 2021-02-15 22:06:47,976 INFO [cloud.agent.AgentShell] (main:null) (logid:) agent.properties found at /etc/cloudstack/agent/agent.properties 2021-02-15 22:06:47,994 INFO [cloud.agent.AgentShell] (main:null) (logid:) Defaulting to using properties file for storage 2021-02-15 22:06:47,996 INFO [cloud.agent.AgentShell] (main:null) (logid:) Defaulting to the constant time backoff algorithm 2021-02-15 22:06:47,999 INFO [cloud.utils.LogUtils] (main:null) (logid:) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml 2021-02-15 22:06:48,015 INFO [cloud.agent.AgentShell] (main:null) (logid:) Using default Java settings for IPv6 preference for agent connection 2021-02-15 22:06:48,133 INFO [cloud.agent.Agent] (main:null) (logid:) id is 0 2021-02-15 22:06:48,140 WARN [cloud.resource.ServerResourceBase] (main:null) (logid:) Nics are not specified in properties file/db, will try to autodiscover 2021-02-15 22:06:48,145 INFO [cloud.resource.ServerResourceBase] (main:null) (logid:) Designating private to be nic cloudbr0 2021-02-15 22:06:48,148 ERROR [kvm.resource.LibvirtComputingResource] (main:null) (logid:) uefi properties file not found due to: Unable to find file uefi.properties. 2021-02-15 22:06:48,195 INFO [kvm.resource.LibvirtConnection] (main:null) (logid:) No existing libvirtd connection found. Opening a new one 2021-02-15 22:06:48,593 INFO [kvm.resource.LibvirtComputingResource] (main:null) (logid:) No libvirt.vif.driver specified. Defaults to BridgeVifDriver. 2021-02-15 22:06:48,813 INFO [kvm.resource.LibvirtComputingResource] (main:null) (logid:) iscsi session clean up is disabled 2021-02-15 22:06:48,827 INFO [cloud.agent.Agent] (main:null) (logid:) Agent [id = 0 : type = LibvirtComputingResource : zone = default : pod = default : workers = 5 : host = 192.168.56.85 : port = 8250 2021-02-15 22:06:48,839 INFO [utils.nio.NioClient] (main:null) (logid:) Connecting to 192.168.56.85:8250 2021-02-15 22:06:48,846 INFO [utils.nio.Link] (main:null) (logid:) Conf file found: /etc/cloudstack/agent/agent.properties 2021-02-15 22:06:48,875 WARN [utils.nio.Link] (main:null) (logid:) Failed to load keystore, using trust all manager 2021-02-15 22:06:49,466 INFO [utils.nio.NioClient] (main:null) (logid:) SSL: Handshake done 2021-02-15 22:06:49,469 INFO [utils.nio.NioClient] (main:null) (logid:) Connected to 192.168.56.85:8250 2021-02-15 22:06:49,481 INFO [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Could not read cpuinfo_max_freq, falling back on libvirt 2021-02-15 22:06:49,546 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Attempting to create storage pool 5b0c937c-471e-4ea3-92cb-6ba6cdcc6c30 (Filesystem) in libvirt 2021-02-15 22:06:49,551 ERROR [kvm.resource.LibvirtConnection] (Agent-Handler-1:null) (logid:) Connection with libvirtd is broken: invalid connection pointer in virConnectGetVersion 2021-02-15 22:06:49,554 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Found existing defined storage pool 5b0c937c-471e-4ea3-92cb-6ba6cdcc6c30, using it. 2021-02-15 22:06:49,555 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Trying to fetch storage pool 5b0c937c-471e-4ea3-92cb-6ba6cdcc6c30 from libvirt 2021-02-15 22:06:49,619 INFO [cloud.serializer.GsonHelper] (Agent-Handler-1:null) (logid:) Default Builder inited. 2021-02-15 22:06:49,659 INFO [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Proccess agent startup answer, agent id = 0 2021-02-15 22:06:49,661 INFO [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Set agent id 0 2021-02-15 22:06:49,676 INFO [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Startup Response Received: agent id = 0 2021-02-15 22:06:49,679 INFO [cloud.agent.Agent] (AgentShutdownThread:null) (logid:) Stopping the agent: Reason = sig.kill ``` ``` >> virsh pool-list Name State Autostart ------------------------------------------------------------ 5b0c937c-471e-4ea3-92cb-6ba6cdcc6c30 active no tmp active yes ``` Content of the configuration file of libvirtd: ``` log_level=1 listen_tls=1 mdns_adv=0 listen_tcp=0 tcp_port="16509" unix_sock_group = "libvirt" unix_sock_ro_perms = "0777" unix_sock_rw_perms = "0770" #tls_port="16514" auth_tcp="none" auth_tls="none" #key_file="/etc/pki/libvirt/private/serverkey.pem" #cert_file="/etc/pki/libvirt/servercert.pem" #ca_file="/etc/pki/CA/cacert.pem" ``` ``` >> sudo systemctl status libvirtd ● libvirtd.service - Virtualization daemon Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2021-02-15 22:29:19 CET; 9min ago TriggeredBy: ● libvirtd-ro.socket ● libvirtd-admin.socket Docs: man:libvirtd(8) https://libvirt.org Main PID: 33440 (libvirtd) Tasks: 17 (limit: 32768) Memory: 13.5M CGroup: /system.slice/libvirtd.service └─33440 /usr/sbin/libvirtd Feb 15 22:38:26 akham.alien.local libvirtd[33440]: EVENT_POLL_DISPATCH_HANDLE: watch=10 events=1 Feb 15 22:38:26 akham.alien.local libvirtd[33440]: EVENT_POLL_RUN: nhandles=9 timeout=-1 Feb 15 22:38:26 akham.alien.local libvirtd[33440]: EVENT_POLL_DISPATCH_HANDLE: watch=10 events=1 Feb 15 22:38:26 akham.alien.local libvirtd[33440]: EVENT_POLL_RUN: nhandles=9 timeout=-1 Feb 15 22:38:26 akham.alien.local libvirtd[33440]: EVENT_POLL_DISPATCH_HANDLE: watch=10 events=1 Feb 15 22:38:26 akham.alien.local libvirtd[33440]: EVENT_POLL_RUN: nhandles=9 timeout=-1 Feb 15 22:38:26 akham.alien.local libvirtd[33440]: EVENT_POLL_DISPATCH_HANDLE: watch=10 events=1 Feb 15 22:38:26 akham.alien.local libvirtd[33440]: EVENT_POLL_RUN: nhandles=9 timeout=-1 Feb 15 22:38:26 akham.alien.local libvirtd[33440]: EVENT_POLL_DISPATCH_HANDLE: watch=10 events=1 Feb 15 22:38:26 akham.alien.local libvirtd[33440]: EVENT_POLL_RUN: nhandles=9 timeout=-1 ``` ---------------------------------------------------------------- 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: us...@infra.apache.org