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 1.1k 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.
    • ForzaF Offline
      Forza
      last edited by

      How are patches applied to hosts through XO?

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                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 Offline
                  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 Offline
                    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 Offline
                      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 Offline
                        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 Offline
                          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 Offline
                            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 Offline
                              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 Offline
                                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
                                • First post
                                  Last post