Bug 965495
Summary: | New APIs required in libguestfs for virt-v2v in RHEL 6.5 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Richard W.M. Jones <rjones> |
Component: | libguestfs | Assignee: | Pino Toscano <ptoscano> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.5 | CC: | leiwang, lnovich, mbooth, morazi, ptoscano, rjones, wshi |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libguestfs-1.20.11-7.el6 | Doc Type: | Bug Fix |
Doc Text: |
Cause: gdisk was not available as dependency for libguestfs.
Consequence: The gdisk feature was not available, and thus the two APIs guestfs_part_get_gpt_type and guestfs_part_set_gpt_type were not usable.
Fix: Add gdisk as dependency.
Result: The gdisk feature is available, and the two APIs guestfs_part_get_gpt_type and guestfs_part_set_gpt_type are usable.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2014-10-14 06:34:44 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 958183, 1015157 | ||
Bug Blocks: | 965501, 1012805, 1023565 |
Description
Richard W.M. Jones
2013-05-21 10:05:58 UTC
Verified with libguestfs-1.20.11-1.el6.x86_64 ><fs> help part-get-gpt-type NAME part-get-gpt-type - get the type GUID of a GPT partition SYNOPSIS part-get-gpt-type device partnum DESCRIPTION Return the type GUID of numbered GPT partition "partnum". For MBR partitions, return an appropriate GUID corresponding to the MBR type. Behaviour is undefined for other partition types. ><fs> help part-set-gpt-type NAME part-set-gpt-type - set the type GUID of a GPT partition SYNOPSIS part-set-gpt-type device partnum guid DESCRIPTION Set the type GUID of numbered GPT partition "partnum" to "guid". Return an error if the partition table of "device" isn't GPT, or if "guid" is not a valid GUID. See <http://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs> for a useful list of type GUIDs. New APIS add, and work, so change the status to verified I'm afraid comment 9 doesn't count as verification. tzheng discovered (bug 1012805) that although the APIs exist, they don't work because gdisk isn't included in RHEL 6.5. It's fairly easy to demonstrate this: $ guestfish -N part:1G:gpt part-get-gpt-type /dev/sda 1 libguestfs: error: part_get_gpt_type: feature 'gdisk' is not available in this build of libguestfs. Read 'AVAILABILITY' in the guestfs(3) man page for how to check for the availability of features. or: $ guestfish -N part:1G:gpt part-set-gpt-type /dev/sda 1 0FC63DAF-8483-4772-8E79-3D69D8477DE4 libguestfs: error: part_set_gpt_type: feature 'gdisk' is not available in this build of libguestfs. Read 'AVAILABILITY' in the guestfs(3) man page for how to check for the availability of features. We decided (sensibly IMHO) to push this bug out to 6.6. BTW I'm setting QA flag back to ? because I believe the QA test for this to be wrong. See comment 10. Verified with libguestfs-1.20.11-8.el6.x86_64 # guestfish -N fs part-disk /dev/sda gpt : part-get-gpt-type /dev/sda 1 : part-set-gpt-type /dev/sda 1 EBD0A0A2-B9E5-4433-87C0-68B6B72699C0 : part-get-gpt-type /dev/sda 1 EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 EBD0A0A2-B9E5-4433-87C0-68B6B72699C0 The API works. 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. http://rhn.redhat.com/errata/RHBA-2014-1458.html |