You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "tatay188 (via GitHub)" <gi...@apache.org> on 2025/03/28 17:44:50 UTC

[I] CloudStack 4.20 UI Unable to add KVM-Host on VXLAN Logic structure - Errors [cloudstack]

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

   ### problem
   
   On CloudStack 4.20 with a KVM host, 
   modified the agent.properties private.network.device=cloudbr1 as originally have not resources available for cloudbr0
   
   I have my VXLAN 1 on Cloudbr1 that reaches management and SS, We only have cloudbr1 created, No other bridge, and everything is BGP.
   
   
   Then at the UI creating the ZONE I got errors:
   
   We have had tryed the following Options:
   
   Option 1: No tags
   I put only [Physical Network 1] [VXLAN] Management, throws a popup error " All required traffic types should be added and with multiple physical networks each traffic type should have a label"
   
   Option 2: No Tags, Throws and Error " All required traffic types should be added and with multiple physical networks each traffic type should have a label"
   I put : 
   [Physical Network 1] [VXLAN] Management
   [Physical Network 2] [VXLAN] Public
   [Physical Network 3] [VXLAN] Guest
   [Physical Network 4] [VXLAN] Storage
   
   
   Option 3:  
   I put : 
   [Physical Network 1] [VXLAN] Management, Public, Guest, it goes to the next window - which is Great
   
   Going with Option 3:
   
   The the system throws exceptions like:
   Something went wrong; please correct the following:
   Unable to add the host: Cannot find the server resources at http://<KVM-IP>
   
   At this point libvirt is always up and running.
   
   
   LOGS:
   
   Management logs shows:
   Succeeded to import certificate in the keystore for agent on the KVM host: <ip>. Agent secured and trusted
   
   
   The Agent Logs:
    
   2025-03-28 16:48:42,550 DEBUG [commons.beanutils.ConvertUtils] (main:[]) (logid:) Convert string '<IP-MGMT1>,<IP-MGMT2>' to class 'java.lang.String'
   2025-03-28 16:48:42,550 DEBUG [beanutils.converters.StringConverter] (main:[]) (logid:) Converting 'String' value '<IP-MGMT1>,<IP-MGMT2>' to type 'String'
   2025-03-28 16:48:42,551 DEBUG [agent.properties.AgentPropertiesFileHandler] (main:[]) (logid:) Property [guid] has empty or null value. Using default value [null].
   2025-03-28 16:48:42,552 DEBUG [agent.properties.AgentPropertiesFileHandler] (main:[]) (logid:) Property [developer] has empty or null value. Using default value [false].
   2025-03-28 16:48:53,897 INFO  [cloud.agent.AgentShell] (main:[]) (logid:) Agent started
   2025-03-28 16:48:53,902 INFO  [cloud.agent.AgentShell] (main:[]) (logid:) Implementation Version is 4.20.0.0
   2025-03-28 16:48:53,904 INFO  [cloud.agent.AgentShell] (main:[]) (logid:) agent.properties found at /etc/cloudstack/agent/agent.properties
   2025-03-28 16:48:53,913 DEBUG [agent.properties.AgentPropertiesFileHandler] (main:[]) (logid:) Property [host] was altered. Now using the value [10.23.123.61,10.23.123.62].
   2025-03-28 16:48:53,923 DEBUG [beanutils.converters.BooleanConverter] (main:[]) (logid:) Setting default value: false
   2025-03-28 16:48:53,923 DEBUG [beanutils.converters.BooleanConverter] (main:[]) (logid:) Converting 'Boolean' value 'false' to type 'Boolean'
   2025-03-28 16:48:53,923 DEBUG [beanutils.converters.BooleanConverter] (main:[]) (logid:)     No conversion required, value is already a Boolean
   2025-03-28 16:48:53,925 DEBUG [beanutils.converters.ByteConverter] (main:[]) (logid:) Setting default value: 0
   2025-03-28 16:48:53,925 DEBUG [beanutils.converters.ByteConverter] (main:[]) (logid:) Converting 'Integer' value '0' to type 'Byte'
   2025-03-28 16:48:53,925 DEBUG [beanutils.converters.ByteConverter] (main:[]) (logid:)     Converted to Byte value '0'
   2025-03-28 16:48:53,926 DEBUG [beanutils.converters.CharacterConverter] (main:[]) (logid:) Setting default value:
   2025-03-28 16:48:53,926 DEBUG [beanutils.converters.CharacterConverter] (main:[]) (logid:) Converting 'Character' value ' ' to type 'Character'
   2025-03-28 16:48:53,926 DEBUG [beanutils.converters.CharacterConverter] (main:[]) (logid:)     No conversion required, value is already a Character
   2025-03-28 16:48:53,926 DEBUG [beanutils.converters.DoubleConverter] (main:[]) (logid:) Setting default value: 0
   2025-03-28 16:48:53,926 DEBUG [beanutils.converters.DoubleConverter] (main:[]) (logid:) Converting 'Integer' value '0' to type 'Double'
   2025-03-28 16:48:53,927 DEBUG [beanutils.converters.DoubleConverter] (main:[]) (logid:)     Converted to Double value '0.0'
   2025-03-28 16:48:53,927 DEBUG [beanutils.converters.FloatConverter] (main:[]) (logid:) Setting default value: 0
   2025-03-28 16:48:53,927 DEBUG [beanutils.converters.FloatConverter] (main:[]) (logid:) Converting 'Integer' value '0' to type 'Float'
   2025-03-28 16:48:53,927 DEBUG [beanutils.converters.FloatConverter] (main:[]) (logid:)     Converted to Float value '0.0'
   2025-03-28 16:48:53,928 DEBUG [beanutils.converters.IntegerConverter] (main:[]) (logid:) Setting default value: 0
   
   AGENT out :
   Unable to find the guid
   Unable to find the guid
   Unable to find the guid
   Unable to find the guid
   Unable to find the guid
   
   There is nothing there
   
   And the agent come up, and immediately goes down!!
   
   
   
   Tata Y.
   
   ### versions
   
   ACS 4.20.0.0
   Management1 Ubuntu 22.04
   Management2 ubuntu 22.04
   Primary Storage CEPH 
   Secondary Storage EMC NFS
   Hypervisor: KVM UBUNTU 22.04
   
   ### The steps to reproduce the bug
   
   1. Adding the first Zone Go over the process 
   2. on network [Physical Network 1] [VXLAN] Management, Public, Guest
   3. Add hosts, Kvm host keeps bouncing,
   4. enable debug logs:  - there are no additional logs -
   
   
   ### What to do about it?
   
   _No response_


