Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-12985

Upgrade script does not migrate VMware metadata

    XMLWordPrintable

    Details

    • Sprint:
      Horizon 2020 - Oct 28-Nov 11
    • HB Backlog Status:
      Backlog CM

      Description

      When running install script to upgrade to v27.0.0, the following message appears:

      Processing VmwareAssetsMigratorOffline: Moves VMware asset data to the node's metadata.
      - Running pre-execution phase
        14:22:20.526 [Main] INFO com.zaxxer.hikari.HikariDataSource - opennms - Started.
      - Running execution phase
        Warning: can't perform the upgrade operation because: Can't move asset data to metadata table: ERROR: column "vmwaremangedentitytype" does not exist
        Hint: Perhaps you meant to reference the column "assets.vmwaremanagedentitytype". Position: 39
      - Executing rollback phase
      - Running post-execution phase Finished in 0 seconds

      There appears to be an typo in the migration script referencing the wrong column name. My initial search looks like core/upgrade/src/main/java/org/opennms/upgrade/implementations/VmwareAssetsMigratorOffline.java is the culprit file.

       

      Referenced in chat discussion at https://chat.opennms.com/opennms/pl/jdjyg1kgkbgyppcrm83ntofzir

        Attachments

          Activity

            People

            Assignee:
            cpape Christian Pape
            Reporter:
            mmahacek Mark Mahacek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration