[Users] Build RPM packages vdm from source code

This is a multi-part message in MIME format. ------=_NextPart_000_0203_01CD17F7.4563C5E0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I build vdsm version with commands: git clone git://gerrit.ovirt.org/vdsm ./autogen.sh --system && ./configure make clean && make rpm make rpm Command "make rpm" ( and make check) return error: make[3]: Entering directory `/root/rpmbuild/BUILD/vdsm-4.9.6/tests' ../tests/run_tests.sh main.py miscTests.py resourceManagerTests.py processPoolTests.py fileUtilTests.py guestIFTests.py Traceback (most recent call last): File "../tests/testrunner.py", line 192, in <module> hackVdsmModule() File "../tests/testrunner.py", line 187, in hackVdsmModule import utils File "/root/rpmbuild/BUILD/vdsm-4.9.6/vdsm/utils.py", line 40, in <module> import ethtool ImportError: No module named ethtool make[3]: *** [check-local] Error 1 make[3]: Leaving directory `/root/rpmbuild/BUILD/vdsm-4.9.6/tests' make[2]: *** [check-am] Error 2 make[2]: Leaving directory `/root/rpmbuild/BUILD/vdsm-4.9.6/tests' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/root/rpmbuild/BUILD/vdsm-4.9.6' error: Bad exit status from /var/tmp/rpm-tmp.zBdCcy (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.zBdCcy (%check) make: *** [rpm] Error 1 python-ethtool installed: [root@noc-2-synt ovirt-engine]# yum install python-ethtool Loaded plugins: fastestmirror, security, versionlock Loading mirror speeds from cached hostfile * elrepo: elrepo.org * epel: mirror.xfes.ru * sl: ftp2.scientificlinux.org * sl-debuginfo: ftp2.scientificlinux.org * sl-fastbugs: ftp2.scientificlinux.org * sl-security: ftp2.scientificlinux.org * sl-testing: ftp2.scientificlinux.org * sl-testing-source: ftp2.scientificlinux.org Setting up Install Process Package python-ethtool-0.6-1.el6.x86_64 already installed and latest version Nothing to do [root@noc-2-synt ovirt-engine]# This is possible as you fix it? ------=_NextPart_000_0203_01CD17F7.4563C5E0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"><head> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered = medium)"><style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only;} @page WordSection1 {size:612.0pt 792.0pt; margin:2.0cm 42.5pt 2.0cm 3.0cm;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--></head><body lang=3DRU link=3Dblue = vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span = lang=3DEN-US>I build vdsm version with commands:<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>git clone = git://gerrit.ovirt.org/vdsm<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>./autogen.sh --system && = ./configure<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US>make clean && make rpm<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>make rpm<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>Command “make rpm” ( = and make check) return error:<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>make[3]: Entering directory = `/root/rpmbuild/BUILD/vdsm-4.9.6/tests'<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>../tests/run_tests.sh main.py = miscTests.py resourceManagerTests.py processPoolTests.py = fileUtilTests.py guestIFTests.py<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>Traceback (most recent call = last):<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US> File "../tests/testrunner.py", line 192, = in <module><o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US> hackVdsmModule()<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US> File = "../tests/testrunner.py", line 187, in = hackVdsmModule<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US> import utils<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US> File = "/root/rpmbuild/BUILD/vdsm-4.9.6/vdsm/utils.py", line 40, in = <module><o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US> import ethtool<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>ImportError: No module named = ethtool<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US>make[3]: *** [check-local] Error 1<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>make[3]: Leaving directory = `/root/rpmbuild/BUILD/vdsm-4.9.6/tests'<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>make[2]: *** [check-am] Error = 2<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US>make[2]: = Leaving directory = `/root/rpmbuild/BUILD/vdsm-4.9.6/tests'<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>make[1]: *** [check-recursive] = Error 1<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US>make[1]: Leaving directory = `/root/rpmbuild/BUILD/vdsm-4.9.6'<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>error: Bad exit status from = /var/tmp/rpm-tmp.zBdCcy (%check)<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>RPM build = errors:<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US> Bad exit status from = /var/tmp/rpm-tmp.zBdCcy (%check)<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>make: *** [rpm] Error = 1<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US><o:p> </o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US><o:p> </o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US>python-ethtool installed:<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>[root@noc-2-synt ovirt-engine]# yum = install python-ethtool<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US>Loaded plugins: fastestmirror, security, = versionlock<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US>Loading mirror speeds from cached = hostfile<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US> * = elrepo: elrepo.org<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US> * epel: mirror.xfes.ru<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US> * sl: = ftp2.scientificlinux.org<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US> * sl-debuginfo: = ftp2.scientificlinux.org<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US> * sl-fastbugs: = ftp2.scientificlinux.org<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US> * sl-security: = ftp2.scientificlinux.org<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US> * sl-testing: = ftp2.scientificlinux.org<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US> * sl-testing-source: = ftp2.scientificlinux.org<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US>Setting up Install Process<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>Package = python-ethtool-0.6-1.el6.x86_64 already installed and latest = version<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US>Nothing to do<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-US>[root@noc-2-synt = ovirt-engine]#<o:p></o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US><o:p> </o:p></span></p><p class=3DMsoNormal><span = lang=3DEN-US>This is possible as you fix it?<o:p></o:p></span></p><p = class=3DMsoNormal><span = lang=3DEN-US><o:p> </o:p></span></p></div></body></html> ------=_NextPart_000_0203_01CD17F7.4563C5E0--

