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

%post scriptlet error when upgrading the sm package

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.6
    • 7.5
    • Update / Upgrade
    • None
    • XSI-67

    Description

      When the sm package is upgraded from the version in XS 7.4 to the version in XS 7.5, via a RPM upgrade (e.g. using the XS 7.5 updates ISO), it displays an error message:

       mv: cannot stat ‘/usr/sbin/lvmetad’: No such file or directory

      This comes from the %post scriptlet:

      mv /usr/sbin/lvmetad /usr/sbin/lvmetad_

      Obviously, /usr/sbin/lvmetad had already been renamed during the initial server installation (though maybe not always, because I think there should be a "Requires(post): xenserver-lvm2" tag in the spec file, to make sure xenserver-lvm2 is installed before the %post scriptlet of sm is executed). So the renaming fails and the remainder of the %post scriptlet is not executed.

      In theory, the sm %post scriptlet should never touch files that belong to another package (/usr/sbin/lvmetad belongs to lvm2). Isn't there a cleaner way to disable that executable, if it's really needed to disable it? Maybe as a part of the lvm2 package rather than in sm?

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: