[Libvirt-cim] Request for all in one instllation page
Deepti B Kalakeri
deeptik at linux.vnet.ibm.com
Wed Oct 22 10:02:58 UTC 2008
What is the output of
wbemcli ecn http://root:pass@localhost:5988/root/virt
Thanks and Regards,
Deepti.
Toshifumi Fujimura wrote:
> Thanks for your reply.
>
> Currently, WBEM Client works for getting CIM_OperatingSystem.
> But not for getting KVM_ComputerSystem.
> (I attach the wbemcli output.)
> ========================================================================
> [root at localhost ~]# wbemcli ei
> 'http://user:pass@localhost:5988/root/cimv2:cim_operatingsystem'
> localhost:5988/root/cimv2:PG_OperatingSystem.CreationClassName="CIM_OperatingSystem",CSCreationClassName="CIM_UnitaryComputerSystem",
>
> CSName="localhost.localdomain",Name="Fedora"
> CSCreationClassName="CIM_UnitaryComputerSystem",CSName="localhost.localdomain",
>
> CreationClassName="CIM_OperatingSystem",Name="Fedora",Caption="Fedora
> release 9.92 (Rawhide)",Description="Fedora release 9.92 (Rawhide)",
> Status="Unknown",OSType=36,OtherTypeDescription="2.6.27.3-27.rc1.fc10.i686.PAE
>
> #1 SMP Sat Oct 18 20:27:11 EDT
> 2008",Version="2.6.27.3-27.rc1.fc10.i686.PAE",
> LastBootUpTime=20081022122916.000000+540,LocalDateTime=20081022171753.000000+540,CurrentTimeZone=540,NumberOfLicensedUsers=0,NumberOfUsers=5,NumberOfProcesses=166,
>
> MaxNumberOfProcesses=196608,TotalSwapSpaceSize=4095992,TotalVirtualMemorySize=8233000,FreeVirtualMemory=4095992,FreePhysicalMemory=3384328,TotalVisibleMemorySize=4137008,
>
> MaxProcessMemorySize=4095992,Distributed=FALSE,MaxProcessesPerUser=196608,SystemUpTime=17317,OperatingSystemCapability="32
>
> bit"
>
> [root at localhost ~]# wbemcli ein
> http://user:pass@localhost:5988/root/virt:KVM_ComputerSystem
> *
> * wbemcli: Cim: (5) CIM_ERR_INVALID_CLASS: KVM_ComputerSystem
> *
> ========================================================================
>
>
> Anyway cimxxxxx shows Virt_xxx class.
> (I attach the "cimprovider -l" output.)
> ========================================================================
> [root at localhost ~]# cimprovider -l
> OperatingSystemModule
> ComputerSystemModule
> ProcessModule
> Virt_AllocationCapabilities
> Virt_ComputerSystem
> Virt_ComputerSystemIndication
> Virt_ComputerSystemMigrationIndication
> Virt_ConcreteComponent
> Virt_ConsoleRedirectionService
> Virt_ConsoleRedirectionServiceCapabilities
> Virt_Device
> Virt_DevicePool
> Virt_ElementAllocatedFromPool
> Virt_ElementCapabilities
> Virt_ElementConformsToProfile
> Virt_ElementSettingData
> Virt_EnabledLogicalElementCapabilities
> Virt_HostedDependency
> Virt_HostedResourcePool
> Virt_HostedService
> Virt_HostSystem
> Virt_RASD
> Virt_ReferencedProfile
> Virt_RegisteredProfile
> Virt_ResourceAllocationFromPool
> Virt_ResourcePoolConfigurationCapabilities
> Virt_ResourcePoolConfigurationService
> Virt_ServiceAffectsElement
> Virt_SettingsDefineCapabilities
> Virt_SettingsDefineState
> Virt_SystemDevice
> Virt_VirtualSystemManagementCapabilities
> Virt_VirtualSystemManagementService
> Virt_VirtualSystemSnapshotService
> Virt_VirtualSystemSnapshotServiceCapabilities
> Virt_VSMigrationCapabilities
> Virt_VSMigrationService
> Virt_VSMigrationSettingData
> Virt_VSSD
> Virt_VSSDComponent
> ========================================================================
>
>> From these, I guess libvirt-cim provider is not connected properly.
> Would you give me an advice to investigate it.
>
> Thanks
>
> Toshifumi Fujimura.
>
>>
>>
>> Kaitlin Rupert wrote:
>>> Toshifumi Fujimura wrote:
>>>> I think I've registerd Libvirt-CIM and Libcmputil as CIM Provider.
>>>>
>>>> I re-installed Libvirt-CIM package.
>>>> And I made sure that with Pegasus's command "cimprovider -s -l".
>>>
>>> You can check to make sure the providers are properly installed by
>>> running the following command. Replace user:pass with the username
>>> and password of the user that has CIM query rights.
>>>
>>> The convention is to use the root user or the pegasus user, but you
>>> can use any user since you've modified /etc/Pegasus/access.conf to
>>> allow all users.
>>>
>>> wbemcli ein
>>> http://user:pass@localhost:5988/root/virt:KVM_ComputerSystem
>>>
>>> This should return something like the following:
>>>
>>> localhost:5988/root/virt:KVM_ComputerSystem.CreationClassName="KVM_ComputerSystem",Name="demo2"
>>>
>>>
>>> When you run cimtest, you'll need to run the command as root and
>>> pass in the root username / password (this will need to be fixed in
>>> the future).
>>>
>>> CIM_NS=root/virt CIM_USER=root CIM_PASS=pass ./runtests libvirt-cim
>>> -i localhost -d -v KVM
>>>
>>>>
>>>> But following error messages didn't disappear.
>>>> ==============================================================
>>>> --------------------------------------------------------------------
>>>> AllocationCapabilities - 01_enum.py: FAIL
>>>> ERROR - Failed to enumerate the class of
>>>> KVM_AllocationCapabilities
>>>> ERROR - Unauthorized
>>>> ERROR - Only 0 pools returned, expected at least 4
>>>> --------------------------------------------------------------------
>>>> AllocationCapabilities - 02_alloccap_gi_errs.py: FAIL
>>>> ERROR - AuthError : Unauthorized
>>>> Traceback (most recent call last):
>>>> File "./lib/XenKvmLib/const.py", line 116, in do_try
>>>> File "02_alloccap_gi_errs.py", line 109, in main
>>>> expr_values=exp['invalid_keyvalue'], bug_no="")
>>>> File "./lib/XenKvmLib/common_util.py", line 264, in try_getinstance
>>>> File "/usr/lib/python2.5/site-packages/pywbem/cim_operations.py",
>>>> line 464, in GetInstance
>>>> **params)
>>>> File "/usr/lib/python2.5/site-packages/pywbem/cim_operations.py",
>>>> line 181, in imethodcall
>>>> verify_callback = self.verify_callback)
>>>> File "/usr/lib/python2.5/site-packages/pywbem/cim_http.py", line
>>>> 226, in wbem_request
>>>> raise AuthError(response.reason)
>>>> AuthError: Unauthorized
>>>> ERROR - None
>>>> --------------------------------------------------------------------
>>>> ==============================================================
>>>> Would you have any more suggestion of this messages?
>>>
>>> This error is because pywbem is unable to authenticate with
>>> Pegasus. Be sure the following query works (change pass to the
>>> proper password):
>>>
>>> wbemcli ein
>>> http://root:pass@localhost:5988/root/virt:KVM_ComputerSystem
>>>
>>> Hope this helps! =)
>>>
>> You can also verify if the required providers are installed by using
>> the following query:
>>
>> wbemcli ecn http://root:pass@localhost:5988/root/virt
>>
>> The above query will report all the providers registered with the
>> /root/virt namespace.
>> you can use the same query replacing the above /root/virt with other
>> namespace like /root/interop to know the providers registered in that
>> particular namespace.
>>
>> Regards,
>> Deepti.
>>
>> _______________________________________________
>> Libvirt-cim mailing list
>> Libvirt-cim at redhat.com
>> https://www.redhat.com/mailman/listinfo/libvirt-cim
>>
>>
>
>
More information about the Libvirt-cim
mailing list