Project

General

Profile

Bug #13229

yum install fails with KeyboardInterrupt

Added by Sage Weil over 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

I can't figure out why this keeps happening. It seems to be pretty reproducible.

2015-09-23T13:08:15.118 INFO:teuthology.orchestra.run.vpm079.stdout:================================================================================
2015-09-23T13:08:15.119 INFO:teuthology.orchestra.run.vpm079.stdout: Package               Arch           Version                Repository    Size
2015-09-23T13:08:15.119 INFO:teuthology.orchestra.run.vpm079.stdout:================================================================================
2015-09-23T13:08:15.119 INFO:teuthology.orchestra.run.vpm079.stdout:Installing:
2015-09-23T13:08:15.119 INFO:teuthology.orchestra.run.vpm079.stdout: ceph-radosgw          x86_64         1:0.94.3-0.el7         Ceph         2.3 M
2015-09-23T13:08:15.120 INFO:teuthology.orchestra.run.vpm079.stdout:Installing for dependencies:
2015-09-23T13:08:15.120 INFO:teuthology.orchestra.run.vpm079.stdout: ceph-common           x86_64         1:0.94.3-0.el7         Ceph         6.3 M
2015-09-23T13:08:15.120 INFO:teuthology.orchestra.run.vpm079.stdout: fcgi                  x86_64         2.4.0-25.el7           epel          47 k
2015-09-23T13:08:15.120 INFO:teuthology.orchestra.run.vpm079.stdout: libcephfs1            x86_64         1:0.94.3-0.el7         Ceph         1.8 M
2015-09-23T13:08:15.120 INFO:teuthology.orchestra.run.vpm079.stdout: librados2             x86_64         1:0.94.3-0.el7         Ceph         1.7 M
2015-09-23T13:08:15.121 INFO:teuthology.orchestra.run.vpm079.stdout: librbd1               x86_64         1:0.94.3-0.el7         Ceph         1.8 M
2015-09-23T13:08:15.121 INFO:teuthology.orchestra.run.vpm079.stdout: python-cephfs         x86_64         1:0.94.3-0.el7         Ceph         9.7 k
2015-09-23T13:08:15.121 INFO:teuthology.orchestra.run.vpm079.stdout: python-rados          x86_64         1:0.94.3-0.el7         Ceph          28 k
2015-09-23T13:08:15.121 INFO:teuthology.orchestra.run.vpm079.stdout: python-rbd            x86_64         1:0.94.3-0.el7         Ceph          17 k
2015-09-23T13:08:15.121 INFO:teuthology.orchestra.run.vpm079.stdout:
2015-09-23T13:08:15.122 INFO:teuthology.orchestra.run.vpm079.stdout:Transaction Summary
2015-09-23T13:08:15.122 INFO:teuthology.orchestra.run.vpm079.stdout:================================================================================
2015-09-23T13:08:15.122 INFO:teuthology.orchestra.run.vpm079.stdout:Install  1 Package (+8 Dependent packages)
2015-09-23T13:08:15.122 INFO:teuthology.orchestra.run.vpm079.stdout:
2015-09-23T13:08:15.123 INFO:teuthology.orchestra.run.vpm079.stdout:Total download size: 14 M
2015-09-23T13:08:15.123 INFO:teuthology.orchestra.run.vpm079.stdout:Installed size: 51 M
2015-09-23T13:08:15.123 INFO:teuthology.orchestra.run.vpm079.stdout:Downloading packages:
...
2015-09-23T13:10:21.234 INFO:teuthology.orchestra.run.vpm079.stderr:Traceback (most recent call last):
2015-09-23T13:10:21.235 INFO:teuthology.orchestra.run.vpm079.stderr:  File "/usr/libexec/urlgrabber-ext-down", line 75, in <module>
2015-09-23T13:10:21.235 INFO:teuthology.orchestra.run.vpm079.stderr:    main()
2015-09-23T13:10:21.235 INFO:teuthology.orchestra.run.vpm079.stderr:  File "/usr/libexec/urlgrabber-ext-down", line 61, in main
2015-09-23T13:10:21.235 INFO:teuthology.orchestra.run.vpm079.stderr:    fo = PyCurlFileObject(opts.url, opts.filename, opts)
2015-09-23T13:10:21.235 INFO:teuthology.orchestra.run.vpm079.stderr:  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1258, in __init__
2015-09-23T13:10:21.265 INFO:teuthology.orchestra.run.vpm079.stderr:    self._do_open()
2015-09-23T13:10:21.266 INFO:teuthology.orchestra.run.vpm079.stderr:  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1589, in _do_open
2015-09-23T13:10:21.266 INFO:teuthology.orchestra.run.vpm079.stderr:    self._do_grab()
2015-09-23T13:10:21.266 INFO:teuthology.orchestra.run.vpm079.stderr:  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1723, in _do_grab
2015-09-23T13:10:21.266 INFO:teuthology.orchestra.run.vpm079.stderr:    self._do_perform()
2015-09-23T13:10:21.266 INFO:teuthology.orchestra.run.vpm079.stderr:  File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1517, in _do_perform
2015-09-23T13:10:21.267 INFO:teuthology.orchestra.run.vpm079.stderr:    raise KeyboardInterrupt
2015-09-23T13:10:21.267 INFO:teuthology.orchestra.run.vpm079.stderr:KeyboardInterrupt
2015-09-23T13:10:21.267 INFO:teuthology.orchestra.run.vpm079.stderr:
2015-09-23T13:10:21.267 INFO:teuthology.orchestra.run.vpm079.stderr:
2015-09-23T13:10:21.267 INFO:teuthology.orchestra.run.vpm079.stderr:Exiting on user cancel
2015-09-23T13:10:21.368 ERROR:teuthology.parallel:Exception in parallel execution
Traceback (most recent call last):
  File "/home/teuthworker/src/teuthology_master/teuthology/parallel.py", line 82, in __exit__
    for result in self:
  File "/home/teuthworker/src/teuthology_master/teuthology/parallel.py", line 101, in next
    resurrect_traceback(result)
  File "/home/teuthworker/src/teuthology_master/teuthology/parallel.py", line 19, in capture_traceback
    return func(*args, **kwargs)
  File "/home/teuthworker/src/teuthology_master/teuthology/task/install.py", line 281, in _update_rpm_package_list_and_install
    remote.run(args=['sudo', 'yum', 'install', cpack, '-y'])
  File "/home/teuthworker/src/teuthology_master/teuthology/orchestra/remote.py", line 156, in run
    r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
  File "/home/teuthworker/src/teuthology_master/teuthology/orchestra/run.py", line 378, in run
    r.wait()
  File "/home/teuthworker/src/teuthology_master/teuthology/orchestra/run.py", line 114, in wait
    label=self.label)