-- 
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-unsubscribe@cloudstack.apache.org.apache.org

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


Re: [I] CloudStack 4.20 UI Unable to add KVM-Host on VXLAN Logic structure - Errors [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #10636:
URL: https://github.com/apache/cloudstack/issues/10636#issuecomment-2788431595

   @tatay188 
   there is log file `setup.log` in the same folder as `agent.log`
   you can have a look


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] CloudStack 4.20 UI Unable to add KVM-Host on VXLAN Logic structure - Errors [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland closed issue #10636: CloudStack 4.20 UI Unable to add KVM-Host on  VXLAN Logic structure - Errors
URL: https://github.com/apache/cloudstack/issues/10636


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] CloudStack 4.20 UI Unable to add KVM-Host on VXLAN Logic structure - Errors [cloudstack]

Posted by "Gunseerat (via GitHub)" <gi...@apache.org>.
Gunseerat commented on issue #10636:
URL: https://github.com/apache/cloudstack/issues/10636#issuecomment-2788419539

   Can you try entering guid from libvirt file, actually libvirt is responsible for sending this guid to cloudstack-agent.
   Open /etc/libvirt/libvirtd.conf file 
   find host_uuid
   copy this value
   go to /etc/cloudstack/agent/agent.properties
   in guid field which should be empty for you .... you can paste this.
   Although this is sort of injecting values deliberately


-- 
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-unsubscribe@cloudstack.apache.org

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


Re: [I] CloudStack 4.20 UI Unable to add KVM-Host on VXLAN Logic structure - Errors [cloudstack]

