You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "leduyquy (via GitHub)" <gi...@apache.org> on 2025/04/15 08:40:06 UTC

[D] Host stuck state: Alert, When add Secondary storage [cloudstack]

GitHub user leduyquy created a discussion: Host stuck state: Alert, When add Secondary storage

### problem

I have plan deploy 1 zone use local disk and GPU, Because i don't need HA, i don't deploy any shared storage to primary storage. I using only local disk for primary storage.

When i setup Secondary storage use NFS for store template and ISO, KVM host in Zone state stuck on alert,  To make sure the NFS configuration works fine, I mounted it manually on the kvm host and managerment and it worked fine

when i created the zone i saw it still created 2 system vm for the zone and it worked fine, things only got worse when i started creating VMs and digging deeper into them

### versions

Managerment Version: 4.20.0
Agent Version: 4.20.0
KVM host OS: 22.04

### The steps to reproduce the bug

1. Create Zone and set use local storage for user instance and system VM 
2. Add Secondary Storage
3. Restart cloudstack-agent or reboot KVM host
...


### What to do about it?

Add Secondary storage and anything working fine 

GitHub link: https://github.com/apache/cloudstack/discussions/10718

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

cloudstack-management service is running with user `cloud`, not `root`.
some commands might succeed when run as `root`, but fail if run as `cloud`

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12840874

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "leduyquy (via GitHub)" <gi...@apache.org>.
GitHub user leduyquy added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

I don't use KVM migration so I didn't install it, Other hosts also do not need to install this package and it still works fine. After I installed it, the log also no longer has the alert, but the host is still stuck in the alert.

Log on agent:

> 2025-04-11 16:26:49,589 INFO  [cloud.agent.Agent] (Agent-Handler-2:[]) (logid:) Reconnecting to host:<IP managerment>
> 2025-04-11 16:26:49,590 INFO  [utils.nio.NioClient] (Agent-Handler-2:[]) (logid:) Connecting to <IP managerment>:8250
> 2025-04-11 16:26:49,591 INFO  [utils.nio.Link] (Agent-Handler-2:[]) (logid:) Conf file found: /etc/cloudstack/agent/agent.properties
> 2025-04-11 16:26:49,677 INFO  [utils.nio.NioClient] (Agent-Handler-2:[]) (logid:) SSL: Handshake done
> 2025-04-11 16:26:49,677 INFO  [utils.nio.NioClient] (Agent-Handler-2:[]) (logid:) Connected to <IP managerment>:8250
> 2025-04-11 16:26:49,706 INFO  [utils.linux.KVMHostInfo] (Agent-Handler-1:[]) (logid:) Fetching CPU speed from command "lscpu".
> 2025-04-11 16:26:49,740 ERROR [utils.linux.KVMHostInfo] (Agent-Handler-1:[]) (logid:) Unable to retrieve the CPU speed from lscpu. java.lang.NullPointerException: Cannot invoke "String.trim()" because "in" is null
> 	at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1838)
> 	at java.base/jdk.internal.math.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
> 	at java.base/java.lang.Float.parseFloat(Float.java:476)
> 	at org.apache.cloudstack.utils.linux.KVMHostInfo.getCpuSpeedFromCommandLscpu(KVMHostInfo.java:141)
> 	at org.apache.cloudstack.utils.linux.KVMHostInfo.getCpuSpeed(KVMHostInfo.java:116)
> 	at org.apache.cloudstack.utils.linux.KVMHostInfo.getHostInfoFromLibvirt(KVMHostInfo.java:196)
> 	at org.apache.cloudstack.utils.linux.KVMHostInfo.<init>(KVMHostInfo.java:69)
> 	at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.initialize(LibvirtComputingResource.java:3672)
> 	at com.cloud.agent.Agent.sendStartup(Agent.java:458)
> 	at com.cloud.agent.Agent$ServerHandler.doTask(Agent.java:1128)
> 	at com.cloud.utils.nio.Task.call(Task.java:83)
> 	at com.cloud.utils.nio.Task.call(Task.java:29)
> 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
> 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
> 	at java.base/java.lang.Thread.run(Thread.java:840)
> 
> 2025-04-11 16:26:49,741 INFO  [utils.linux.KVMHostInfo] (Agent-Handler-1:[]) (logid:) Fetching CPU speed from file [/sys/devices/system/cpu/cpu0/cpufreq/base_frequency].
> 2025-04-11 16:26:49,742 INFO  [utils.linux.KVMHostInfo] (Agent-Handler-1:[]) (logid:) Retrieved value [2000000] from file [/sys/devices/system/cpu/cpu0/cpufreq/base_frequency]. This corresponds to a CPU speed of [2000] MHz.
> 2025-04-11 16:26:49,742 INFO  [utils.linux.KVMHostInfo] (Agent-Handler-1:[]) (logid:) Fetching host CPU arch
> 2025-04-11 16:26:49,753 INFO  [kvm.resource.LibvirtComputingResource] (Agent-Handler-1:[]) (logid:) Host uses control group [cgroup2fs].
> 2025-04-11 16:26:49,753 INFO  [kvm.resource.LibvirtComputingResource] (Agent-Handler-1:[]) (logid:) Calculating the max shares of the host.
> 2025-04-11 16:26:49,753 INFO  [kvm.resource.LibvirtComputingResource] (Agent-Handler-1:[]) (logid:) The max shares of the host is [64000].
> 2025-04-11 16:26:49,898 INFO  [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:[]) (logid:) Attempting to create storage pool 4952e569-130a-4dd8-817c-78f945323cfa (Filesystem) in libvirt
> 2025-04-11 16:26:49,901 INFO  [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:[]) (logid:) Found existing defined storage pool 4952e569-130a-4dd8-817c-78f945323cfa, using it.
> 2025-04-11 16:26:49,902 INFO  [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:[]) (logid:) Trying to fetch storage pool 4952e569-130a-4dd8-817c-78f945323cfa from libvirt
> 2025-04-11 16:26:49,947 INFO  [cloud.agent.Agent] (Agent-Handler-2:[]) (logid:) Process agent startup answer, agent id = 0
> 2025-04-11 16:26:49,949 INFO  [cloud.agent.Agent] (Agent-Handler-2:[]) (logid:) Startup Response Received: agent id = 0
> 2025-04-11 16:26:50,236 WARN  [cloud.agent.Agent] (Agent-Handler-1:[]) (logid:6ffc30f3) Unable to send response: null






GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839043

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "leduyquy (via GitHub)" <gi...@apache.org>.
GitHub user leduyquy added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

I have setup a new zone and this is the log related to secondary storage when I create the zone. if you need any more logs please give me more info about it, there are quite a few logs and it's confusing me

Note: I have to change the system template because my system is isolated from the internet so I need to download it to a local repository and then register the system template from there to avoid some errors when it tries to download it from the internet.

> 2025-04-15 10:19:35,765 DEBUG [c.c.a.ApiServlet] (qtp1404565079-3462:[ctx-e9a4f837]) (logid:5e0fa690) ===START===  <My IP> -- GET  name=gpu_temp&provider=NFS&zoneid=914dcaa9-4e16-4897-b3b3-3f240da4da68&url=nfs:%2F%2F172.29.0.4%2Fexport%2Ftemp-gpu-02&command=addImageStore&response=json&sessionkey=3NI7FMyUKba5a0DnprCgcrGKmBU
> 2025-04-15 10:19:35,765 DEBUG [c.c.a.ApiServlet] (qtp1404565079-3462:[ctx-e9a4f837]) (logid:5e0fa690) Two factor authentication is already verified for the user 2, so skipping
> 2025-04-15 10:19:35,774 DEBUG [c.c.a.ApiServer] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) CIDRs from which account 'Account [{"accountName":"admin","id":2,"uuid":"101eb92f-8616-11ef-9375-0050569bf5b3"}]' is allowed to perform API calls: 0.0.0.0/0,::/0
> 2025-04-15 10:19:35,778 DEBUG [o.a.c.a.StaticRoleBasedAPIAccessChecker] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) RoleService is enabled. We will use it instead of StaticRoleBasedAPIAccessChecker.
> 2025-04-15 10:19:35,778 DEBUG [o.a.c.r.ApiRateLimitServiceImpl] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) API rate limiting is disabled. We will not use ApiRateLimitService.
> 2025-04-15 10:19:35,787 INFO  [o.a.c.s.d.l.CloudStackImageStoreLifeCycleImpl] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Trying to add a new data store at nfs://<IP  NFS Server>/export/temp-gpu-02 to data center 13
> 2025-04-15 10:19:36,083 ERROR [o.a.c.s.i.TemplateServiceImpl] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) No remote endpoint to send command, check if host or ssvm is down?
> 2025-04-15 10:19:36,083 DEBUG [o.a.c.s.i.TemplateServiceImpl] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) can not list template for secondary storage host 25
> 2025-04-15 10:19:36,106 DEBUG [c.c.u.s.Script] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Executing command [/bin/bash -c sudo mount -t nfs <IP  NFS Server>:/export/temp-gpu-02 /tmp/tmp3484467797256588955 ].
> 2025-04-15 10:19:36,269 DEBUG [c.c.u.s.Script] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Successfully executed process [1463163] for command [/bin/bash -c sudo mount -t nfs <IP  NFS Server>:/export/temp-gpu-02 /tmp/tmp3484467797256588955 ].
> 2025-04-15 10:19:36,270 INFO  [c.c.u.SystemVmTemplateRegistration] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) SystemVM template not seeded
> 2025-04-15 10:19:36,270 INFO  [c.c.u.SystemVmTemplateRegistration] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Unmounting store
> 2025-04-15 10:19:36,270 DEBUG [c.c.u.s.Script] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Executing command [/bin/bash -c sudo umount /tmp/tmp3484467797256588955 ].
> 2025-04-15 10:19:36,317 DEBUG [c.c.u.s.Script] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Successfully executed process [1463172] for command [/bin/bash -c sudo umount /tmp/tmp3484467797256588955 ].
> 2025-04-15 10:19:36,318 ERROR [c.c.u.SystemVmTemplateRegistration] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Failed to delete temporary directory: /tmp/tmp3484467797256588955
> 2025-04-15 10:19:36,318 DEBUG [c.c.u.s.Script] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Executing command [/bin/bash -c sudo mount -t nfs <IP  NFS Server>:/export/temp-gpu-02 /tmp/tmp2932083128175864809 ].
> 2025-04-15 10:19:36,439 DEBUG [c.c.u.s.Script] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Successfully executed process [1463176] for command [/bin/bash -c sudo mount -t nfs <IP  NFS Server>:/export/temp-gpu-02 /tmp/tmp2932083128175864809 ].
> 2025-04-15 10:19:36,455 DEBUG [c.c.u.s.Script] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Looking for setup-sysvm-tmplt in the classpath
> 2025-04-15 10:19:36,455 DEBUG [c.c.u.s.Script] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) System resource: null
> 2025-04-15 10:19:36,455 DEBUG [c.c.u.s.Script] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Classpath resource: file:/usr/share/cloudstack-common/scripts/storage/secondary/setup-sysvm-tmplt
> 2025-04-15 10:19:36,455 DEBUG [c.c.u.s.Script] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Absolute path =  /usr/share/cloudstack-common/scripts/storage/secondary/setup-sysvm-tmplt
> 2025-04-15 10:19:36,455 DEBUG [c.c.u.SystemVmTemplateRegistration] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Executing command [/usr/share/cloudstack-common/scripts/storage/secondary/setup-sysvm-tmplt -u 56a71448-0c8f-42f6-802a-747a16db119e -f /usr/share/cloudstack-management/templates/systemvm/systemvmtemplate-4.20.0-x86_64-kvm.qcow2.bz2 -h kvm -d /tmp/tmp2932083128175864809/template/tmpl/1/523 ].
> 2025-04-15 10:20:50,631 DEBUG [c.c.u.SystemVmTemplateRegistration] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Successfully executed process [1463183] for command [/usr/share/cloudstack-common/scripts/storage/secondary/setup-sysvm-tmplt -u 56a71448-0c8f-42f6-802a-747a16db119e -f /usr/share/cloudstack-management/templates/systemvm/systemvmtemplate-4.20.0-x86_64-kvm.qcow2.bz2 -h kvm -d /tmp/tmp2932083128175864809/template/tmpl/1/523 ].
> 2025-04-15 10:20:50,631 DEBUG [c.c.u.SystemVmTemplateRegistration] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) + [[ ! -u 56a71448-0c8f-42f6-802a-747a16db119e -f /usr/share/cloudstack-management/templates/systemvm/systemvmtemplate-4.20.0-x86_64-kvm.qcow2.bz2 -h kvm -d /tmp/tmp2932083128175864809/template/tmpl/1/523 =~ ^-.+ ]]
> 2025-04-15 10:20:50,632 WARN  [c.c.u.SystemVmTemplateRegistration] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Failed to read from template.properties java.io.FileNotFoundException: /tmp/tmp2932083128175864809/template/tmpl/1/523/template.properties (Permission denied)
> 2025-04-15 10:20:50,640 INFO  [c.c.u.SystemVmTemplateRegistration] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Unmounting store
> 2025-04-15 10:20:50,640 DEBUG [c.c.u.s.Script] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Executing command [/bin/bash -c sudo umount /tmp/tmp2932083128175864809 ].
> 2025-04-15 10:20:50,697 DEBUG [c.c.u.s.Script] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Successfully executed process [1463502] for command [/bin/bash -c sudo umount /tmp/tmp2932083128175864809 ].
> 2025-04-15 10:20:50,796 INFO  [c.c.a.ApiServlet] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) (userId=2 accountId=2 sessionId=node01kshhea6vhla8mgsf216v2ie21) <My IP> -- GET name=gpu_temp&provider=NFS&zoneid=914dcaa9-4e16-4897-b3b3-3f240da4da68&url=nfs:%2F%2F172.29.0.4%2Fexport%2Ftemp-gpu-02&command=addImageStore&response=json&sessionkey=3NI7FMyUKba5a0DnprCgcrGKmBU 200 {"addimagestoreresponse":{"imagestore":{"id":"200b0d4c-f0ec-4d4b-a43b-c894ece6cbc5","zoneid":"914dcaa9-4e16-4897-b3b3-3f240da4da68","zonename":"C.K.GPU","name":"gpu_temp","url":"nfs://<IP  NFS Server>/export/temp-gpu-02","protocol":"nfs","providername":"NFS","scope":"ZONE","readonly":false,"hasannotations":false}}}
> 2025-04-15 10:20:50,796 DEBUG [c.c.a.ApiServlet] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) ===END===  <My IP> -- GET  name=gpu_temp&provider=NFS&zoneid=914dcaa9-4e16-4897-b3b3-3f240da4da68&url=nfs:%2F%2F172.29.0.4%2Fexport%2Ftemp-gpu-02&command=addImageStore&response=json&sessionkey=3NI7FMyUKba5a0DnprCgcrGKmBU
> 

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839052

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