CommandFailedError: Command failed on vpm079 with status 1: 'sudo yum install ceph-radosgw -y'
2015-09-23T13:10:21.381 ERROR:teuthology.contextutil:Saw exception from nested tasks
Traceback (most recent call last):
  File "/home/teuthworker/src/teuthology_master/teuthology/contextutil.py", line 28, in nested
    vars.append(enter())
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/teuthworker/src/teuthology_master/teuthology/task/install.py", line 638, in install
    install_packages(ctx, install_info, config)
  File "/home/teuthworker/src/teuthology_master/teuthology/task/install.py", line 381, in install_packages
    ctx, remote, pkgs[system_type], config)
  File "/home/teuthworker/src/teuthology_master/teuthology/parallel.py", line 82, in __exit__
    for result in self:
  File "/home/teuthworker/src/teuthology_master/teuthology/parallel.py", line 101, in next
    resurrect_traceback(result)
  File "/home/teuthworker/src/teuthology_master/teuthology/parallel.py", line 19, in capture_traceback
    return func(*args, **kwargs)
  File "/home/teuthworker/src/teuthology_master/teuthology/task/install.py", line 281, in _update_rpm_package_list_and_install
    remote.run(args=['sudo', 'yum', 'install', cpack, '-y'])
  File "/home/teuthworker/src/teuthology_master/teuthology/orchestra/remote.py", line 156, in run
    r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
  File "/home/teuthworker/src/teuthology_master/teuthology/orchestra/run.py", line 378, in run
    r.wait()
  File "/home/teuthworker/src/teuthology_master/teuthology/orchestra/run.py", line 114, in wait
    label=self.label)
CommandFailedError: Command failed on vpm079 with status 1: 'sudo yum install ceph-radosgw -y'

/a/sage-2015-09-23_12:53:06-upgrade:hammer-x-wip-sam-testing---basic-vps/1066633

Related issues

Duplicated by teuthology - Bug #13389: KeyboardInterrupt from yum Duplicate 10/06/2015

History

#1 Updated by Zack Cerza over 8 years ago

http://pulpito.front.sepia.ceph.com/sage-2015-09-23_12:53:06-upgrade:hammer-x-wip-sam-testing---basic-vps/1066633/
http://qa-proxy.ceph.com/teuthology/sage-2015-09-23_12:53:06-upgrade:hammer-x-wip-sam-testing---basic-vps/1066633/teuthology.log

So, KeyboardInterrupt in Python is what is raised when a user hits ^C. Putting aside how insane it appears to be for urlgrabber to be raising that exception...

That traceback is coming straight from yum on the remote. This looks like it's really a bug with the OS vendor either in yum or urlgrabber.

#3 Updated by Sage Weil over 8 years ago

Hmm, that suggests we just need a centos 7.1 downburst image to replace the 7.0 one?

#4 Updated by Vasu Kulkarni over 8 years ago

This could also be due to gevent which is propogating SIGINT and it doesn't have a handler, its easier to see keyboardinterrupt exception in caller during parallel execution and one issues ctrl-c or kill.

#5 Updated by Zack Cerza almost 8 years ago

  • Status changed from New to 15

#6 Updated by Zack Cerza almost 8 years ago

  • Status changed from 15 to Closed

Also available in: Atom PDF