ThyLAW opened a new issue #4700:
URL: https://github.com/apache/cloudstack/issues/4700


   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   *help
    * Other
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   Cloudstack-agent
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master 
branch.
   -->
   
   ~~~
   4.15
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   NAT network from host give IP 192.168.236.2 gate way .1 255.255.255.0 . 
cloudbr0 given ip eth0 no statically assigned ip.
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   Hyperv Gen 2 VM
   CentOS 7.9
   Latest version of agent/cloudstack/etc
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   Cloudstack agent was working successfully until attempted to do basic 
configuration of cloudstack. Everything was up and runnin gand fine prior. 
Agent failed spouting SSL errors, disabled auth in global settings, and fixed 
that, but it is still down. Now it gives me issues about not being able to find 
Uefi.properties and can not connect with libvirtd which is working. I went to 
the directory that uefi.properties should exist but it does not exist. I also 
found that it automatically assigned my public and private nics wrong and had 
to change those to cloudbr0. I installed this twice, both coming up with 
similar issues on both vms. 
   
   `2021-02-17 19:00:18,639 ERROR [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) uefi properties file not found due to: Unable to find file 
uefi.properties.
   2021-02-17 19:00:18,682 INFO  [kvm.resource.LibvirtConnection] (main:null) 
(logid:) No existing libvirtd connection found. Opening a new one
   2021-02-17 19:00:18,895 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) No libvirt.vif.driver specified. Defaults to 
BridgeVifDriver.
   2021-02-17 19:00:19,079 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) iscsi session clean up is disabled
   2021-02-17 19:00:19,091 INFO  [cloud.agent.Agent] (main:null) (logid:) Agent 
[id = 0 : type = LibvirtComputingResource : zone = default : pod = default : 
workers = 5 : host = localhost : port = 8250
   2021-02-17 19:00:19,098 INFO  [utils.nio.NioClient] (main:null) (logid:) 
Connecting to localhost:8250
   2021-02-17 19:00:19,102 INFO  [utils.nio.Link] (main:null) (logid:) Conf 
file found: /etc/cloudstack/agent/agent.properties
   2021-02-17 19:00:19,111 WARN  [utils.nio.Link] (main:null) (logid:) Failed 
to load keystore, using trust all manager
   2021-02-17 19:00:19,286 INFO  [utils.nio.NioClient] (main:null) (logid:) 
SSL: Handshake done
   2021-02-17 19:00:19,286 INFO  [utils.nio.NioClient] (main:null) (logid:) 
Connected to localhost:8250
   2021-02-17 19:00:19,295 INFO  [utils.linux.KVMHostInfo] 
(Agent-Handler-1:null) (logid:) Could not read cpuinfo_max_freq, falling back 
on libvirt
   2021-02-17 19:00:19,351 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) (logid:) Attempting to create storage pool 
93e510d9-54e1-4c4d-8e0b-20e0ec3c523a (Filesystem) in libvirt
   2021-02-17 19:00:19,358 ERROR [kvm.resource.LibvirtConnection] 
(Agent-Handler-1:null) (logid:) Connection with libvirtd is broken: invalid 
connection pointer in virConnectGetVersion
   2021-02-17 19:00:19,365 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) (logid:) Found existing defined storage pool 
93e510d9-54e1-4c4d-8e0b-20e0ec3c523a, using it.
   2021-02-17 19:00:19,367 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) (logid:) Trying to fetch storage pool 
93e510d9-54e1-4c4d-8e0b-20e0ec3c523a from libvirt
   2021-02-17 19:00:19,410 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) (logid:) Default Builder inited.
   2021-02-17 19:00:19,497 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
(logid:) Proccess agent startup answer, agent id = 0
   2021-02-17 19:00:19,498 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
(logid:) Set agent id 0
   2021-02-17 19:00:19,503 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
(logid:) Stopping the agent: Reason = sig.kill
   2021-02-17 19:00:19,517 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
(logid:) Startup Response Received: agent id = 0
   2021-02-17 19:00:31,050 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Agent started
   2021-02-17 19:00:31,055 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Implementation Version is 4.15.0.0
   2021-02-17 19:00:31,057 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
agent.properties found at /etc/cloudstack/agent/agent.properties
   2021-02-17 19:00:31,068 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Defaulting to using properties file for storage
   2021-02-17 19:00:31,069 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Defaulting to the constant time backoff algorithm
   2021-02-17 19:00:31,071 INFO  [cloud.utils.LogUtils] (main:null) (logid:) 
log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
   2021-02-17 19:00:31,080 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Using default Java settings for IPv6 preference for agent connection
   2021-02-17 19:00:31,150 INFO  [cloud.agent.Agent] (main:null) (logid:) id is 0
   2021-02-17 19:00:31,159 ERROR [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) uefi properties file not found due to: Unable to find file 
uefi.properties.
   2021-02-17 19:00:31,199 INFO  [kvm.resource.LibvirtConnection] (main:null) 
(logid:) No existing libvirtd connection found. Opening a new one
   2021-02-17 19:00:31,401 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) No libvirt.vif.driver specified. Defaults to 
BridgeVifDriver.
   2021-02-17 19:00:31,610 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) iscsi session clean up is disabled
   2021-02-17 19:00:31,624 INFO  [cloud.agent.Agent] (main:null) (logid:) Agent 
[id = 0 : type = LibvirtComputingResource : zone = default : pod = default : 
workers = 5 : host = localhost : port = 8250
   2021-02-17 19:00:31,631 INFO  [utils.nio.NioClient] (main:null) (logid:) 
Connecting to localhost:8250
   2021-02-17 19:00:31,635 INFO  [utils.nio.Link] (main:null) (logid:) Conf 
file found: /etc/cloudstack/agent/agent.properties
   2021-02-17 19:00:31,646 WARN  [utils.nio.Link] (main:null) (logid:) Failed 
to load keystore, using trust all manager
   2021-02-17 19:00:31,871 INFO  [utils.nio.NioClient] (main:null) (logid:) 
SSL: Handshake done
   2021-02-17 19:00:31,871 INFO  [utils.nio.NioClient] (main:null) (logid:) 
Connected to localhost:8250
   2021-02-17 19:00:31,888 INFO  [utils.linux.KVMHostInfo] 
(Agent-Handler-1:null) (logid:) Could not read cpuinfo_max_freq, falling back 
on libvirt
   2021-02-17 19:00:31,975 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) (logid:) Attempting to create storage pool 
93e510d9-54e1-4c4d-8e0b-20e0ec3c523a (Filesystem) in libvirt
   2021-02-17 19:00:31,982 ERROR [kvm.resource.LibvirtConnection] 
(Agent-Handler-1:null) (logid:) Connection with libvirtd is broken: invalid 
connection pointer in virConnectGetVersion
   2021-02-17 19:00:31,987 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) (logid:) Found existing defined storage pool 
93e510d9-54e1-4c4d-8e0b-20e0ec3c523a, using it.
   2021-02-17 19:00:31,988 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) (logid:) Trying to fetch storage pool 
93e510d9-54e1-4c4d-8e0b-20e0ec3c523a from libvirt
   2021-02-17 19:00:32,041 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) (logid:) Default Builder inited.
   2021-02-17 19:00:32,122 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
(logid:) Proccess agent startup answer, agent id = 0
   2021-02-17 19:00:32,123 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
(logid:) Set agent id 0
   2021-02-17 19:00:32,135 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
(logid:) Startup Response Received: agent id = 0
   2021-02-17 19:00:32,141 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
(logid:) Stopping the agent: Reason = sig.kill
   2021-02-17 19:00:43,836 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Agent started
   2021-02-17 19:00:43,840 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Implementation Version is 4.15.0.0
   2021-02-17 19:00:43,842 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
agent.properties found at /etc/cloudstack/agent/agent.properties
   2021-02-17 19:00:43,852 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Defaulting to using properties file for storage
   2021-02-17 19:00:43,853 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Defaulting to the constant time backoff algorithm
   2021-02-17 19:00:43,856 INFO  [cloud.utils.LogUtils] (main:null) (logid:) 
log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
   2021-02-17 19:00:43,864 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Using default Java settings for IPv6 preference for agent connection
   2021-02-17 19:00:43,936 INFO  [cloud.agent.Agent] (main:null) (logid:) id is 0
   2021-02-17 19:00:43,944 ERROR [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) uefi properties file not found due to: Unable to find file 
uefi.properties.
   2021-02-17 19:00:43,982 INFO  [kvm.resource.LibvirtConnection] (main:null) 
(logid:) No existing libvirtd connection found. Opening a new one
   2021-02-17 19:00:44,206 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) No libvirt.vif.driver specified. Defaults to 
BridgeVifDriver.
   2021-02-17 19:00:44,347 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) iscsi session clean up is disabled
   2021-02-17 19:00:44,360 INFO  [cloud.agent.Agent] (main:null) (logid:) Agent 
[id = 0 : type = LibvirtComputingResource : zone = default : pod = default : 
workers = 5 : host = localhost : port = 8250
   2021-02-17 19:00:44,366 INFO  [utils.nio.NioClient] (main:null) (logid:) 
Connecting to localhost:8250
   2021-02-17 19:00:44,370 INFO  [utils.nio.Link] (main:null) (logid:) Conf 
file found: /etc/cloudstack/agent/agent.properties
   2021-02-17 19:00:44,382 WARN  [utils.nio.Link] (main:null) (logid:) Failed 
to load keystore, using trust all manager
   2021-02-17 19:00:44,556 INFO  [utils.nio.NioClient] (main:null) (logid:) 
SSL: Handshake done
   2021-02-17 19:00:44,556 INFO  [utils.nio.NioClient] (main:null) (logid:) 
Connected to localhost:8250
   2021-02-17 19:00:44,567 INFO  [utils.linux.KVMHostInfo] 
(Agent-Handler-1:null) (logid:) Could not read cpuinfo_max_freq, falling back 
on libvirt
   2021-02-17 19:00:44,657 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) (logid:) Attempting to create storage pool 
93e510d9-54e1-4c4d-8e0b-20e0ec3c523a (Filesystem) in libvirt
   2021-02-17 19:00:44,663 ERROR [kvm.resource.LibvirtConnection] 
(Agent-Handler-1:null) (logid:) Connection with libvirtd is broken: invalid 
connection pointer in virConnectGetVersion
   2021-02-17 19:00:44,671 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) (logid:) Found existing defined storage pool 
93e510d9-54e1-4c4d-8e0b-20e0ec3c523a, using it.
   2021-02-17 19:00:44,674 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) (logid:) Trying to fetch storage pool 
93e510d9-54e1-4c4d-8e0b-20e0ec3c523a from libvirt
   2021-02-17 19:00:44,743 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) (logid:) Default Builder inited.
   2021-02-17 19:00:44,825 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
(logid:) Proccess agent startup answer, agent id = 0
   2021-02-17 19:00:44,830 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
(logid:) Set agent id 0
   2021-02-17 19:00:44,830 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
(logid:) Stopping the agent: Reason = sig.kill
   2021-02-17 19:00:44,840 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
(logid:) Startup Response Received: agent id = 0
   `
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal 
test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   Exact way  I set this up up until I disabled SSL in global config.
   [New Apache 
Documentatino.docx](https://github.com/apache/cloudstack/files/5999398/New.Apache.Documentatino.docx)
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   
   ~~~
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to