Bug 804705
Summary: | Native (sigar) Platform plugin states "Win32" even on 64 bit systems | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Tom Fonteyne <tfonteyn> |
Component: | Plugins | Assignee: | Charles Crouch <ccrouch> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 4.3 | CC: | ccrouch, hbrock, hrupp, loleary |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Windows | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 804701 | Environment: | |
Last Closed: | 2013-09-04 07:48:29 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 804701 | ||
Bug Blocks: |
Description
Tom Fonteyne
2012-03-19 15:55:43 UTC
medium, no target release per bz triage (crouch, mfoley, asantos, loleary) This should be raised as a Sigar JIRA fixing it in RHQ by simply avoiding to use the Sigar getOperatingSystemName is likely going to be much faster methinks TomF Its almost always a good idea to see if fixes can be applied upstream. Ian Can you quickly create a JIRA at https://jira.hyperic.com/browse/SIGAR Title: OperatingSystem getName() returns "Win32" on a 64 bit Windows machine Priority: High Description: Sigar version 1.6.5 -Run the java bindings for sigar on a 64 bit JDK on a 64 bit Windows machine. -Check that OperatingSystem.getInstance().getName() returns Win32. We already have a workaround for the SIGAR issue in the WindowsPlatformComponent class in the platform plugin (see bug #653496): @Override protected MeasurementDataTrait getMeasurementDataTrait(MeasurementScheduleRequest request) { MeasurementDataTrait trait = super.getMeasurementDataTrait(request); // SIGAR returns "Win32" as the OS name for all Windows systems, even 64-bit ones, so add some special code // to instead return "Win64" for 64-bit systems. if (trait.getName().equals(TRAIT_OSNAME) && trait.getValue().equals(OS_NAME_WIN32)) { if ("x64".equals(getSysinfo().getSystemArchitecture())) { trait.setValue(OS_NAME_WIN64); } } return trait; } Tom, is there another place you're seeing the bogus "Win32" value seep through? Charles, I'll file a SIGAR bug tomorrow. @Ian: indeed, I found that workaround as well, due to me searching for "Win32" The other place is as reported in this bug in org/ rhq/ core/ system/ NativeSystemInfo.java I filed a SIGAR bug: https://jira.hyperic.com/browse/SIGAR-238 NativeSystemInfo.getOperatingSystemName() now returns "Windows", rather than "Win32", for Windows systems, since "Win32" does not seem like an appropriate value in the case of 64-bit Windows systems: master http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=891804d Bulk closing of some old issues |