Enhancement: Show background coalesce and cleanup activities
-
Hi,
No. There's absolutely no API whatsoever on coalesce process. We manage to make XO "guessing" coalesce should happen (because of the VHD structure) but that's all we can do.
-
I guess not, but XO already have root access and could fetch information this way?
-
XO doesn't NOT have a root access and is NEVER using any SSH connection. It's only relying on XAPI.
-
How are patches applied to hosts through XO?
-
Via a XAPI plugin, so via a XAPI call in the end. No SSH involved.
-
If there's a way from the host to get information about the coalesce process, one could probably write a XAPI plugin to gather this information and offer it to XO (if XO devs decide that this kind of feature is a priority). However, I think it would be better if such information was provided by the XAPI itself.
So: it's probably not impossible to do, but not trivial either and involves different projects (XAPI, XCP-ng, XO).
-
Even if we do a XAPI plugin, there's no info in the coalesce mechanism progress, nothing. So it will probably require coalesce code improvement to report progress first.
-
I suppose currently the only information available is in logs? (And yeah we won't go parsing logs :D)
-
There's no progress in the log at all. We can just know it started, but there's no progress reported until it's done. We can't know how many % is done.
In short, it spawns a process doing the work, and that's pretty much it.
-
It might be interesting to write a piece of code in the coalesce code to get a progress, but that's... not trivial
-
@olivierlambert said in Enhancement: Show background coalesce and cleanup activities:
It might be interesting to write a piece of code in the coalesce code to get a progress, but that's... not trivial
From a user perspective it would be nice and useful to see the background stuff more upfront rather then hidden in a black box. But I understand it isn't trivial.
-
I totally agree. It would be nice, but out of reach due to other priorities right now. However, we are gladly open to contributions
-
@olivierlambert said in Enhancement: Show background coalesce and cleanup activities:
In short, it spawns a process doing the work, and that's pretty much it.
Can the XAPI see if the coalesce process is running? Or is it not identifiable?
-
No it can't. As Olivier said, it spawns a process that currently does not report about progress status.
Edit: oh, maybe you just want XAPI to report whether there is coalesce happening, without any other details, based on the existence of the coalesce process?
-
@stormi said in Enhancement: Show background coalesce and cleanup activities:
Edit: oh, maybe you just want XAPI to report whether there is coalesce happening, without any other details, based on the existence of the coalesce process?
Yes, as a start... maybe... that was the point of my question but I have a follow up question
-
XAPI could know, but it currently does not offer such information through its API.
-
Yep, there's basically nothing. It's more SMAPI related than XAPI in the end.