XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Enhancement: Show background coalesce and cleanup activities

    Scheduled Pinned Locked Moved Xen Orchestra
    18 Posts 4 Posters 3.5k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • olivierlambertO
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      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.

      1 Reply Last reply
      Reply Quote 0
      • ForzaF
        Forza
        last edited by

        I guess not, but XO already have root access and could fetch information this way?

        1 Reply Last reply
        Reply Quote 0
        • olivierlambertO
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          XO doesn't NOT have a root access and is NEVER using any SSH connection. It's only relying on XAPI.

          1 Reply Last reply
          Reply Quote 0
          • ForzaF
            Forza
            last edited by

            How are patches applied to hosts through XO?

            1 Reply Last reply
            Reply Quote 0
            • olivierlambertO
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by olivierlambert

              Via a XAPI plugin, so via a XAPI call in the end. No SSH involved.

              1 Reply Last reply
              Reply Quote 0
              • stormiS
                stormi Vates 🪐 XCP-ng Team
                last edited by

                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).

                1 Reply Last reply
                Reply Quote 0
                • olivierlambertO
                  olivierlambert Vates 🪐 Co-Founder CEO
                  last edited by

                  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.

                  1 Reply Last reply
                  Reply Quote 0
                  • stormiS
                    stormi Vates 🪐 XCP-ng Team
                    last edited by

                    I suppose currently the only information available is in logs? (And yeah we won't go parsing logs :D)

                    1 Reply Last reply
                    Reply Quote 0
                    • olivierlambertO
                      olivierlambert Vates 🪐 Co-Founder CEO
                      last edited by

                      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.

                      1 Reply Last reply
                      Reply Quote 1
                      • olivierlambertO
                        olivierlambert Vates 🪐 Co-Founder CEO
                        last edited by olivierlambert

                        It might be interesting to write a piece of code in the coalesce code to get a progress, but that's... not trivial 😄

                        ForzaF 1 Reply Last reply
                        Reply Quote 0
                        • ForzaF
                          Forza @olivierlambert
                          last edited by

                          @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.

                          1 Reply Last reply
                          Reply Quote 0
                          • olivierlambertO
                            olivierlambert Vates 🪐 Co-Founder CEO
                            last edited by

                            I totally agree. It would be nice, but out of reach due to other priorities right now. However, we are gladly open to contributions 🙂

                            1 Reply Last reply
                            Reply Quote 0
                            • jedimarcusJ
                              jedimarcus
                              last edited by

                              @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?

                              1 Reply Last reply
                              Reply Quote 0
                              • stormiS
                                stormi Vates 🪐 XCP-ng Team
                                last edited by stormi

                                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?

                                jedimarcusJ 1 Reply Last reply
                                Reply Quote 0
                                • jedimarcusJ
                                  jedimarcus @stormi
                                  last edited by

                                  @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 😃

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • stormiS
                                    stormi Vates 🪐 XCP-ng Team
                                    last edited by

                                    XAPI could know, but it currently does not offer such information through its API.

                                    1 Reply Last reply
                                    Reply Quote 0
                                    • olivierlambertO
                                      olivierlambert Vates 🪐 Co-Founder CEO
                                      last edited by

                                      Yep, there's basically nothing. It's more SMAPI related than XAPI in the end.

                                      1 Reply Last reply
                                      Reply Quote 0

                                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                      With your input, this post could be even better 💗

                                      Register Login
                                      • First post
                                        Last post