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

xenserver-pv-tools post-install script errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • 8.0
    • Update / Upgrade
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: