cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rakesh Venkatesh <>
Subject Querying async job result
Date Thu, 08 Aug 2019 08:39:51 GMT

I want to know what is the best way to query the async job result using
queryAsyncJobResult api. According to the documentation in
the "jobstatus" of 1 means the command completed but im facing an issue
where even though the command is still running, the "jobstatus" is always 1.

Im running "prepareHostForMaintenance" command which returns the jobid.
When I run queryAsyncJobResult for this jobid, the jobstatus will always be
1 even though the hypervisor is still not in maintenance mode.

So can anyone tell me what is the best way to check if the hypervisor is in
maintenance mode or not? Im using 4.11 version

Below are the result which I get

"resourcestate": "PrepareForMaintenance",
"jobresultcode": 0,
  "jobresulttype": "object",
  "jobstatus": 1,

Thanks and regards
Rakesh venkatesh

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message