sounds reasonable, but as a followup, do the rest of the hosts all look the same?

it must be the combination host/secondary storage as far as I understand, if all other hosts function normally.



GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839046

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "leduyquy (via GitHub)" <gi...@apache.org>.
GitHub user leduyquy added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

 Can the host reach the NFS?
=> Host can connect to nfs server, i tried mounting nfs folder manually on hosts to make sure it works properly

 Can you share the agent log for the host?
=> Below is the agent log on host.

> 
> 2025-04-11 10:42:56,783 INFO  [cloud.agent.Agent] (Agent-Handler-1:[]) (logid:) Reconnecting to host:<IP Managerment>
> 2025-04-11 10:42:56,783 INFO  [utils.nio.NioClient] (Agent-Handler-1:[]) (logid:) Connecting to <IP Managerment>:8250
> 2025-04-11 10:42:56,784 INFO  [utils.nio.Link] (Agent-Handler-1:[]) (logid:) Conf file found: /etc/cloudstack/agent/agent.properties
> 2025-04-11 10:42:56,825 INFO  [utils.nio.NioClient] (Agent-Handler-1:[]) (logid:) SSL: Handshake done
> 2025-04-11 10:42:56,825 INFO  [utils.nio.NioClient] (Agent-Handler-1:[]) (logid:) Connected to <IP Managerment>:8250
> 2025-04-11 10:42:56,877 INFO  [utils.linux.KVMHostInfo] (Agent-Handler-1:[]) (logid:) Fetching CPU speed from command "lscpu".
> 2025-04-11 10:42:56,914 ERROR [utils.linux.KVMHostInfo] (Agent-Handler-1:[]) (logid:) Unable to retrieve the CPU speed from lscpu. java.lang.NullPointerException
> 
> 2025-04-11 10:42:56,914 INFO  [utils.linux.KVMHostInfo] (Agent-Handler-1:[]) (logid:) Fetching CPU speed from file [/sys/devices/system/cpu/cpu0/cpufreq/base_frequency].
> 2025-04-11 10:42:56,915 INFO  [utils.linux.KVMHostInfo] (Agent-Handler-1:[]) (logid:) Retrieved value [2000000] from file [/sys/devices/system/cpu/cpu0/cpufreq/base_frequency]. This corresponds to a CPU speed of [2000] MHz.
> 2025-04-11 10:42:56,915 INFO  [utils.linux.KVMHostInfo] (Agent-Handler-1:[]) (logid:) Fetching host CPU arch
> 2025-04-11 10:42:56,926 INFO  [kvm.resource.LibvirtComputingResource] (Agent-Handler-1:[]) (logid:) Host uses control group [cgroup2fs].
> 2025-04-11 10:42:56,926 INFO  [kvm.resource.LibvirtComputingResource] (Agent-Handler-1:[]) (logid:) Calculating the max shares of the host.
> 2025-04-11 10:42:56,926 INFO  [kvm.resource.LibvirtComputingResource] (Agent-Handler-1:[]) (logid:) The max shares of the host is [64000].
> 2025-04-11 10:42:57,009 WARN  [utils.script.Script] (Agent-Handler-1:[]) (logid:) Execution of process [1715251] for command [/bin/bash -c virt-v2v --version ] failed.
> 2025-04-11 10:42:57,009 WARN  [utils.script.Script] (Agent-Handler-1:[]) (logid:) Process [1715251] for command [/bin/bash -c virt-v2v --version ] encountered the error: [127].
> 2025-04-11 10:42:57,030 INFO  [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:[]) (logid:) Attempting to create storage pool 4952e569-130a-4dd8-817c-78f945323cfa (Filesystem) in libvirt
> 2025-04-11 10:42:57,052 INFO  [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:[]) (logid:) Found existing defined storage pool 4952e569-130a-4dd8-817c-78f945323cfa, using it.
> 2025-04-11 10:42:57,052 INFO  [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:[]) (logid:) Trying to fetch storage pool 4952e569-130a-4dd8-817c-78f945323cfa from libvirt
> 2025-04-11 10:42:57,078 INFO  [cloud.agent.Agent] (Agent-Handler-2:[]) (logid:) Process agent startup answer, agent id = 0
> 2025-04-11 10:42:57,079 INFO  [cloud.agent.Agent] (Agent-Handler-2:[]) (logid:) Startup Response Received: agent id = 0
> 2025-04-11 10:42:57,577 WARN  [cloud.agent.Agent] (Agent-Handler-5:[]) (logid:8c3b34cc) Unable to send response: null


