Uploaded image for project: 'XenServer Org'
  1. XenServer Org
  2. XSO-971

xenserver-pv-tools post-install script errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: To Do (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 8.0
    • Fix Version/s: None
    • Component/s: Update / Upgrade
    • Labels:
      None

      Description

      The unmount_halted_xstools.sh script that is run at post-installation of the xenserver-pv-tools package (either initial installation or RPM update) can display errors:

      /opt/xensource/libexec/unmount_halted_xstools.sh: line 10: [: ==: unary operator expected 

       

      Here's the line in question:

                  if [ $(xe vm-list uuid=${VMID} params=power-state --minimal) == 'halted' ]; then 

       

      The error message suggests that

      (xe vm-list uuid=${VMID} params=power-state --minimal) 

      may evaluate to nothing, which is a case that should be taken into account in the script.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            stormi Samuel Verschelde
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: