Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1259437

Summary: unformatted and LDL DASD disks not formatted during kickstart installation in text mode
Product: Red Hat Enterprise Linux 7 Reporter: Jan Stodola <jstodola>
Component: anacondaAssignee: Samantha N. Bueno <sbueno>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact: Clayton Spicer <cspicer>
Priority: high    
Version: 7.2CC: bugproxy, hannsj_uhl, jkachuck, msvistun, sbueno
Target Milestone: rc   
Target Release: 7.3   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-21.48.22.84-1 Doc Type: Release Note
Doc Text:
Formatting DASDs works correctly during a text-based installation Previously, a bug prevented DASDs from being correctly formatted during a text-based installaton. As a consequence, DASDs that were unformatted or incorrectly formatted had to be manually formatted before use. This bug has been fixed, and the installer can now format DASDs when performing a text-based installation.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-03 23:11:05 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:    
Bug Blocks: 1170653, 1186677, 1230910, 1295926, 1313485, 1355839, 1364088, 1366991    
Attachments:
Description Flags
kickstart
none
storage.log
none
anaconda.log
none
program.log
none
storage.log none

Description Jan Stodola 2015-09-02 15:20:01 UTC
Description of problem:
The installer doesn't format unformatted DASD disks (formatted by cpfmtxa in CMS) when running a kickstart installation in text mode. Those disks are ignored during the installation.

Version-Release number of selected component (if applicable):
RHEL-7.0 GA
RHEL-7.1 GA
RHEL-7.2 Beta (anaconda-21.48.22.35-1.el7)

How reproducible:
always

Steps to Reproduce:
1. format a DASD disk in CMS using the "cpfmtxa" command
2. run a kickstart installation in text mode with the following commands in the kickstart file:

bootloader --location=mbr
zerombr
clearpart --all --initlabel
autopart

Actual results:
Unformatted DASD disk not formatted using dasdfmt during the installation

Expected results:
Unformatted DASD disk are formatted and used during the installation

Comment 5 Jan Stodola 2015-09-02 15:23:47 UTC
Created attachment 1069476 [details]
kickstart

Comment 6 Jan Stodola 2015-09-02 15:24:52 UTC
DASD disks after the installation:

[root@rtt7 ~]# lsblk
NAME                 MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
dasda                 94:0    0  2.3G  0 disk 
├─dasda1              94:1    0  500M  0 part /boot
└─dasda2              94:2    0  1.8G  0 part 
  ├─rhel_rtt700-root 253:0    0  3.6G  0 lvm  /
  └─rhel_rtt700-swap 253:1    0  472M  0 lvm  [SWAP]
dasdb                 94:4    0  2.3G  0 disk 
└─dasdb1              94:5    0  2.3G  0 part 
  └─rhel_rtt700-root 253:0    0  3.6G  0 lvm  /
[root@rtt7 ~]# lsdasd 
Bus-ID     Status      Name      Device  Type  BlkSz  Size      Blocks
==============================================================================
0.0.3527   active      dasda     94:0    ECKD  4096   2347MB    601020
0.0.3627   active      dasdb     94:4    ECKD  4096   2347MB    601020
0.0.3727   n/f         dasdc     94:8    ECKD                   
[root@rtt7 ~]#

Comment 7 Jan Stodola 2015-10-08 13:09:32 UTC
Not only unformatted, but also LDL disks are not formatted during kickstart installation in text mode when having the following line in the kickstart file:

clearpart --all --initlabel --cdl

Since I believe the root cause is the same, I'm using this bug for LDL disks as well. In case the root case is different, I will report a new bug.

Comment 9 IBM Bug Proxy 2016-02-23 17:41:06 UTC
------- Comment From vsandhya.com 2016-02-23 12:35 EDT-------
Any updates?

Comment 10 Mike McCune 2016-03-28 23:33:48 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 12 Jan Stodola 2016-05-12 10:08:21 UTC
Retested with anaconda-21.48.22.70-1.el7, but the unformatted DASD wasn't formatted during the installation. After the installation:

[root@rtt7 ~]# lsdasd 
Bus-ID     Status      Name      Device  Type  BlkSz  Size      Blocks
==============================================================================
0.0.3127   active      dasda     94:0    ECKD  4096   2347MB    601020
0.0.3227   active      dasdb     94:4    ECKD  4096   2347MB    601020
0.0.3027   n/f         dasdc     94:8    ECKD                   
[root@rtt7 ~]#

Moving back to ASSIGNED.

Comment 15 Jan Stodola 2016-05-12 10:09:32 UTC
Created attachment 1156625 [details]
storage.log

Comment 18 Jan Stodola 2016-07-18 16:44:49 UTC
Retested with anaconda-21.48.22.79-1.el7 - LDL DASD isn't formatted with CDL during kickstart installation in text mode (ks installation in vnc mode works fine).

Partitioning part of the kickstart file:

bootloader --location=mbr
zerombr
clearpart --all --initlabel --cdl
autopart

Installation logs will be attached, moving to ASSIGNED.

Comment 19 Jan Stodola 2016-07-18 16:45:23 UTC
Created attachment 1181184 [details]
anaconda.log

Comment 20 Jan Stodola 2016-07-18 16:45:45 UTC
Created attachment 1181185 [details]
program.log

Comment 21 Jan Stodola 2016-07-18 16:46:07 UTC
Created attachment 1181186 [details]
storage.log

Comment 24 Samantha N. Bueno 2016-08-19 20:12:58 UTC
https://github.com/rhinstaller/anaconda/pull/742

Comment 27 Jan Stodola 2016-08-29 08:54:51 UTC
Retested with anaconda-21.48.22.86-1.el7 and this issue is fixed, both unformatted and LDL formatted DASD disks are formatted with CDL in text mode.

Thanks, moving to VERIFIED.

Comment 31 errata-xmlrpc 2016-11-03 23:11:05 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/RHEA-2016-2158.html