here is the log from the management server i found. hope it helps

> 2025-04-11 09:46:30,192 DEBUG [o.a.c.c.p.RootCACustomTrustManager] (pool-13580-thread-1:[]) (logid:) Client/agent connection from ip=<IP host agent> accepted without certificate validation.
> 2025-04-11 09:46:30,465 DEBUG [c.c.a.t.Request] (AgentManager-Handler-7:[ctx-003f58d4]) (logid:) Seq 0-34315: Scheduling the first command  { Cmd , MgmtId: -1, via: 0, Ver: v1, Flags: 1, [{"com.cloud.agent.api.StartupRoutingCommand":{"cpuSockets":"1","cpus":"32","speed":"2000","cpuArch":"x86_64","memory":"268672163840","dom0MinMemory":"1073741824","poolSync":"false","supportsClonedVolumes":"false","caps":"hvm,snapshot","pool":"/root","hypervisorType":"KVM","hostDetails":{"Host.OS.Kernel.Version":"5.15.0-135-generic","com.cloud.network.Networks.RouterPrivateIpStrategy":"HostLocal","Host.OS.Version":"22.04","host.volume.encryption":"true","host.instance.conversion":"false","secured":"true","Host.OS":"Ubuntu"},"hostTags":[],"groupDetails":{},"type":"Routing","dataCenter":"9","pod":"9","cluster":"9","guid":"92426e62-ab7a-3ef4-9d7b-0c0d02d93121-LibvirtComputingResource","name":"cs-gpu-01","id":"0","version":"4.20.0.0","iqn":"iqn.2004-10.com.ubuntu:01:52c55542e014","privateIpAddress":"<I
 P host agent>","privateMacAddress":"1a:b7:0d:b8:19:7f","privateNetmask":"255.255.255.0","storageIpAddress":"<IP host agent>","storageNetmask":"255.255.255.0","storageMacAddress":"1a:b7:0d:b8:19:7f","resourceName":"LibvirtComputingResource","gatewayIpAddress":"<IP gateway>","msHostList":"<IP Managerment>@static","wait":"0","bypassHostMaintenance":"false"}},{"com.cloud.agent.api.StartupStorageCommand":{"totalSize":"(0 bytes) 0","poolInfo":{"uuid":"4952e569-130a-4dd8-817c-78f945323cfa","host":"<IP host agent>","localPath":"/data","hostPath":"/data","poolType":"Filesystem","capacityBytes":"(3.4908 TB) 3838228365312","availableBytes":"(3.4629 TB) 3807542657024"},"resourceType":"STORAGE_POOL","hostDetails":{},"type":"Storage","dataCenter":"9","pod":"9","guid":"92426e62-ab7a-3ef4-9d7b-0c0d02d93121-LibvirtComputingResource","name":"cs-gpu-01","id":"0","version":"4.20.0.0","resourceName":"LibvirtComputingResource","msHostList":"<IP Managerment>@static","wait":"0","bypassHostMaintenance":"fal
 se"}}] }
> 2025-04-11 09:46:30,468 DEBUG [c.c.a.t.Request] (AgentConnectTaskPool-13571:[ctx-a28ca8e4]) (logid:4b22fb41) Seq 0-34315: Processing the first command  { Cmd , MgmtId: -1, via: 0, Ver: v1, Flags: 1, [{"com.cloud.agent.api.StartupRoutingCommand":{"cpuSockets":"1","cpus":"32","speed":"2000","cpuArch":"x86_64","memory":"268672163840","dom0MinMemory":"1073741824","poolSync":"false","supportsClonedVolumes":"false","caps":"hvm,snapshot","pool":"/root","hypervisorType":"KVM","hostDetails":{"Host.OS.Kernel.Version":"5.15.0-135-generic","com.cloud.network.Networks.RouterPrivateIpStrategy":"HostLocal","Host.OS.Version":"22.04","host.volume.encryption":"true","host.instance.conversion":"false","secured":"true","Host.OS":"Ubuntu"},"hostTags":[],"groupDetails":{},"type":"Routing","dataCenter":"9","pod":"9","cluster":"9","guid":"92426e62-ab7a-3ef4-9d7b-0c0d02d93121-LibvirtComputingResource","name":"cs-gpu-01","id":"0","version":"4.20.0.0","iqn":"iqn.2004-10.com.ubuntu:01:52c55542e014","privateIp
 Address":"<IP host agent>","privateMacAddress":"1a:b7:0d:b8:19:7f","privateNetmask":"255.255.255.0","storageIpAddress":"<IP host agent>","storageNetmask":"255.255.255.0","storageMacAddress":"1a:b7:0d:b8:19:7f","resourceName":"LibvirtComputingResource","gatewayIpAddress":"<IP gateway>","msHostList":"<IP Managerment>@static","wait":"0","bypassHostMaintenance":"false"}},{"com.cloud.agent.api.StartupStorageCommand":{"totalSize":"(0 bytes) 0","poolInfo":{"uuid":"4952e569-130a-4dd8-817c-78f945323cfa","host":"<IP host agent>","localPath":"/data","hostPath":"/data","poolType":"Filesystem","capacityBytes":"(3.4908 TB) 3838228365312","availableBytes":"(3.4629 TB) 3807542657024"},"resourceType":"STORAGE_POOL","hostDetails":{},"type":"Storage","dataCenter":"9","pod":"9","guid":"92426e62-ab7a-3ef4-9d7b-0c0d02d93121-LibvirtComputingResource","name":"cs-gpu-01","id":"0","version":"4.20.0.0","resourceName":"LibvirtComputingResource","msHostList":"<IP Managerment>@static","wait":"0","bypassHostMaint
 enance":"false"}}] }
> 2025-04-11 09:46:30,706 WARN  [c.c.a.m.A.HandleAgentConnectTask] (AgentConnectTaskPool-13571:[ctx-a28ca8e4]) (logid:4b22fb41) Unable to create attache for agent: Seq 0-34315:  { Cmd , MgmtId: -1, via: 0, Ver: v1, Flags: 1, [{"com.cloud.agent.api.StartupRoutingCommand":{"cpuSockets":"1","cpus":"32","speed":"2000","cpuArch":"x86_64","memory":"268672163840","dom0MinMemory":"1073741824","poolSync":"false","supportsClonedVolumes":"false","caps":"hvm,snapshot","pool":"/root","hypervisorType":"KVM","hostDetails":{"Host.OS.Kernel.Version":"5.15.0-135-generic","com.cloud.network.Networks.RouterPrivateIpStrategy":"HostLocal","Host.OS.Version":"22.04","host.volume.encryption":"true","host.instance.conversion":"false","secured":"true","Host.OS":"Ubuntu"},"hostTags":[],"groupDetails":{},"type":"Routing","dataCenter":"9","pod":"9","cluster":"9","guid":"92426e62-ab7a-3ef4-9d7b-0c0d02d93121-LibvirtComputingResource","name":"cs-gpu-01","id":"0","version":"4.20.0.0","iqn":"iqn.2004-10.com.ubuntu:01:
 52c55542e014","privateIpAddress":"<IP host agent>","privateMacAddress":"1a:b7:0d:b8:19:7f","privateNetmask":"255.255.255.0","storageIpAddress":"<IP host agent>","storageNetmask":"255.255.255.0","storageMacAddress":"1a:b7:0d:b8:19:7f","resourceName":"LibvirtComputingResource","gatewayIpAddress":"<IP gateway>","msHostList":"<IP Managerment>@static","wait":"0","bypassHostMaintenance":"false"}},{"com.cloud.agent.api.StartupStorageCommand":{"totalSize":"(0 bytes) 0","poolInfo":{"uuid":"4952e569-130a-4dd8-817c-78f945323cfa","host":"<IP host agent>","localPath":"/data","hostPath":"/data","poolType":"Filesystem","capacityBytes":"(3.4908 TB) 3838228365312","availableBytes":"(3.4629 TB) 3807542657024"},"resourceType":"STORAGE_POOL","hostDetails":{},"type":"Storage","dataCenter":"9","pod":"9","guid":"92426e62-ab7a-3ef4-9d7b-0c0d02d93121-LibvirtComputingResource","name":"cs-gpu-01","id":"0","version":"4.20.0.0","resourceName":"LibvirtComputingResource","msHostList":"<IP Managerment>@static","wa
 it":"0","bypassHostMaintenance":"false"}}] }



GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839041

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland closed the discussion with a comment: Host stuck state: Alert, When add Secondary storage

marking this closed @leduyquy , please comment if you think it isn’t.

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-13560114

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "leduyquy (via GitHub)" <gi...@apache.org>.
GitHub user leduyquy added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

> So you can do any queries from the ssvm?

I tried queries some dns requests with local domain and it was fine. However it is deployed in an environment that is not connected to the internet so it will not be able to query any public domains outside the internet.

> how about the rights on the sec-stor?

with the path above it has been removed from the management server so i cant test it. But i check with the mountpoint path on ssvm it seems everything is fine.
![image](https://github.com/user-attachments/assets/471a9d16-f298-4e3b-b226-7748beef5c8e)

> Do you see any further logs in the management server about trying to start the SVMs again?
> Or do you see any errors during/after destroying the SVMs?

I just tried restarting the management service. The secondary is mounted to the management server. Systemvm redeployed after I destroyed it. I can still register templates and create instances normally even though there is no mountpoint of the secondary storage on the kvm host. KVM host agent state: UP. 

I feel quite confused about it. Maybe I will try to reproduce the problem above.


GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12840622

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "leduyquy (via GitHub)" <gi...@apache.org>.
GitHub user leduyquy added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

All kvm hosts use NFSv4 and i have never had any problems with it before

I tried another test case. I added a primary storage using NFS to the above zone and it worked fine without any problems.

when i add nfs as secondary storage i notice it mounts to manager and kvm host, however it is removed from manager and host after the process of syncing templates to this secondary storage is complete. Then the state of kvm host agent will change to alert

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839048

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "leduyquy (via GitHub)" <gi...@apache.org>.
GitHub user leduyquy added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

> indicates that either the host or ssvm is down, OR cannot reach the management server over the management network. There is a ssvm-check.sh on the ssvm to get some diagnostics.

This is output when check with ssvm-check.sh 

> /usr/local/cloud/systemvm/ssvm-check.sh
> ================================================
> First DNS server is  <IP DNS>
> PING <IP DNS> (<IP DNS>): 56 data bytes
> --- <IP DNS> ping statistics ---
> 2 packets transmitted, 0 packets received, 100% packet loss
> WARNING: cannot ping DNS server
> route follows
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> < I need hidden route table because policy company>
> ================================================
> ERROR: DNS not resolving cloudstack.apache.org
> resolv.conf follows
> nameserver <IP DNS>
> nameserver <IP DNS>
> nameserver <IP DNS>

because i set firewall for dns traffic only, so ICMP traffic will be dropped

> Can you check the mount (:/export/temp-gpu-02 ?) for contents? And also check if that url for the NFS is correct? it looks strange.

It is absolutely correct, and I named it like that to tell the difference between test cases. when i check with ssvm it also has mountpoint
![image](https://github.com/user-attachments/assets/c39e26e6-b8e8-4879-b38c-96c2f26bb733)

>  can you check the state of SSVM ? is it Running and agent state is Up ?

both SSVM and CPVM are running and state UP, but when i try to destroy it it won't redeploy like normal



GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839574

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

> Update: I checked further and found that it is only mounted nfs secondary storage at Secondary Storage VMs

this seems alright.

it should not be the reason the host goes to alert state.

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839050

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "leduyquy (via GitHub)" <gi...@apache.org>.
GitHub user leduyquy added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

Update: I checked further and found that it is only mounted nfs secondary storage at Secondary Storage VMs

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839049

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

@leduyquy 
can you check the state of SSVM ? is it Running and agent state is Up ?

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839346

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

this log

> 2025-04-15 10:19:36,083 ERROR [o.a.c.s.i.TemplateServiceImpl] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) No remote endpoint to send command, check if host or ssvm is down?

indicates that either the host or ssvm is down, OR cannot reach the management server over the management network. There is a ssvm-check.sh on the ssvm to get some diagnostics.

as per

> 2025-04-15 10:19:36,270 INFO [c.c.u.SystemVmTemplateRegistration] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) SystemVM template not seeded

the ssvm is probably not started. The secondary storage needs seeding and as you state this environment is not connected to the internet you need to do it by hand. (see https://docs.cloudstack.apache.org/en/4.20.0.0/installguide/management-server/index.html#prepare-the-system-vm-template) but as you state you use 4.20 , this should not be a problem. Can you check the mount (`:/export/temp-gpu-02` ?) for contents? And also check if that url for the NFS is correct? it looks strange.

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839166

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

@leduyquy , it seems `/bin/bash -c virt-v2v --version ` fails, can you execute that manually on the host?

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839042

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "leduyquy (via GitHub)" <gi...@apache.org>.
GitHub user leduyquy added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

HI @DaanHoogland 

when i add secondary storage using NFS to zone, the KVM host gets stuck in alert state
like it:

![Image](https://github.com/user-attachments/assets/c5d33241-a689-45bf-b7c0-25b15c0fc46e)

now i can't deploy VM, register template or do anything else. The problem was only resolved when I removed the secondary storage from the zone.

I have another zone, it uses ceph for primary storage and doesn't have the above problem.

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839039

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

So when you add a secondary storage to an already enabled zone, @leduyquy ? 
Can the host reach the NFS?
Can you share the agent log for the host?

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839040

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

@leduyquy that would mean that the mount would only be present on the hosts during the copying of a template that is not already available on that hosts primary/localstorage. It does not sound like an error condition to me.

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-13093016

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "leduyquy (via GitHub)" <gi...@apache.org>.
GitHub user leduyquy added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

since the last time i restart management 3 weeks ago everything is working fine. However i dont see any nfs mount point on kvm. it only appears on ssvm and management. 

Remind: On KVM host, I using only local disk without any shared storage for primary storage.

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-13087387

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "leduyquy (via GitHub)" <gi...@apache.org>.
GitHub user leduyquy added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

I don't think it's related to the problem I'm having.

I see it will get GHz info from CPU Model name, however for gold series CPU it has removed it from CPU name.

In host problem:

![Image](https://github.com/user-attachments/assets/981904ed-0c0b-4440-8eda-0a2b257d2c8e)

In another host:

![Image](https://github.com/user-attachments/assets/5cd6c0db-30e7-44ad-8ee1-b31d3ff03762)

I think there is a problem with secondary storage, because when I remove it from the zone, the host changes to state: UP


GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839045

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

@leduyquy ,
can you execute 
```
lscpu | grep -i 'Model name' | head -n 1 | egrep -o '[[:digit:]].[[:digit:]]+GHz' | sed 's/GHz//g'
```
on the host (and compare it to the output on the other hosts)?

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839044

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "leduyquy (via GitHub)" <gi...@apache.org>.
GitHub user leduyquy closed a discussion: Host stuck state: Alert, When add Secondary storage

### problem

I have plan deploy 1 zone use local disk and GPU, Because i don't need HA, i don't deploy any shared storage to primary storage. I using only local disk for primary storage.

When i setup Secondary storage use NFS for store template and ISO, KVM host in Zone state stuck on alert,  To make sure the NFS configuration works fine, I mounted it manually on the kvm host and managerment and it worked fine

when i created the zone i saw it still created 2 system vm for the zone and it worked fine, things only got worse when i started creating VMs and digging deeper into them

### versions

Managerment Version: 4.20.0
Agent Version: 4.20.0
KVM host OS: 22.04

### The steps to reproduce the bug

1. Create Zone and set use local storage for user instance and system VM 
2. Add Secondary Storage
3. Restart cloudstack-agent or reboot KVM host
...


### What to do about it?

Add Secondary storage and anything working fine 

GitHub link: https://github.com/apache/cloudstack/discussions/10718

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

Any updates on this @leduyquy ?

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-13002788

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

@leduyquy,

Can you edit the description to make more clear what the issue is?
Is it that the VMs you speak about are not deploying or starting?
Or are they but not functional?
Can you log in to the systemVMs?
Can you register templates?

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839038

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

maybe we need to check what triggered the kvm agent investigation
(which caused the host to Alert state as there is no NFS mounted)

@leduyquy 
can you share the full management-server log ?

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839051

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

btw, can you also check nfs versions used on the server and the clients?

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839047

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Host stuck state: Alert, When add Secondary storage [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Host stuck state: Alert, When add Secondary storage

> because i set firewall for dns traffic only, so ICMP traffic will be dropped

So you can do any queries from the ssvm?

> 2025-04-15 10:20:50,632 WARN [c.c.u.SystemVmTemplateRegistration] (qtp1404565079-3462:[ctx-e9a4f837, ctx-5e82adf5]) (logid:5e0fa690) Failed to read from template.properties java.io.FileNotFoundException: /tmp/tmp2932083128175864809/template/tmpl/1/523/template.properties (Permission denied)

how about the rights on the sec-stor?

and 

> both SSVM and CPVM are running and state UP, but when i try to destroy it it won't redeploy like normal

Do you see any further logs in the management server about trying to start the SVMs again?
Or do you see any errors during/after destroying the SVMs?

GitHub link: https://github.com/apache/cloudstack/discussions/10718#discussioncomment-12839891

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org