Better to Add Code to check "End of line" character in schema file

When I try add new class to libvirt-cim, I found that if the "end of line" character use the windows format(\t\n), then the rpm making would succeed, but the pegasus would not find the correct .so file, indeed pegasus seems to linked to a wrong file. It takes me a long time to find the reason, so I think it is better to add some scripts to check this, or show a warning for it. -- Best Regards Wayne Xia mail:xiawenc@linux.vnet.ibm.com tel:86-010-82450803

Wayne, Are you saying that after you install libvirt-cim RPM it does not find libvirt-cim libs? I have not seen this issue, I always uninstall (rpm -e) libvirt-cim before installing (rpm -i) the new version. Sharad Mishra Open Virtualization Linux Technology Center IBM Wayne Xia <xiawenc@linux.vn et.ibm.com> To Chip Vincent 08/29/11 02:35 AM <cvincent@linux.vnet.ibm.com>, "Eduardo Lima (Etrunko)" <eblima@linux.vnet.ibm.com>, Sharad Mishra/Beaverton/IBM@IBMUS, Gareth S Bestor/Poughkeepsie/IBM@IBMUS, List for discussion and development of libvirt CIM <libvirt-cim@redhat.com> cc Subject Better to Add Code to check "End of line" character in schema file When I try add new class to libvirt-cim, I found that if the "end of line" character use the windows format(\t\n), then the rpm making would succeed, but the pegasus would not find the correct .so file, indeed pegasus seems to linked to a wrong file. It takes me a long time to find the reason, so I think it is better to add some scripts to check this, or show a warning for it. -- Best Regards Wayne Xia mail:xiawenc@linux.vnet.ibm.com tel:86-010-82450803

In the case of using "\t\n" in .mof and .registration file, after the libvirt-cim' rpm was made and installed, the libs was found by pegasus, but seems it was not correctly done. situation: tried to add class KVM_EthernetPort, then wbemcli -nl ein http://root:123456xwc@localhost:5988/root/virt:KVM_EthernetPort nothing returned. then delete Virt_EthernetPort.so*. wbemcli -nl ein http://root:123456xwc@localhost:5988/root/virt:KVM_EthernetPort nothing returned. It did not say the lib was missing. After rewrite the .mof and .registration file, problem resolved. So I think there is some problem in the lib searching of pegasus, in this situation. 2011-8-30 0:37, Sharad Mishra:
Wayne,
Are you saying that after you install libvirt-cim RPM it does not find libvirt-cim libs? I have not seen this issue, I always uninstall (rpm -e) libvirt-cim before installing (rpm -i) the new version.
Sharad Mishra Open Virtualization Linux Technology Center IBM
Inactive hide details for Wayne Xia ---08/29/2011 02:37:10 AM---When I try add new class to libvirt-cim, I found that if the "eWayne Xia ---08/29/2011 02:37:10 AM---When I try add new class to libvirt-cim, I found that if the "end of
*Wayne Xia <xiawenc@linux.vnet.ibm.com>*
08/29/11 02:35 AM
To
Chip Vincent <cvincent@linux.vnet.ibm.com>, "Eduardo Lima (Etrunko)" <eblima@linux.vnet.ibm.com>, Sharad Mishra/Beaverton/IBM@IBMUS, Gareth S Bestor/Poughkeepsie/IBM@IBMUS, List for discussion and development of libvirt CIM <libvirt-cim@redhat.com>
cc
Subject
Better to Add Code to check "End of line" character in schema file
When I try add new class to libvirt-cim, I found that if the "end of line" character use the windows format(\t\n), then the rpm making would succeed, but the pegasus would not find the correct .so file, indeed pegasus seems to linked to a wrong file.
It takes me a long time to find the reason, so I think it is better to add some scripts to check this, or show a warning for it.
-- Best Regards
Wayne Xia mail:xiawenc@linux.vnet.ibm.com tel:86-010-82450803
-- Best Regards Wayne Xia mail:xiawenc@linux.vnet.ibm.com tel:86-010-82450803

Wayne, Venkateswara R Puvvada works on Pegasus and can help determine if this is a known issue, and perhaps address via Pegasus Bugzilla, if necessary. If this is a known limitation, perhaps we can run something like dos2unix on .mof and .registration files when building the rpm. On 08/29/2011 10:33 PM, Wayne Xia wrote:
In the case of using "\t\n" in .mof and .registration file, after the libvirt-cim' rpm was made and installed, the libs was found by pegasus, but seems it was not correctly done.
situation:
tried to add class KVM_EthernetPort, then wbemcli -nl ein http://root:123456xwc@localhost:5988/root/virt:KVM_EthernetPort nothing returned.
then delete Virt_EthernetPort.so*. wbemcli -nl ein http://root:123456xwc@localhost:5988/root/virt:KVM_EthernetPort nothing returned. It did not say the lib was missing.
After rewrite the .mof and .registration file, problem resolved. So I think there is some problem in the lib searching of pegasus, in this situation.
2011-8-30 0:37, Sharad Mishra:
Wayne,
Are you saying that after you install libvirt-cim RPM it does not find libvirt-cim libs? I have not seen this issue, I always uninstall (rpm -e) libvirt-cim before installing (rpm -i) the new version.
Sharad Mishra Open Virtualization Linux Technology Center IBM
Inactive hide details for Wayne Xia ---08/29/2011 02:37:10 AM---When I try add new class to libvirt-cim, I found that if the "eWayne Xia ---08/29/2011 02:37:10 AM---When I try add new class to libvirt-cim, I found that if the "end of
*Wayne Xia <xiawenc@linux.vnet.ibm.com>*
08/29/11 02:35 AM
To
Chip Vincent <cvincent@linux.vnet.ibm.com>, "Eduardo Lima (Etrunko)" <eblima@linux.vnet.ibm.com>, Sharad Mishra/Beaverton/IBM@IBMUS, Gareth S Bestor/Poughkeepsie/IBM@IBMUS, List for discussion and development of libvirt CIM <libvirt-cim@redhat.com>
cc
Subject
Better to Add Code to check "End of line" character in schema file
When I try add new class to libvirt-cim, I found that if the "end of line" character use the windows format(\t\n), then the rpm making would succeed, but the pegasus would not find the correct .so file, indeed pegasus seems to linked to a wrong file.
It takes me a long time to find the reason, so I think it is better to add some scripts to check this, or show a warning for it.
-- Best Regards
Wayne Xia mail:xiawenc@linux.vnet.ibm.com tel:86-010-82450803
-- Chip Vincent Open Virtualization IBM Linux Technology Center cvincent@linux.vnet.ibm.com
participants (3)
-
Chip Vincent
-
Sharad Mishra
-
Wayne Xia