RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1212677 - guestfish fails to add a remote image with ssh protocol
Summary: guestfish fails to add a remote image with ssh protocol
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libguestfs
Version: 7.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-17 04:52 UTC by Hu Zhang
Modified: 2015-11-19 07:00 UTC (History)
3 users (show)

Fixed In Version: libguestfs-1.28.1-1.27.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1326531 (view as bug list)
Environment:
Last Closed: 2015-11-19 07:00:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2183 0 normal SHIPPED_LIVE libguestfs bug fix and enhancement update 2015-11-19 08:18:42 UTC

Description Hu Zhang 2015-04-17 04:52:11 UTC
Description of problem:
guestfish fails to add a remote image with ssh protocol. If the rhel7.1 does not support this feature, we need to modify the man page.
In man page, 
-----------------------
...
   Remote drives
       Access a remote disk using ssh:

        guestfish -a ssh://example.com/path/to/disk.img
...
-----------------------
...
ADDING REMOTE STORAGE
       For API-level documentation on this topic, see "guestfs_add_drive_opts" in guestfs(3) and "REMOTE STORAGE" in guestfs(3).

       On the command line, you can use the -a option to add network block devices using a URI-style format, for example:

        guestfish -a ssh://root/disk.img

       URIs cannot be used with the "add" command.  The equivalent command using the API directly is:

        ><fs> add /disk.img protocol:ssh server:tcp:example.com username:root

       The possible -a URI formats are described below.
...
----------------------

Version-Release number of selected component (if applicable):
kernel-3.10.0-229.el7.x86_64
libguestfs-1.28.1-1.18.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. guestfish -a ssh://root/disk.img

Actual results:
Step 1:
libguestfs: error: unknown protocol 'ssh'.                                                                                         

Usage:                                                                                                                                                                      
 sfdisk [options] <dev> [[-N] <part>]                                                                                                                                       
 sfdisk [options] <command>
...

Expected results:
If rhel7.1 does not support this feature, we need to modify the man page.

Additional info:

Comment 1 Richard W.M. Jones 2015-04-17 09:06:36 UTC
Thanks - this is indeed a bug in the documentation.

In RHEL 7 we disable many of the remote storage drivers.  The ssh:
driver is in fact not disabled, but is hidden from users (it's
only usable by virt-v2v, and only in a special case).  The
documentation needs to remove these references to adding images
with ssh:...

Comment 3 Hu Zhang 2015-05-05 09:44:29 UTC
Verified with libguestfs-1.28.1-1.31.el7.

Step to verify:
1.# man guestfish
-------------------------
   Remote drives
       Access a remote disk using NBD:

        guestfish -a nbd://example.com

-------------------------
       On the command line, you can use the -a option to add network block devices using a URI-style format, for
       example:

        guestfish -a nbd://example.com

       URIs cannot be used with the "add" command.  The equivalent command using the API directly is:
-------------------------

No references to adding images with ssh exits in the man page. So fixed.

Comment 5 errata-xmlrpc 2015-11-19 07:00:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2183.html


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