Change in ovirt-engine[master]: core: Fix broken backward compatibility of os ids

rgolan at redhat.com rgolan at redhat.com
Mon Oct 7 12:51:55 UTC 2013


Roy Golan has submitted this change and it was merged.

Change subject: core: Fix broken backward compatibility of os ids
......................................................................


core: Fix broken backward compatibility of os ids

This fix is about maintaining oss backward compatibility mappings of
old os names to the current IDs.

Vm Import/Export is using the os unique name instead of the os ID in the
OVF and since all unique names streamlined with the REST API
representation they all are not identified and fallback ID 0 - "other"

pre-osinfo exports would write the OS Windows8 while the new name is
windows_8 and so on

Solution:

Added a backward compatibility section to osinfo-default.properties

    # Since Unassigned is removed we translate is to other so
    backwardCompatibility.Unasigned = 0
    backwardCompatibility.Other = 0

    # represents the current id of old Windows8 os
    backwardCompatibilty.Windows8 = 20

Bug-Url: https://bugzilla.redhat.com/1006340
Change-Id: I77c51a3bd0f4f0c264e8f895f40fd4d2bf4d689c
Signed-off-by: Roy Golan <rgolan at redhat.com>
---
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/osinfo/OsRepositoryImpl.java
M backend/manager/modules/common/src/test/java/org/ovirt/engine/core/common/osinfo/OsRepositoryImplTest.java
M backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfTemplateReader.java
M backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfVmReader.java
M packaging/conf/osinfo-defaults.properties
5 files changed, 61 insertions(+), 11 deletions(-)

Approvals:
  Roy Golan: Verified; Looks good to me, approved



-- 
To view, visit http://gerrit.ovirt.org/19774
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I77c51a3bd0f4f0c264e8f895f40fd4d2bf4d689c
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list