Bug 214264
Summary: | Operating system type reported incorrectly by proxy | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Daniel Berrangé <berrange> |
Component: | libvirt | Assignee: | Daniel Veillard <veillard> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | beta2 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-12-23 02:07:56 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: |
Description
Daniel Berrangé
2006-11-06 20:15:19 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. Okay I see the problem. virtGetOsInfo is not following the normal driver architecture and call directly a routine reading from xenstore, or return "linux" if this fails. This call must be properly integrated in the driver blocks, and 2 entry points must be provided one for the XenStore module and one for the proxy, then the proxy code must be extended to provide this new request. Should be fairly simple but touches a number of modules. Will do, Daniel I have just commited a fix for this in libvirt upstream CVS and I have a patch available. This seems to work for me but it would be good to double check, Dan can you have a look at it and confirm ? Daniel Its working correctly for para & fully virt guests OS, but its broken for Domain-0: $ ~/usr/bin/virsh dominfo Domain-0 Id: 0 Name: Domain-0 UUID: 00000000-0000-0000-0000-000000000000 libvir: error : operation failed: xenProxyDomainGetOSType OS Type: linux State: running CPU(s): 2 CPU time: 11270.4s Max memory: 4294967292 kB Used memory: 925900 kB It seems virsh checks for a NULL returned by virDomainGetOSType and hardcodes it to Linux. This check should really be moved into the virDomainGetOSType backend itself, because hardcoding to 'linux' is a xen-ism & this would also fix the error messages seen above. Okay I fixed all this, this should work correctly now, I checked as user and root for domain 0, Daniel This has been commited in libvirt upstream, Daniel QE ack for RHEL5. libvirt-0.1.8-7.el5 has been built carrying the patch, that should fix it ! Daniel A package has been built which should help the problem described in this bug report. This report is therefore being closed with a resolution of CURRENTRELEASE. You may reopen this bug report if the solution does not work for you. |