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

    Host Patch Installation Failure | "global name 'commmand' is not defined"

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    6 Posts 4 Posters 1.2k 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.
    • K Offline
      kagbasi-wgsdac
      last edited by

      Good-day Folks,

      My Environment:

      • Host Hardware: HP ProLiant DL360p Gen8
      • Host Version: XCP-ng 8.2.1 (GPLv2)
      • Xen Orchestra, commit ba8c5
      • xo-server 5.96.0
      • xo-web 5.97.2

      I was recently introduced to XCP-NG and XO. After much reading and watching various YouTube videos, I decided to give it a try yesterday. So I spun up a host, successfully connected it to XCP-Center and created a VM running Debian 11. Then using this installation script from Ronivay, I successfully compiled XO from sources and successfully connected it to the host.

      As expected, after a few minutes XO prompted me that there were some missing host patches, so I followed the appropriate buttons to install the patches. Unfortunately, I ran into the following error:

      "global name 'commmand' is not defined"
      

      I performed a quick search online and came across this forum posting where the same issue was discussed and the conclusion was that it had been resolved in a later commit. Given that I just built XO yesterday, I wanted to submit this inquiry, in case the issue had reared up again or if someone knew of a workaround.

      I noticed in the error message that the word "command" has an extra "M" in it - perhaps a typo? Finally, here's the complete error log: 2022-06-28T00_48_16.728Z - XO.txt

      Any assistance is very much appreciated, thank you.

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

        In the thread you found, @BenjiReis indicated that this is an xcp-ng issue, not XO. Did you try installing the patches with from the CLI?

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

          The error message about commmand masks the actual error that occurred (it's an error raised during error handling itself).

          Please try to do the update from CLI so that we may see the actual error from yum.

          https://xcp-ng.org/docs/updates.html#how-to-apply-the-updates

          1 Reply Last reply Reply Quote 0
          • K Offline
            kagbasi-wgsdac @Danp
            last edited by

            @Danp - thanks for pointing that out, I must have glossed over it. Now that I think about it, the patches were host patches so definitely not XO related. My apologies.

            @stormi - I wanted to try the update via CLI, as per the documentation, however I've not been successful gaining access to the host. It's rather strange. Both the root and the non-root account I created won't let me in - whether via console or SSH, even though it's the same root credentials that I've used to connect XCP-Center to the host. Another strange thing - XO would not connect to the host using the root account, so I had to use a service account I'd created in Active Directory. Still scratching my head on that one, but I don't want to convolute this thread with this.

            Anyway, while waiting I decided to reboot the host. From XO, it wouldn't let me; complains that there's no where to move the VM to and that I need to use the force flag. Since there's no way to do this from the XO ui (that I've found), I went into XCP-Center and rebooted it that way. When it came back, I tried the patches again and this time they installed without any problem. So for now, this problem is resolved.

            Thanks to both of you for your responses. I'm gonna blow away my entire setup and redo it to see if I can replicate these anomalies.

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

              Since there's no way to do this from the XO ui (that I've found)

              Host/advanced/Force reboot 🙂

              K 1 Reply Last reply Reply Quote 0
              • K Offline
                kagbasi-wgsdac @olivierlambert
                last edited by

                @olivierlambert Aaah, thanks Olivier. Still learning.

                Great product by the way. Hoping I can get comfortable with it enough to make a recommendation to my company.

                1 Reply Last reply Reply Quote 0
                • K kagbasi-wgsdac marked this topic as a question on
                • K kagbasi-wgsdac has marked this topic as solved on
                • First post
                  Last post