Posted by "tatay188 (via GitHub)" <gi...@apache.org>.
tatay188 commented on issue #10636:
URL: https://github.com/apache/cloudstack/issues/10636#issuecomment-2789401531

   **### On the AGENT side:**
   
   Not sure if this is just related to Ubuntu systems:
   
   there is an error on the management server every time i reload it:
   
   DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management stop
   DEBUG:root:execute:sudo update-rc.d -f cloudstack-management remove
   DEBUG:root:execute:sudo update-rc.d -f cloudstack-management defaults
   DEBUG:root:Failed to execute:update-rc.d: **### error: unable to read /etc/init.d/cloudstack-management**
   DEBUG:root:execute:sudo /usr/sbin/service cloudstack-management status
   DEBUG:root:Failed to execute:× cloudstack-management.service - CloudStack Management Server
        Loaded: loaded (/lib/systemd/system/cloudstack-management.service; enabled; vendor preset: enabled)
        Active: failed (Result: exit-code) since Wed 2025-04-02 13:13:48 UTC; 1 day 8h ago
      Main PID: 537731 (code=exited, status=143)
           CPU: 27min 54.476s
   
   Obviously there is no such file: Should I create One?
   
   ls -al /etc/init.d/
   cryptdisks           grub-common          iwpmd                nfs-common           plymouth             rng-tools-debian     ufw                  
   apparmor             cryptdisks-early     hwclock.sh           keyboard-setup.sh    ntp                  plymouth-log         rpcbind              unattended-upgrades  
   apport               dbus                 ipmievd              kmod                 open-iscsi           procps               rsync                uuidd                
   console-setup.sh     dpdk                 irqbalance           lvm2                 openipmi             quota                ssh                  x11-common           
   cron                 frr                  iscsid               lvm2-lvmpolld        openvswitch-switch
   
   
   **### On the management side**, only when i restart the agent:
   
   Apr 03 18:41:23 kvmvcompatl2001 systemd[1]: Starting Uncomplicated firewall...
   Apr 03 18:41:23 kvmvcompatl2001 systemd[1]: Finished Uncomplicated firewall.
   Apr 03 23:30:14 kvmvcompatl2001 systemd[1]: Stopping Uncomplicated firewall...
   Apr 03 23:30:14 kvmvcompatl2001 ufw-init[56782]: Skip stopping firewall: ufw (not enabled)
   Apr 03 23:30:14 kvmvcompatl2001 systemd[1]: ufw.service: Deactivated successfully.
   Apr 03 23:30:14 kvmvcompatl2001 systemd[1]: Stopped Uncomplicated firewall.
   DEBUG:root:execute:sudo /usr/sbin/service ufw start
   DEBUG:root:execute:sudo /usr/sbin/service cloudstack-agent status
   DEBUG:root:execute:sudo /usr/sbin/service cloudstack-agent stop
   DEBUG:root:execute:sleep 30
   DEBUG:root:execute:sudo update-rc.d -f cloudstack-agent remove
   DEBUG:root:execute:sudo update-rc.d -f cloudstack-agent defaults
   DEBUG:root:**### Failed to execute:update-rc.d: error: unable to read /etc/init.d/cloudstack-agent**
   DEBUG:root:execute:sudo /usr/sbin/service cloudstack-agent status
   DEBUG:root:Failed to execute:○ cloudstack-agent.service - CloudStack Agent
        Loaded: loaded (/lib/systemd/system/cloudstack-agent.service; enabled; vendor preset: enabled)
        Active: inactive (dead) (Result: exit-code) since Thu 2025-04-03 23:30:17 UTC; 31s ago
          Docs: http://www.cloudstack.org/
      Main PID: 56558 (code=exited, status=1/FAILURE)
           CPU: 14.716s
   
   Apr 03 23:30:17 kvmvcompatl2001 systemd[1]: Stopped CloudStack Agent.
   Apr 03 23:30:17 kvmvcompatl2001 systemd[1]: cloudstack-agent.service: Consumed 14.716s CPU time.
   DEBUG:root:execute:sudo /usr/sbin/service cloudstack-agent start
   
   
   **### Regarding the VXLAN** i found the Cloudstack does not link the Interface Loopback to the VXLAN interface,
   I did manually and now it propagates the routes
   


-- 
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-unsubscribe@cloudstack.apache.org

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