Pressing CTRL+C in uvt-simplestreams-libvirt sync removes all files in directory
Bug #1573603 reported by
Jeffrey Bouter
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
uvtool |
Incomplete
|
High
|
Unassigned | ||
uvtool (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
If CTRL+C is pressed whilst uvt-simplestrea
In my specific case, /var/lib/
Host OS: Ubuntu 14.04 AMD64
Changed in uvtool: | |
importance: | Undecided → High |
Changed in uvtool (Ubuntu): | |
importance: | Undecided → High |
Changed in uvtool: | |
status: | New → Incomplete |
To post a comment you must log in.
Hi,
I'm checking bug that are idle since some time.
For this in particular I think it actually works - or - we need better info to reproduce.
$ uvt-simplestrea ms-libvirt query lap:/tmp/ vm-builder- 0.12.4+ bzr494] ──[46671] ──[16:30 Di Jun 06]── ms-libvirt --verbose sync --source http:// cloud-images. ubuntu. com/daily arch=amd64 label=daily cloud.daily: server: 14.04:amd64 20170605 uvt-simplestrea ms-libvirt" , line 27, in <module> libvirt. simplestreams. main() python2. 7/dist- packages/ uvtool/ libvirt/ simplestreams. py", line 326, in main python2. 7/dist- packages/ uvtool/ libvirt/ simplestreams. py", line 269, in main_sync sync(smirror, initial_path) python2. 7/dist- packages/ simplestreams/ mirrors/ __init_ _.py", line 91, in sync index(reader, path, data, content) python2. 7/dist- packages/ simplestreams/ mirrors/ __init_ _.py", line 254, in sync_index sync(reader, path=epath) python2. 7/dist- packages/ simplestreams/ mirrors/ __init_ _.py", line 89, in sync products( reader, path, data, content) python2. 7/dist- packages/ simplestreams/ mirrors/ __init_ _.py", line 341, in sync_products insert_ item(item, src, target, pgree, ipath_cs) python2. 7/dist- packages/ uvtool/ libvirt/ simplestreams. py", line 236, in insert_item name=LIBVIRT_ POOL_NAME python2. 7/dist- packages/ uvtool/ libvirt/ __init_ _.py", line 55, in create_ volume_ from_fobj copyfileobj( fobj, compressed_fobj) python2. 7/shutil. py", line 49, in copyfileobj python2. 7/dist- packages/ simplestreams/ contentsource. py", line 275, in read python2. 7/dist- packages/ simplestreams/ contentsource. py", line 136, in read python2. 7/dist- packages/ simplestreams/ contentsource. py", line 401, in read python2. 7/dist- packages/ simplestreams/ contentsource. py", line 442, in read_raw self.req. raw, size) python2. 7/dist- packages/ simplestreams/ contentsource. py", line 462, in _read_fd paelzer/ .local/ lib/python2. 7/site- packages/ requests/ packages/ urllib3/ response. py", line 380, in read python2. 7/httplib. py", line 612, in read python2. 7/socket. py", line 384, in read recv(left)
release=artful arch=amd64 label=daily (20170529)
[✓]─[paelzer@
$ time uvt-simplestrea
Adding: com.ubuntu.
^CTraceback (most recent call last):
File "/usr/bin/
uvtool.
File "/usr/lib/
args.func(args)
File "/usr/lib/
tmirror.
File "/usr/lib/
return self.sync_
File "/usr/lib/
self.
File "/usr/lib/
return self.sync_
File "/usr/lib/
self.
File "/usr/lib/
pool_
File "/usr/lib/
shutil.
File "/usr/lib/
buf = fsrc.read(length)
File "/usr/lib/
buf = self.cs.read(size)
File "/usr/lib/
return self.fd.read(size)
File "/usr/lib/
return self._read(size)
File "/usr/lib/
return _read_fd(
File "/usr/lib/
return fd.read(size)
File "/home/
data = self._fp.read(amt)
File "/usr/lib/
s = self.fp.read(amt)
File "/usr/lib/
data = self._sock.
KeyboardInterrupt
real 0m6.185s paelzer@ lap:/tmp/ vm-builder- 0.12.4+ bzr494] ──[46672] ──[16:30 Di Jun 06]── ms-libvirt query
user 0m0.408s
sys 0m0.152s
[✗=1]─[
$ uvt-simplestrea
release=artful arch=amd64 label=daily (20170529)