On 04/10/2013 04:26 AM, Wenchao Xia wrote:
> 于 2013-4-9 23:45, John Ferlan 写道:
>> On 04/09/2013 10:40 AM, John Ferlan wrote:
>>> On 04/08/2013 06:16 AM, Wenchao Xia wrote:
>
> Yes, this fix all bugs show on my machine, maybe there are other
> caller, but want to sent this first to make it work. I like
> your patches which compare two version string from libvirt. :>
>
> I got only 3 case fail now, may be you can paste some detail
> of your fail here.
>
> Something I know to make it work:
> 1 host must be able to resolve itself's name, that is ping [MACINENAME]
> must succeed.
> 2 two fake image must be created in /var/lib/libvirt/images
> 3 default disk-pool default must be "virsh pool-undefine".
I'm *painfully* aware of #2 & #3!!! The "default" libvirt location is
also /var/lib/libvirt/images and cimtest kept failing strangely until
Me too,
maybe we can skip this now and improve it in the future.
I remembered that two storage pools cannot use the same path to
storage.
The cimtest results were not very "helpful" at discerning that though
with just the following:
ElementAllocatedFromPool - 01_forward.py: FAIL
ERROR - Expected at least one KVM_DiskPool instance
ERROR - Exception details : Failed to get pool details
CIM_ERR_NOT_FOUND: No such instance (cimtest-diskpool)
I knew cimtest-diskpool wasn't being created, but I had no idea why.
I have it on a list of things to do to generate better errors or
use a different location (either configurable or chosen).
As for the other errors - I'm running libvirt-cim in the rhel6.4
environment with libvirt 0.10.2 installed. I have no predefined
domains which differs from my f18 environment. I'm thinking there's
some amount of environment differences which I don't yet have
the "history" to recognize right away.
I presently have 22 failures -
* 11 are because neither the Migration Service nor the Capabilities
MOF is present. Whether that's not installed by design, I haven't
yet figured out.
How do you installed libvirt-cim? I guess "make install" still
have problem, could u try remove old libvirt-cim rpm and then "make rpm"
in libvirt-cim source code and then rpm -ivh?
Also have you installed pywbem rpm? softlink seems work innormal since
pywbem have dependency library need to be installed.
I suggest make the suit work normal now if some manually env
clean/preparation can solve it, and add a README in the suit
to tip about the issues, we can fix them one by one later.
ElementCapabilities - 02_reverse.py: FAIL
ElementCapabilities - 04_reverse_errs.py: FAIL
ElementCapabilities - 05_hostsystem_cap.py: FAIL
ElementConforms - 01_forward.py: FAIL
HostedService - 01_forward.py: FAIL
HostedService - 02_reverse.py: FAIL
HostedService - 04_reverse_errs.py: FAIL
SettingsDefineCapabilities - 04_forward_vsmsdata.py: FAIL
SettingsDefineCapabilities - 05_reverse_vsmcap.py: FAIL
VirtualSystemMigrationCapabilities - 01_enum.py: FAIL
VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: FAIL
* 2 are because of the bad comparison in RPCS for RHEL versions,
although I used a slightly different mechanism than you did:
- (elems[0] == 'Red' and int(elems[i+1]) >= 7):
+ (elems[0] == 'Red' and float(elems[i+1]) >= 7.0):
* 9 I still need to research some more:
--------------------------------------------------------------------
ElementConforms - 02_reverse.py: FAIL
ERROR - Failed to get associators information for KVM_ElementConformsToProfile
ERROR - Exception: u'KVM_ComputerSystem'
--------------------------------------------------------------------
ElementConforms - 03_ectp_fwd_errs.py: XFAIL
ERROR - 'KVM_ElementConformsToProfile' association failed to generate an
exception and 'INVALID_InstID_Keyname' passed.
ERROR - ------ FAILED: INVALID_InstID_Keyname------
ERROR - 'KVM_ElementConformsToProfile' association failed to generate an
exception and 'INVALID_InstID_Keyvalue' passed.
ERROR - ------ FAILED: INVALID_InstID_Keyvalue------
ERROR - 'KVM_ElementConformsToProfile' association failed to generate an
exception and 'INVALID_InstID_Keyname' passed.
ERROR - ------ FAILED: INVALID_InstID_Keyname------
ERROR - 'KVM_ElementConformsToProfile' association failed to generate an
exception and 'INVALID_InstID_Keyvalue' passed.
ERROR - ------ FAILED: INVALID_InstID_Keyvalue------
--------------------------------------------------------------------
HostSystem - 03_hs_to_settdefcap.py: FAIL
ERROR - Failed to get associatornames according to KVM_AllocationCapabilities
ERROR - Exception: list index out of range
--------------------------------------------------------------------
Profile - 01_enum.py: FAIL
ERROR - Profile CIM:DSP1042-SystemVirtualization-1.0.0 is not found
ERROR - Properties check for KVM_RegisteredProfile failed
--------------------------------------------------------------------
Profile - 02_profile_to_elec.py: FAIL
ERROR - KVM_RegisteredProfile with Virtual System Profile was not returned
--------------------------------------------------------------------
Profile - 03_rprofile_gi_errs.py: FAIL
ERROR - Unexpected errno 6, desc CIM_ERR_NOT_FOUND:
KVM_RegisteredProfile.InstanceID="INVALID_Instid_KeyValue"
ERROR - Expected No such instance 6
ERROR - NameError : global name 'tc' is not defined
Traceback (most recent call last):
File "/home/cimtest.work/suites/libvirt-cim/lib/XenKvmLib/const.py", line
141, in do_try
rc = f()
File "03_rprofile_gi_errs.py", line 85, in main
logger.error("------ FAILED: %s %s ------", cn, tc)
NameError: global name 'tc' is not defined
ERROR - None
--------------------------------------------------------------------
RedirectionService - 01_enum_crs.py: FAIL
01_enum_crs.py:29: DeprecationWarning: the sets module is deprecated
from sets import Set
ERROR - TypeError : __call__() takes exactly 1 argument (2 given)
Traceback (most recent call last):
File "/home/cimtest.work/suites/libvirt-cim/lib/XenKvmLib/const.py", line
141, in do_try
rc = f()
File "01_enum_crs.py", line 113, in main
if res_val != exp_val:
TypeError: __call__() takes exactly 1 argument (2 given)
ERROR - None
--------------------------------------------------------------------
ReferencedProfile - 01_verify_refprof.py: FAIL
ERROR - KVM_RegisteredProfile returned 0 Profile objects, expected atleast 5
--------------------------------------------------------------------
ReferencedProfile - 02_refprofile_errs.py: FAIL
ERROR - KVM_RegisteredProfile returned 0 Profile objects, expected atleast 5
--------------------------------------------------------------------
John
_______________________________________________
Libvirt-cim mailing list
Libvirt-cim(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-cim
--
Best Regards
Wenchao Xia