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

    Faulty XCP-ng host after update (but only on XO)

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    22 Posts 5 Posters 1.3k Views 3 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
      Affonso
      last edited by

      I recently updated my XCP-ng hosts and XO.

      When rebooting the hosts, I came across the situation where two hosts, while having no running VM's, would show like this on XO
      Screenshot 2024-02-21 at 14.44.04.png

      I have rebooted the hosts, the master, XO, nothing seems to overcome this.
      Clearing the browser cache or using a private tab also doesn't produce any difference.

      I've also tried to update XO by running

      git checkout .
      git pull --ff-only
      yarn
      yarn build
      
      [root@xeno xen-orchestra]# git branch
      * master
      [root@xeno xen-orchestra]# git checkout .
      Updated 0 paths from the index
      [root@xeno xen-orchestra]# git pull --ff-only
      Already up to date.
      [root@xeno xen-orchestra]# yarn
      yarn install v1.22.19
      [1/5] Validating package.json...
      [2/5] Resolving packages...
      success Already up-to-date.
      $ husky install
      husky - Git hooks installed
      Done in 2.41s.
      [root@xeno xen-orchestra]# yarn build
      yarn run v1.22.19
      $ TURBO_TELEMETRY_DISABLED=1 turbo run build --scope xo-server --scope xo-server-'*' --scope xo-web
      ╭───────────────────────────────────────────────────────────────────────╮
      │                                                                       │
      │                  Update available v1.12.3 ≫ v1.12.4                   │
      │    Changelog: https://github.com/vercel/turbo/releases/tag/v1.12.4    │
      │           Run "npx @turbo/codemod@latest update" to update            │
      │                                                                       │
      │        Follow @turborepo for updates: https://x.com/turborepo         │
      ╰───────────────────────────────────────────────────────────────────────╯
      • Packages in scope: xo-server, xo-server-audit, xo-server-auth-github, xo-server-auth-google, xo-server-auth-ldap, xo-server-auth-oidc, xo-server-auth-saml, xo-server-backup-reports, xo-server-load-balancer, xo-server-netbox, xo-server-perf-alert, xo-server-sdn-controller, xo-server-test, xo-server-test-plugin, xo-server-transport-email, xo-server-transport-icinga2, xo-server-transport-nagios, xo-server-transport-slack, xo-server-transport-xmpp, xo-server-usage-report, xo-server-web-hooks, xo-web
      • Running build in 22 packages
      • Remote caching disabled
      
       Tasks:    25 successful, 25 total
      Cached:    25 cached, 25 total
        Time:    2.599s >>> FULL TURBO
      
      Done in 3.00s.
      

      and when I go to "About" on XO I'm always one commit behind?
      Screenshot 2024-02-21 at 15.11.59.png

      Is the RAM incorrectly displayed a XO issue or a XCP-ng issue? Thank you.

      1 Reply Last reply Reply Quote 0
      • A Offline
        Affonso @julien-f
        last edited by

        Alright I updated XO again and the problem is gone.
        I would just like to comment that unlike described by another user that was only happening on single-node installs, this was happening to me in 2 out 4 nodes in a cluster. Two hosts would show normal, and another two showed glitched.

        Anyway, SOLVED!

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

          Have you refreshed your UI?

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

            @olivierlambert

            I cleared the browser cache and when it didn't solve I tried using a private tab.
            The error persists.

            Or is refresh the UI another thing entirely?

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

              That's weird indeed. Are you sure you are upgrading/restarting the right XO? Have you tried with XOA?

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

                @olivierlambert

                I am sure yes. Quite easy even when I reboot the XO vm I lose access to Xen Orchestra on the browser until the reboot is complete, so no questions there.

                I launched a XOA VM and it shows correctly there so I assume its not from the hosts but the XO itself. What can I do to clear this?

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

                  It's hard to tell. Maybe remove/re-install your XO from the sources?

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

                    @olivierlambert but could you tell if there is some caching or what could be doing this? If I could just remove temp files and clear local application cache and check again would rather than removing the whole XO and rebuilding, just for a faster solution. rebuilding is also doable.

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

                      Frankly, I never saw this behavior, so I can't tell. Objects aren't stored in a cache, it's all in memory, so it's really weird. What is your NodeJS version used?

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

                        @olivierlambert

                        # node --version
                        v18.18.2
                        
                        1 Reply Last reply Reply Quote 0
                        • olivierlambertO Offline
                          olivierlambert Vates 🪐 Co-Founder CEO
                          last edited by

                          I suppose you disconnected/reconnected the server in settings/servers?

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

                            @olivierlambert well the XO instance is connected to the Master, it's not the master node showing this problem.
                            As when I rebooted the XO already assumed it was "disconnecting" and "connecting", but I am going to do it manually.

                            I have:

                            • Rebooted the XO VM
                            • Rebooted the XCP node
                            • Rebooted the XCP master

                            none produced any different result.

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

                              Now I just did as you suggested went to Settings > Severs
                              Disabled the master, counted to 10, enabled the master.

                              Problem persists. (for a moment I thought it was gone but then I realised I was looking to XOA not XO).

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

                                You only need to connect to the master, there's no direct connection to other hosts needed. You should only have the master server listed in there, is it the case, right?

                                A A 3 Replies Last reply Reply Quote 0
                                • A Offline
                                  Affonso @olivierlambert
                                  last edited by

                                  @olivierlambert Yes only one server listed

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

                                    Well since there is no issue when looking at XOA but only on XO, I am going to disregard this issue and wait to see if it resolves by itself until the weekend and if not I'll try and remove this XO build and make a new one.

                                    Thank you for your suggestions, I'll try and let know how it went.

                                    1 Reply Last reply Reply Quote 1
                                    • A Online
                                      Andrew Top contributor @olivierlambert
                                      last edited by

                                      @olivierlambert It happens to me too now on XO Source (commit 039d5)... seems to be showing memory usage of ALL VMs in the graph, including guests NOT running. ONLY when you have a single host/pool. The actual memory calculation below the graph looks correct.

                                      DanpD 1 Reply Last reply Reply Quote 0
                                      • DanpD Offline
                                        Danp Pro Support Team @Andrew
                                        last edited by

                                        @Andrew Same here.

                                        1 Reply Last reply Reply Quote 0
                                        • A Online
                                          Andrew Top contributor @olivierlambert
                                          last edited by

                                          @olivierlambert @Danp @julien-f
                                          Problem cause by XO commit 1718649e0c6e18fd01b6cb3fb3c6f740214decc4

                                          julien-fJ 1 Reply Last reply Reply Quote 0
                                          • julien-fJ Offline
                                            julien-f Vates 🪐 Co-Founder XO Team @Andrew
                                            last edited by

                                            Thank you everyone, I'm investigating.

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

                                              Probably because we used $container in this view before, and it was only the host when the VM was running. Since we changed the logic, it broke that view.

                                              julien-fJ 1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post