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 1142416 - part-get-name give 'libguestfs: error: part_get_name: parted does not support the machine output (-m)' error message when run 'part-get-name /dev/sda 1'
Summary: part-get-name give 'libguestfs: error: part_get_name: parted does not support...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libguestfs
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-16 17:47 UTC by Lingfei Kong
Modified: 2015-03-05 13:45 UTC (History)
4 users (show)

Fixed In Version: libguestfs-1.27.48-1.1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 13:45:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0303 0 normal SHIPPED_LIVE libguestfs bug fix and enhancement update 2015-03-05 17:34:44 UTC

Description Lingfei Kong 2014-09-16 17:47:07 UTC
Description of problem:
part-get-name give 'libguestfs: error: part_get_name: parted does not support the machine output (-m)' error message when run 'part-get-name /dev/sda 1'


Version-Release number of selected component (if applicable):
libguestfs-1.27.46-1.1.el7


How reproducible:
100%


Steps to Reproduce:
1. Create a disk image: rhel6.6.img
2. #guestfish -a rhel6.6.img
><fs> run
><fs> list-devices
/dev/sda
><fs> part-get-name /dev/sda 1
libguestfs: error: part_get_name: parted does not support the machine output (-m)

More detail information:
# export LIBGUESTFS_TRACE=1
# export LIBGUESTFS_DEBUG=1
#guestfish -a rhel6.6.img
><fs> run
><fs> list-devices
/dev/sda
><fs> part-get-name /dev/sda 1
libguestfs: trace: part_get_name "/dev/sda" 1
guestfsd: main_loop: new request, len 0x38
parted -s -m /dev/null
Error: The device /dev/null is so small that it cannot possibly store a file system or partition table.  Perhaps you selected the wrong device?
Warning: Error fsyncing/closing /dev/null: Invalid argument
parted -m -- /dev/sda unit b print
guestfsd: error: parted does not support the machine output (-m)
guestfsd: main_loop: proc 416 (part_get_name) took 0.01 seconds
libguestfs: trace: part_get_name = NULL (error)
libguestfs: error: part_get_name: parted does not support the machine output (-m)


Actual results:
Get an error from command part-get-name:
><fs> part-get-name /dev/sda 1
libguestfs: error: part_get_name: parted does not support the machine output (-m)


Expected results:
No error message output like:
libguestfs: error: part_get_name: parted does not support the machine output (-m)


Additional info:

Comment 3 Lingfei Kong 2014-10-22 04:52:18 UTC
Verified with libguestfs-1.28.1-1.2.el7

Steps to verify:
#guestfish -a rhel.img
><fs> run
><fs> list-devices
/dev/sda
><fs> part-get-name /dev/sda 1
libguestfs: error: part_get_name: part-get-name can only be used on GUID Partition Tables
><fs> 


guestfish give a proper error message, so bug is fixed.

Comment 5 errata-xmlrpc 2015-03-05 13:45:09 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-0303.html


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