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 2064176 - gdisk naming partitions doesn't work for big endian systems
Summary: gdisk naming partitions doesn't work for big endian systems
Keywords:
Status: CLOSED DUPLICATE of bug 1899990
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: gdisk
Version: 8.6
Hardware: s390x
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Nikola Forró
QA Contact: Martin Kyral
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-15 08:36 UTC by Martin Kyral
Modified: 2022-03-18 10:10 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-18 10:10:39 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-115583 0 None Closed [Production][BZ] RHEL8.4 server hangs during SSH login and reboot 2022-06-16 03:22:45 UTC

Description Martin Kyral 2022-03-15 08:36:59 UTC
Description of problem:

On s390x systems, when we print partition names in gdisk, they are broken:


[root@s390x-kvm-039 ~]# gdisk -l /tmp/tmp.ydqTCA2yF4
GPT fdisk (gdisk) version 1.0.3

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /tmp/tmp.ydqTCA2yF4: 131072 sectors, 64.0 MiB
Sector size (logical): 512 bytes
Disk identifier (GUID): DFB1F964-24E7-412D-9A25-7837EB2D29A5
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 131038
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          131038   63.0 MiB    8300  䰀椀渀甀砀 昀椀氀攀猀礀猀琀攀洀
[root@s390x-kvm-039 ~]# 


while it should be like:

[root@ibm-z-532 ~]# gdisk -l /tmp/tmp.trTgCQifmd
GPT fdisk (gdisk) version 1.0.3

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /tmp/tmp.trTgCQifmd: 131072 sectors, 64.0 MiB
Sector size (logical): 512 bytes
Disk identifier (GUID): F067F1C3-740C-4D38-839A-42872727BA64
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 131038
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          131038   63.0 MiB    8300  Linux filesystem
[root@ibm-z-532 ~]# 

it seems the bytes order is reversed. The issue has been apparently introduced by fix for BZ#1899990.


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

gdisk-1.0.3-8.el8


How reproducible:
Always


Steps to Reproduce:
1. run the /usr/share/doc/gdisk/gdisk_test.sh script. Make sure it runs on installed gdisk
2.
3.

Actual results:
Fails in the second step:

**FAILED** Create new partition


Expected results:

All pass


Additional info:


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