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

    Constant refreshing of interface

    Scheduled Pinned Locked Moved Xen Orchestra
    15 Posts 3 Posters 928 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.
    • A Offline
      alexredston @olivierlambert
      last edited by alexredston

      @olivierlambert Thanks, when I was pausing and unpausing 15 or so VMs to allow me to meddle with a NAS it took a couple of clicks on several of the machines before the pause took effect. Also incidentally when unpausing this is distinct from starting so I was unable to easily select all to continue. But I must say that this pause feature is excellent.

      I'm not sure if related too but attempting to get the storage to migrate back from NAS to local also seems to take a few tries before it takes effect, not sure if this is also caused by the same interface issue.

      On the reloading - this is good behaviour in most cases but could do with a little more targeting, so perhaps not updating bits of the DOM which perform actions like forms unless the underlying resource has changed to a state which would render the action invalid.

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        alexredston @alexredston
        last edited by

        This post is deleted!
        pdoniasP 1 Reply Last reply Reply Quote 0
        • olivierlambertO Offline
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          XO 5 is rather old (almost 8 years old) and we are in the process of rewriting it entirely with a different technology 🙂

          A 1 Reply Last reply Reply Quote 0
          • pdoniasP Offline
            pdonias Vates 🪐 XO Team @alexredston
            last edited by

            @alexredston I've never seen that issue before. When you say that the UI refreshes, you mean that it's as if you clicked the refresh button of your browser? (Are you seeing a white page with a single loading spinner in the middle of the page?) If so, I'm not sure why you're saying that "this is a good behaviour".

            A 3 Replies Last reply Reply Quote 0
            • A Offline
              alexredston @pdonias
              last edited by

              @pdonias Hi - yes exactly that - it is like I clicked refresh, so if you are creating a new VM the form gets wiped out for example, just before you complete it.

              1 Reply Last reply Reply Quote 0
              • A Offline
                alexredston @pdonias
                last edited by

                @pdonias In terms of the good behaviour - it is good that content is up to date all the time on the view but my interface seems to be using a brutal approach to this, glad to hear that this is not considered normal.

                1 Reply Last reply Reply Quote 0
                • A Offline
                  alexredston @olivierlambert
                  last edited by

                  @olivierlambert Nice, no small task! Your company seems to take a very similar approach to ours in terms of just building difficult stuff. 🙂

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    alexredston @pdonias
                    last edited by

                    @pdonias I think I have found something - it only happens if you access XO using an IP address. I have server's IP listed as an alternate subject name on the cert so it should be okay but when I switch to using the full domain name, it stops refreshing.

                    A 1 Reply Last reply Reply Quote 0
                    • A Offline
                      alexredston @alexredston
                      last edited by

                      @pdonias IT is something to do with this fetch - perhaps that attempts to use http instead of https. You can see at the bottom of the timeline that as soon as it went to using the name of the site this stopped refreshing.

                      23e5f6b2-6b5e-46eb-9643-148f46a32027-image.png

                      pdoniasP 1 Reply Last reply Reply Quote 0
                      • pdoniasP Offline
                        pdonias Vates 🪐 XO Team @alexredston
                        last edited by

                        @alexredston Thanks for the details. I'm trying to reproduce that behaviour but no luck so far. With or without HTTPS, with an IP address or with a domain name, I'm not able to reproduce 😕

                        A few questions to try to understand what's happening:

                        1. Are you able to see the VMs in the interface?
                        2. What browser/version are you using?
                        3. Do you have some errors in the browser's console?
                        4. Are you able to reproduce the same behaviour in incognito mode? (Ctrl+Shift+N on Chrome, Ctrl+Shift+P on Firefox)
                        pdoniasP 1 Reply Last reply Reply Quote 0
                        • pdoniasP Offline
                          pdonias Vates 🪐 XO Team @pdonias
                          last edited by

                          Also, this issue may have been fixed by this commit: https://github.com/vatesfr/xen-orchestra/commit/ef2bd2b59. Could you check if it's still happening after you update your XO?

                          0 julien-f committed to vatesfr/xen-orchestra
                          fix(xo-server): better token check on HTTP request
                          
                          It now checks that the user associated with the authentication token really exists.
                          
                          This fixes xo-web infinite refresh when the token stored in cookies belongs to a missing user.
                          pdoniasP 1 Reply Last reply Reply Quote 0
                          • pdoniasP Offline
                            pdonias Vates 🪐 XO Team @pdonias
                            last edited by

                            And if it keeps happening, could you also try on the branch clearToken-on-authFailure that includes another potential fix for this bug?

                            A 1 Reply Last reply Reply Quote 0
                            • A Offline
                              alexredston @pdonias
                              last edited by

                              @pdonias

                              Hi,

                              On Master, as of yesterday, I see this only when I am logged in using an IP address on the URL instead of the hostname. Either way it is SSL with trusted certificate.

                              There are no console errors

                              Browser is Microsoft Edge on Windows

                              No difference in behaviour between incognito mode and normal.

                              Yes I see all the VMs

                              There is an improvement - now if I am creating a new VM only the selected network is reverting back to default when it refreshes, the other things like number of cores and ram is remaining when I set it, whereas previously these also were wiped back to default every 20 seconds or so.

                              Thanks

                              Alex

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post