[Pkg-libvirt-maintainers] Bug#888284: python-guestfs: copy_in and tar_in fail to create files
Neil Williams
codehelp at debian.org
Wed Jan 24 17:07:40 UTC 2018
Package: python-guestfs
Version: 1:1.36.11-3
Severity: important
Same symptom with python2
test.tar in my case is a simple tar of python scripts.
-rw-r--r-- 1 neil neil 10240 Jan 24 16:39 test.tar
neil at sylvester:~$ tar -tf test.tar
client1.py
client2.py
client3.py
Also found in the version in testing.
neil at sylvester:~$ python3
Python 3.6.4 (default, Jan 5 2018, 02:13:53)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import guestfs
>>> output = '/tmp/test.raw'
>>> size = 5
>>> guest = guestfs.GuestFS(python_return_dict=True)
>>> guest.disk_create(output, "qcow2", size * 1024 * 1024)
>>> guest.add_drive_opts(output, format="qcow2", readonly=False)
>>> guest.launch()
>>> devices = guest.list_devices()
>>> guest_device = devices[0]
>>> guest.mke2fs(guest_device, label='LAVA')
>>> guest.mount(guest_device, "/")
>>> guest.ls('/')
['lost+found']
>>> guest.copy_in('/home/neil/test.tar', '/')
>>> guest.ls('/')
['lost+found']
>>> guest.tar_in('/home/neil/test.tar', '/')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/guestfs.py", line 9864, in tar_in
selinux, acls)
RuntimeError: tar_in: tar subcommand failed on directory: /:
>>> guest.ls('/')
['lost+found']
>>>
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf, arm64
Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python-guestfs depends on:
ii libc6 2.26-5
ii libguestfs0 1:1.36.11-3
ii python 2.7.14-4
python-guestfs recommends no packages.
python-guestfs suggests no packages.
-- no debconf information
More information about the Pkg-libvirt-maintainers
mailing list