Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1140166 - RFE: support disk source protocol=ssh
Summary: RFE: support disk source protocol=ssh
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: libvirt
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.1
Assignee: Virtualization Maintenance
QA Contact: Han Han
URL:
Whiteboard:
: 1139659 1434651 1434841 (view as bug list)
Depends On: 1139659
Blocks: TRACKER-bugs-affecting-libguestfs 1435162 1642014 1758964
TreeView+ depends on / blocked
 
Reported: 2014-09-10 12:05 UTC by Richard W.M. Jones
Modified: 2020-11-06 12:37 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of: 1139659
Environment:
Last Closed: 2020-11-06 12:36:20 UTC
Type: Feature Request
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2014-09-10 12:05:59 UTC
+++ This bug was initially created as a clone of Bug #1139659 +++

Description of problem:

Note this requires that you have fixed bug 1134592 in libvirt first.

If you create a backing file that references an ssh server,
libvirt doesn't pass the required SSH_* variables through to
qemu so it cannot access the ssh agent.

$ qemu-img create -f qcow2 \
  -b 'json: { "file.driver":"ssh",
              "file.path":"/mnt/scratch/test1.img",
              "file.user":"rjones",
              "file.host":"onuma.home.annexia.org",
              "file.host_key_check":"no" }' test2.img

$ ~/d/libvirt/run guestfish -a test2.img run
[...]
Original error from libvirt: internal error: early end of file from monitor: possible problem:
2014-09-09T11:36:32.304954Z qemu-system-x86_64: -drive file=/tmp/test2.img,if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=writeback: could not open disk image /tmp/test2.img: Could not open backing file: failed to connect to ssh-agent: no auth sock variable (libssh2 error code: -39)
 [code=1 domain=10]

Version-Release number of selected component (if applicable):

libvirt from git (2014-09-09) + patches to fix bug 1134592.

How reproducible:

100%

Steps to Reproduce:
1. See above.

Related: bug 856619

--- Additional comment from Richard W.M. Jones on 2014-09-10 08:02:00 EDT ---

Dan suggests that I make this bug into a more general feature request.

Comment 4 Cole Robinson 2016-04-10 14:21:13 UTC
*** Bug 1139659 has been marked as a duplicate of this bug. ***

Comment 6 Peter Krempa 2017-03-23 07:02:49 UTC
*** Bug 1434841 has been marked as a duplicate of this bug. ***

Comment 7 Peter Krempa 2017-03-23 07:47:24 UTC
*** Bug 1434651 has been marked as a duplicate of this bug. ***

Comment 9 Richard W.M. Jones 2019-04-24 12:08:39 UTC
These proposed commits would mean we no longer need this in libvirt:
https://www.redhat.com/archives/libguestfs/2019-April/msg00058.html
https://www.redhat.com/archives/libguestfs/2019-April/msg00060.html

Comment 10 Jaroslav Suchanek 2019-04-24 12:26:24 UTC
This bug is going to be addressed in next major release.

Comment 11 Richard W.M. Jones 2020-02-10 15:40:26 UTC
This no longer affects virt-v2v upstream, still affects RHEL AV 8.2, but
we will rebase in AV 8.3 at which point it won't affect downstream.

Still be a nice to fix for other users of course.

Comment 13 Jaroslav Suchanek 2020-11-06 12:36:20 UTC
This bug was closed deferred as a result of bug triage.

Please reopen if you disagree and provide justification why this bug should
get enough priority. Most important would be information about impact on
customer or layered product. Please indicate requested target release.


Note You need to log in before you can comment on or make changes to this bug.