On Wed, Apr 11, 2012 at 03:25:05PM +0400, ?????? wrote:
I build vdsm version with commands:
git clone git://gerrit.ovirt.org/vdsm
./autogen.sh --system && ./configure
make clean && make rpm
make rpm
Command "make rpm" ( and make check) return error:
make[3]: Entering directory `/root/rpmbuild/BUILD/vdsm-4.9.6/tests'
../tests/run_tests.sh main.py miscTests.py resourceManagerTests.py processPoolTests.py fileUtilTests.py guestIFTests.py
Traceback (most recent call last):
File "../tests/testrunner.py", line 192, in <module>
hackVdsmModule()
File "../tests/testrunner.py", line 187, in hackVdsmModule
import utils
File "/root/rpmbuild/BUILD/vdsm-4.9.6/vdsm/utils.py", line 40, in <module>
import ethtool
ImportError: No module named ethtool
Do you have it installed? A recent patch by Ewoud makes a check for this during ./configure , after I get a question sorted out about it, I'd like to take it in.

Do you have it installed? Yes. [root@noc-2-synt ovirt-engine]# pip freeze M2Crypto==0.20.2 PyXML==0.8.4 distribute==0.6.10 ethtool==0.6 iniparse==0.3.1 iotop==0.3.2 java-gcj-compat==1.0.79 lxml==2.2.3 nose==0.10.4 paramiko==1.7.5 pep8==0.6.0 pexpect==2.3 policycoreutils-default-encoding==0.1 pyOpenSSL==0.10 pycrypto==2.0.1 pycurl==7.19.0 pyflakes==0.4.0 pygpgme==0.1 setools==1.0 suds==0.4.1 urlgrabber==3.9.1 virtinst==0.600.0 virtualenv==1.7 yum-metadata-parser==1.1.2
./configure is not check ethtool: [root@noc-2-synt vdsm]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking whether ln -s works... yes checking for a Python interpreter with version >= 2.6... python checking for python... /usr/local/bin/python checking for python version... 2.7 checking for python platform... linux2 checking for python script directory... ${prefix}/lib/python2.7/site-packages checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages checking for pyflakes... /usr/bin/pyflakes checking for pep8... /usr/bin/pep8 checking for nosetests... /usr/local/bin/nosetests checking for blkid... /sbin/blkid checking for blockdev... /sbin/blockdev checking for brctl... /usr/sbin/brctl checking for cat... /bin/cat checking for chkconfig... /sbin/chkconfig checking for chown... /bin/chown checking for cp... /bin/cp checking for dd... /bin/dd checking for dmidecode... /usr/sbin/dmidecode checking for dmsetup... /sbin/dmsetup checking for echo... /bin/echo checking for fsck... /sbin/fsck checking for fence_ilo... /usr/sbin/fence_ilo checking for fuser... /sbin/fuser checking for grubby... /sbin/grubby checking for hwclock... /sbin/hwclock checking for ifconfig... /sbin/ifconfig checking for ifdown... /sbin/ifdown checking for ifup... /sbin/ifup checking for ionice... /usr/bin/ionice checking for ipcalc... /bin/ipcalc checking for iscsiadm... /sbin/iscsiadm checking for kill... /bin/kill checking for lsblk... /bin/lsblk checking for lvm... /sbin/lvm checking for mkfs... /sbin/mkfs checking for mount... /bin/mount checking for multipath... /sbin/multipath checking for mv... /bin/mv checking for nice... /bin/nice checking for openssl... /usr/bin/openssl checking for persist... /usr/sbin/persist checking for pgrep... /usr/bin/pgrep checking for python... /usr/local/bin/python checking for qemu-img... /usr/bin/qemu-img checking for reboot... /sbin/reboot checking for rpm... /bin/rpm checking for rsync... /usr/bin/rsync checking for scsi_id... /sbin/scsi_id checking for sed... /bin/sed checking for service... /sbin/service checking for setsid... /usr/bin/setsid checking for showmount... /usr/sbin/showmount checking for sudo... /usr/bin/sudo checking for su... /bin/su checking for systemctl... /bin/systemctl checking for tar... /bin/tar checking for tc... /sbin/tc checking for tune2fs... /sbin/tune2fs checking for udevadm... /sbin/udevadm checking for umount... /bin/umount checking for uname... /bin/uname checking for unpersist... /usr/sbin/unpersist checking for vconfig... /sbin/vconfig checking for wget... /usr/bin/wget checking for yum... /usr/bin/yum configure: creating ./config.status config.status: creating Makefile config.status: creating tests/Makefile config.status: creating vds_bootstrap/Makefile config.status: creating vdsm_cli/Makefile config.status: creating vdsm_hooks/directlun/Makefile config.status: creating vdsm_hooks/faqemu/Makefile config.status: creating vdsm_hooks/fileinject/Makefile config.status: creating vdsm_hooks/floppy/Makefile config.status: creating vdsm_hooks/hostusb/Makefile config.status: creating vdsm_hooks/hugepages/Makefile config.status: creating vdsm_hooks/isolatedprivatevlan/Makefile config.status: creating vdsm_hooks/Makefile config.status: creating vdsm_hooks/numa/Makefile config.status: creating vdsm_hooks/pincpu/Makefile config.status: creating vdsm_hooks/promisc/Makefile config.status: creating vdsm_hooks/qos/Makefile config.status: creating vdsm_hooks/scratchpad/Makefile config.status: creating vdsm_hooks/smartcard/Makefile config.status: creating vdsm_hooks/smbios/Makefile config.status: creating vdsm_hooks/sriov/Makefile config.status: creating vdsm_hooks/vhostmd/Makefile config.status: creating vdsm_hooks/vmdisk/Makefile config.status: creating vdsm/Makefile config.status: creating vdsm_reg/Makefile config.status: creating vdsm/sos/Makefile config.status: creating vdsm/storage/Makefile config.status: creating vdsm/storage/protect/Makefile config.status: creating vdsm-tool/Makefile config.status: executing depfiles commands configure: creating ./config.status config.status: creating Makefile config.status: creating tests/Makefile config.status: creating vds_bootstrap/Makefile config.status: creating vdsm_cli/Makefile config.status: creating vdsm_hooks/directlun/Makefile config.status: creating vdsm_hooks/faqemu/Makefile config.status: creating vdsm_hooks/fileinject/Makefile config.status: creating vdsm_hooks/floppy/Makefile config.status: creating vdsm_hooks/hostusb/Makefile config.status: creating vdsm_hooks/hugepages/Makefile config.status: creating vdsm_hooks/isolatedprivatevlan/Makefile config.status: creating vdsm_hooks/Makefile config.status: creating vdsm_hooks/numa/Makefile config.status: creating vdsm_hooks/pincpu/Makefile config.status: creating vdsm_hooks/promisc/Makefile config.status: creating vdsm_hooks/qos/Makefile config.status: creating vdsm_hooks/scratchpad/Makefile config.status: creating vdsm_hooks/smartcard/Makefile config.status: creating vdsm_hooks/smbios/Makefile config.status: creating vdsm_hooks/sriov/Makefile config.status: creating vdsm_hooks/vhostmd/Makefile config.status: creating vdsm_hooks/vmdisk/Makefile config.status: creating vdsm/Makefile config.status: creating vdsm_reg/Makefile config.status: creating vdsm/sos/Makefile config.status: creating vdsm/storage/Makefile config.status: creating vdsm/storage/protect/Makefile config.status: creating vdsm-tool/Makefile config.status: creating tests/run_tests.sh config.status: executing depfiles commands config.status: executing default commands [root@noc-2-synt vdsm]# -----Original Message----- From: Dan Kenigsberg [mailto:danken@redhat.com] Sent: Wednesday, April 11, 2012 4:30 PM To: ?????? Cc: users@ovirt.org Subject: Re: [Users] Build RPM packages vdm from source code On Wed, Apr 11, 2012 at 03:25:05PM +0400, ?????? wrote:
I build vdsm version with commands:
git clone git://gerrit.ovirt.org/vdsm
./autogen.sh --system && ./configure
make clean && make rpm
make rpm
Command "make rpm" ( and make check) return error:
make[3]: Entering directory `/root/rpmbuild/BUILD/vdsm-4.9.6/tests'
../tests/run_tests.sh main.py miscTests.py resourceManagerTests.py processPoolTests.py fileUtilTests.py guestIFTests.py
Traceback (most recent call last):
File "../tests/testrunner.py", line 192, in <module>
hackVdsmModule()
File "../tests/testrunner.py", line 187, in hackVdsmModule
import utils
File "/root/rpmbuild/BUILD/vdsm-4.9.6/vdsm/utils.py", line 40, in <module>
import ethtool
ImportError: No module named ethtool
Do you have it installed? A recent patch by Ewoud makes a check for this during ./configure , after I get a question sorted out about it, I'd like to take it in.
participants (2)
-
??????
-
Dan Kenigsberg