KobesM opened a new issue, #8851:
URL: https://github.com/apache/cloudstack/issues/8851

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main 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
   
   ##### 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 main 
branch.
   -->
   
   ~~~
   4.19
   ~~~
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   - single cloudstack management 4.19 server fresh install on Almalinux 9.3
   - cloudstack agent 4.19 fresh install on Almalinux 9.3
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   This is my first time setting up apache cloudstack. After installing my 
management server and having it up and running I am trying to add my first KVM 
host. When adding the host from the UI I receive the following error:
   ```
   Error 530
   Unable to add the host: Cannot find the server resources at http://xxxxxxxx
   ```
   
   I found that the cloudstack-agent is not running on the host:
   ```
   ]# systemctl status cloudstack-agent
   ● cloudstack-agent.service - CloudStack Agent
        Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 
enabled; preset: disabled)
        Active: activating (auto-restart) (Result: exit-code) since Sat 
2024-03-30 11:42:23 CET; 5s ago
          Docs: http://www.cloudstack.org/
       Process: 163327 ExecStart=/usr/bin/java $JAVA_OPTS $JAVA_DEBUG -cp 
$CLASSPATH $JAVA_CLASS (code=exited, status=67)
      Main PID: 163327 (code=exited, status=67)
           CPU: 2.548s
   ```
   
   The agent log on the host has the following:
   ```
   2024-03-30 11:43:16,759 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Agent started
   2024-03-30 11:43:16,763 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Implementation Version is 4.19.0.0
   2024-03-30 11:43:16,764 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
agent.properties found at /etc/cloudstack/agent/agent.properties
   2024-03-30 11:43:16,809 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Defaulting to using properties file for storage
   2024-03-30 11:43:16,809 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Defaulting to the constant time backoff algorithm
   2024-03-30 11:43:16,850 INFO  [cloud.utils.LogUtils] (main:null) (logid:) 
log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
   2024-03-30 11:43:16,850 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Using default Java settings for IPv6 preference for agent connection
   2024-03-30 11:43:16,925 INFO  [cloud.agent.Agent] (main:null) (logid:) id is
   2024-03-30 11:43:16,936 ERROR [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) uefi properties file not found due to: Unable to find file 
uefi.properties.
   2024-03-30 11:43:16,982 INFO  [kvm.resource.LibvirtConnection] (main:null) 
(logid:) No existing libvirtd connection found. Opening a new one
   2024-03-30 11:43:17,075 ERROR [cloud.agent.AgentShell] (main:null) (logid:) 
Unable to start agent:
   com.cloud.utils.exception.CloudRuntimeException: Failed to connect socket to 
'/var/run/libvirt/virtqemud-sock': Connection refused
           at 
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure(LibvirtComputingResource.java:1131)
           at com.cloud.agent.Agent.<init>(Agent.java:193)
           at com.cloud.agent.AgentShell.launchNewAgent(AgentShell.java:452)
           at 
com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:431)
           at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:415)
           at com.cloud.agent.AgentShell.start(AgentShell.java:511)
           at com.cloud.agent.AgentShell.main(AgentShell.java:541)
   ```
   
   
   ##### 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.
   -->
   
   <!-- 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.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org.apache.org

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

Reply via email to