nvazquez commented on issue #11604:
URL: https://github.com/apache/cloudstack/issues/11604#issuecomment-3275297558

   Thanks @mahdiadnan - for quick reference the error comes from an evaluation 
of `uefiEnabled` not the virt-v2v binary per se.
   
   ````
   025-09-10 16:22:32,576 DEBUG [utils.script.Script] 
(AgentRequest-Handler-4:[]) (logid:cd17e03c) Executing command [/bin/bash -c 
virt-v2v --version | awk '{print $2}' ].
   2025-09-10 16:22:32,597 DEBUG [utils.script.Script] 
(AgentRequest-Handler-4:[]) (logid:cd17e03c) Successfully executed process 
[1344008] for command [/bin/bash -c virt-v2v --version | awk '{print $2}' ].
   2025-09-10 16:22:32,598 DEBUG [utils.script.Script] 
(AgentRequest-Handler-4:[]) (logid:cd17e03c) Executing command [/bin/bash -c 
ovftool --version ].
   2025-09-10 16:22:32,601 WARN  [utils.script.Script] 
(AgentRequest-Handler-4:[]) (logid:cd17e03c) Execution of process [1344014] for 
command [/bin/bash -c ovftool --version ] failed.
   2025-09-10 16:22:32,601 DEBUG [utils.script.Script] 
(AgentRequest-Handler-4:[]) (logid:cd17e03c) Exit value of process [1344014] 
for command [/bin/bash -c ovftool --version ] is [127].
   2025-09-10 16:22:32,601 WARN  [utils.script.Script] 
(AgentRequest-Handler-4:[]) (logid:cd17e03c) Process [1344014] for command 
[/bin/bash -c ovftool --version ] encountered the error: [127].
   2025-09-10 16:22:32,602 DEBUG [cloud.agent.Agent] 
(AgentRequest-Handler-4:[]) (logid:cd17e03c) Seq 32-1666331862127083527:  { 
Ans: , MgmtId: 90520743250181, via: 32, Ver: v1, Flags: 110, 
[{"com.cloud.agent.api.ReadyAnswer":{"detailsMap":{"host.virtv2v.version":"2.7.1rhel=9"},"result":"true","wait":"0","bypassHostMaintenance":"false"}}]
 }
   2025-09-10 16:22:32,648 DEBUG [cloud.agent.Agent] 
(AgentRequest-Handler-2:[]) (logid:cd17e03c) Request:Seq -1--1:  { Cmd , 
MgmtId: -1, via: -1, Ver: v1, Flags: 111, 
[{"com.cloud.agent.api.ReadyCommand":{"_details":"java.lang.NullPointerException:
 Cannot invoke "String.equals(Object)" because "uefiEnabled" is 
null","wait":"0","bypassHostMaintenance":"false"}}] }
   2025-09-10 16:22:32,648 DEBUG [cloud.agent.Agent] 
(AgentRequest-Handler-2:[]) (logid:cd17e03c) Processing command: 
com.cloud.agent.api.ReadyCommand
   2025-09-10 16:22:32,648 DEBUG [cloud.agent.Agent] 
(AgentRequest-Handler-2:[]) (logid:cd17e03c) Not ready to connect to mgt 
server: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" 
because "uefiEnabled" is null
   2025-09-10 16:22:32,648 INFO  [cloud.agent.Agent] (AgentShutdownThread:[]) 
(logid:) Stopping the agent: Reason = sig.kill
   2025-09-10 16:22:32,649 DEBUG [cloud.agent.Agent] (AgentShutdownThread:[]) 
(logid:) Sending shutdown to management server
   2025-09-10 16:22:32,696 DEBUG [utils.nio.NioClient] 
(Agent-NioConnectionHandler-1:[]) (logid:) Location 1: Socket 
Socket[addr=/10.4.19.4,port=8250,localport=54680] closed on read.  Probably -1 
returned: Connection closed with -1 on reading size.
   2025-09-10 16:22:32,697 DEBUG [utils.nio.NioClient] 
(Agent-NioConnectionHandler-1:[]) (logid:) Closing socket 
Socket[addr=/10.4.19.4,port=8250,localport=54680]
   ````
   
   Can you try check the host details for this host on the host_details with 
host_id = <internal ID of the host> for a setting with name `host.uefi.enable`? 
It seems like it doesn't exist and the code is expecting it, which causes the 
NPE.
   
   As a test can you try adding a setting on host_details in which host_id = 
<internal ID of the host>, name = 'host.uefi.enable' and value = 'false'? 


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

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to