On Fri, Jul 6, 2012 at 12:33 AM, Qingtang Zhou <qz...@redhat.com> wrote: > * On 2012-07-06 00:12:43 +0800, lei yang (yanglei.f...@gmail.com) wrote: >> Hi list, >> >> some of my tests met below issue,seems a python2.7 issue, >> >> File "/autotest/client/virt/kvm_vm.py", line 2133, in migrate >> self.send_fd(fd_src, mig_fd_name) >> File "/autotest/client/shared/error.py", line 138, in new_fn >> return fn(*args, **kwargs) >> File "/autotest/client/virt/kvm_vm.py", line 2046, in send_fd >> self.monitor.cmd("getfd %s" % (fd_name), fd=fd) >> File "/autotest/client/virt/kvm_monitor.py", line 324, in cmd >> self._passfd = virt_passfd_setup.import_passfd() >> File "/autotest/client/virt/virt_passfd_setup.py", line 41, in >> import_passfd >> passfd_setup() >> File "/autotest/client/virt/virt_passfd_setup.py", line 28, in >> passfd_setup >> objects = c.compile(SOURCES, include_dirs=[PYTHON_HEADERS], >> extra_postargs=['-fPIC']) >> File "/usr/lib64/python2.7/distutils/ccompiler.py", line 624, in compile >> self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) >> File "/usr/lib64/python2.7/distutils/unixccompiler.py", line 180, >> in _compile >> raise CompileError, msg >> CompileError: command 'cc' failed with exit status 1 >> >> you can reproduce it with "migrate.with_blkdebug.fd" test cases >> how could I handle this, any workaround? > Hi, Lei, > Could you paste the whole error log file here? > > I doubt you don't have python devel package installed on host. > If you're using fedora, you can install python-devel package to > resolve this problem. >
I checked root@x86-64:/root# rpm -qa |grep python-dev python-dev-2.7.2-r2.17.x86_64 The wohle error log would be 07/06 00:09:07 DEBUG| kvm_vm.py: destroy: 1623| VM is down 07/06 00:09:07 DEBUG|virt_env_process.py: postprocess: 414| Param 'convert_ppm_files_to_png' specified, converting PPM files to PNG format 07/06 00:09:07 DEBUG|virt_env_process.py: postprocess: 427| Param 'keep_ppm_files' not specified, removing all PPM files from debug dir 07/06 00:09:07 DEBUG|virt_env_process.py: postprocess: 450| Param 'kill_unresponsive_vms' specified, killing all VMs that fail to respond to a remote login request 07/06 00:09:07 ERROR| parallel.py: fork_start: 26| child process failed 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| Traceback (most recent call last): 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/parallel.py", line 18, in fork_start 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| l() 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/job.py", line 526, in <lambda> 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| l = lambda : test.runtest(self, url, tag, args, dargs) 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/test.py", line 115, in runtest 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| job.sysinfo.log_after_each_iteration) 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/shared/test.py", line 935, in runtest 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| mytest._exec(args, dargs) 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/shared/test.py", line 428, in _exec 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| _call_test_function(self.execute, *p_args, **p_dargs) 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/shared/test.py", line 850, in _call_test_function 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| raise error.UnhandledTestFail(e) 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| UnhandledTestFail: Unhandled CompileError: command 'cc' failed with exit status 1 [context: migrating 'vm1' --> Send fd 22 like migfd_22_1341504543 to VM vm1] 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| Traceback (most recent call last): 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/shared/test.py", line 843, in _call_test_function 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| return func(*args, **dargs) 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/shared/test.py", line 301, in execute 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| postprocess_profiled_run, args, dargs) 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/shared/test.py", line 218, in _call_run_once 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| *args, **dargs) 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/shared/test.py", line 324, in run_once_profiling 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| self.run_once(*args, **dargs) 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/virt/virt_test.py", line 97, in run_once 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| run_func(self, params, env) 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/tests/kvm/tests/migration.py", line 118, in run_migration 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| vm.migrate(mig_timeout, mig_protocol, mig_cancel_delay, offline, check) 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/shared/error.py", line 138, in new_fn 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| return fn(*args, **kwargs) 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/virt/kvm_vm.py", line 2133, in migrate 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| self.send_fd(fd_src, mig_fd_name) 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/shared/error.py", line 138, in new_fn 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| return fn(*args, **kwargs) 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/virt/kvm_vm.py", line 2046, in send_fd 07/06 00:09:07 DEBUG| parallel.py: fork_start: 30| self.monitor.cmd("getfd %s" % (fd_name), fd=fd) 07/06 00:09:08 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/virt/kvm_monitor.py", line 324, in cmd 07/06 00:09:08 DEBUG| parallel.py: fork_start: 30| self._passfd = virt_passfd_setup.import_passfd() 07/06 00:09:08 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/virt/virt_passfd_setup.py", line 41, in import_passfd 07/06 00:09:08 DEBUG| parallel.py: fork_start: 30| passfd_setup() 07/06 00:09:08 DEBUG| parallel.py: fork_start: 30| File "/autotest/client/virt/virt_passfd_setup.py", line 28, in passfd_setup 07/06 00:09:08 DEBUG| parallel.py: fork_start: 30| objects = c.compile(SOURCES, include_dirs=[PYTHON_HEADERS], extra_postargs=['-fPIC']) 07/06 00:09:08 DEBUG| parallel.py: fork_start: 30| File "/usr/lib64/python2.7/distutils/ccompiler.py", line 624, in compile 07/06 00:09:08 DEBUG| parallel.py: fork_start: 30| self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) 07/06 00:09:08 DEBUG| parallel.py: fork_start: 30| File "/usr/lib64/python2.7/distutils/unixccompiler.py", line 180, in _compile 07/06 00:09:08 DEBUG| parallel.py: fork_start: 30| raise CompileError, msg 07/06 00:09:08 DEBUG| parallel.py: fork_start: 30| CompileError: command 'cc' failed with exit status 1 07/06 00:09:08 DEBUG| parallel.py: fork_start: 30| 07/06 00:09:08 INFO | job.py:client_job_record_hook: 210| FAIL kvm.smp2.e1000.CustomGuestLinux.migrate.with_blkdebug.fd kvm.smp2.e1000.CustomGuestLinux.migrate.with_blkdebug.fd timestamp=1341504548 localtime=Jul 06 00:09:08 Unhandled CompileError: command 'cc' failed with exit status 1 [context: migrating 'vm1' --> Send fd 22 like migfd_22_1341504543 to VM vm1] Traceback (most recent call last): File "/autotest/client/shared/test.py", line 843, in _call_test_function return func(*args, **dargs) File "/autotest/client/shared/test.py", line 301, in execute postprocess_profiled_run, args, dargs) File "/autotest/client/shared/test.py", line 218, in _call_run_once *args, **dargs) File "/autotest/client/shared/test.py", line 324, in run_once_profiling self.run_once(*args, **dargs) File "/autotest/client/virt/virt_test.py", line 97, in run_once run_func(self, params, env) File "/autotest/client/tests/kvm/tests/migration.py", line 118, in run_migration vm.migrate(mig_timeout, mig_protocol, mig_cancel_delay, offline, check) File "/autotest/client/shared/error.py", line 138, in new_fn return fn(*args, **kwargs) File "/autotest/client/virt/kvm_vm.py", line 2133, in migrate self.send_fd(fd_src, mig_fd_name) File "/autotest/client/shared/error.py", line 138, in new_fn return fn(*args, **kwargs) File "/autotest/client/virt/kvm_vm.py", line 2046, in send_fd self.monitor.cmd("getfd %s" % (fd_name), fd=fd) File "/autotest/client/virt/kvm_monitor.py", line 324, in cmd self._passfd = virt_passfd_setup.import_passfd() File "/autotest/client/virt/virt_passfd_setup.py", line 41, in import_passfd passfd_setup() File "/autotest/client/virt/virt_passfd_setup.py", line 28, in passfd_setup objects = c.compile(SOURCES, include_dirs=[PYTHON_HEADERS], extra_postargs=['-fPIC']) File "/usr/lib64/python2.7/distutils/ccompiler.py", line 624, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/usr/lib64/python2.7/distutils/unixccompiler.py", line 180, in _compile raise CompileError, msg CompileError: command 'cc' failed with exit status 1 >> >> Lei >> _______________________________________________ >> Autotest mailing list >> Autotest@test.kernel.org >> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest