Bug 1163887

Summary: shrinking partition to an absolutely minimum size results in an error
Product: Red Hat Enterprise Linux 7 Reporter: David Lehman <dlehman>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.1CC: anaconda-maint-list, bcl, dlehman, jvavra, mbanas, mhruscak, pholica, vpodzime
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-blivet-0.61.10-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1163410 Environment:
Last Closed: 2015-09-21 18:33: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: 1163410, 1258457    
Bug Blocks: 1186677    
Attachments:
Description Flags
previous_sys
none
inst
none
inst2
none
anaconda.log
none
anaconda-yum.conf
none
attach_logs
none
ifcfg.log
none
libuser._tgc8X
none
packaging.log
none
program.log
none
storage.log
none
storage.state
none
syslog
none
X.log none

Description David Lehman 2014-11-13 16:00:31 UTC
+++ This bug was initially created as a clone of Bug #1163410 +++

Description of problem:
This is split from bug 1162215 comment 13. The errors are here:
http://paste.fedoraproject.org/149421/64036014/
http://paste.fedoraproject.org/149440/44178141/

This updates.img was used:
https://dlehman.fedorapeople.org/updates/updates-1162215.1.img

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

How reproducible:
tried once

Steps to Reproduce:
1. apply updates.img
2. try to resize partition to a minimum size
3. error during beginning of the installation

--- Additional comment from David Lehman on 2014-11-12 16:52:42 EST ---

Here's an updates image with a proposed fix. It includes the content from 1162215 also.

  https://dlehman.fedorapeople.org/updates/updates-1163410.0.img

Let me know how it goes.

--- Additional comment from Kamil Páral on 2014-11-13 05:10:21 EST ---

Almost. I tried a standard ext4 partition, and LV, both guided and custom part, and everything worked. But I hit bug 1163694 while playing with guided part shrinking. I don't know whether it was caused by this updates.img or it is present in anaconda in general.

Comment 3 David Cantrell 2015-03-13 18:11:06 UTC
*** Bug 1191952 has been marked as a duplicate of this bug. ***

Comment 6 Marek Hruscak 2015-09-17 14:10:29 UTC
I have tried it. Still not working.

My steps to reproduce:
1. pripare VM machine with 13.3G disk
2. install minimal on /dev/vda1 - xfs - 500M; /dev/vda2 - ext4 - other
3. start new installation, check 'Configure automatically+aditional space'
4. set lowest possible(note that it is lower than sum of /boot+used space by previous system)
5. start installation

Please, look at the imgs in attachment.

Comment 7 Marek Hruscak 2015-09-17 14:11:57 UTC
Created attachment 1074466 [details]
previous_sys

Comment 8 Marek Hruscak 2015-09-17 14:12:37 UTC
Created attachment 1074467 [details]
inst

Comment 9 Marek Hruscak 2015-09-17 14:13:03 UTC
Created attachment 1074468 [details]
inst2

Comment 10 David Lehman 2015-09-17 15:20:03 UTC
Please attach the logs from /tmp to the bug report.

Comment 11 Marek Hruscak 2015-09-17 16:22:43 UTC
Created attachment 1074503 [details]
anaconda.log

Comment 12 Marek Hruscak 2015-09-17 16:22:45 UTC
Created attachment 1074504 [details]
anaconda-yum.conf

Comment 13 Marek Hruscak 2015-09-17 16:22:48 UTC
Created attachment 1074505 [details]
attach_logs

Comment 14 Marek Hruscak 2015-09-17 16:22:49 UTC
Created attachment 1074506 [details]
ifcfg.log

Comment 15 Marek Hruscak 2015-09-17 16:22:51 UTC
Created attachment 1074507 [details]
libuser._tgc8X

Comment 16 Marek Hruscak 2015-09-17 16:22:55 UTC
Created attachment 1074508 [details]
packaging.log

Comment 17 Marek Hruscak 2015-09-17 16:22:58 UTC
Created attachment 1074509 [details]
program.log

Comment 18 Marek Hruscak 2015-09-17 16:23:01 UTC
Created attachment 1074510 [details]
storage.log

Comment 19 Marek Hruscak 2015-09-17 16:23:03 UTC
Created attachment 1074511 [details]
storage.state

Comment 20 Marek Hruscak 2015-09-17 16:23:06 UTC
Created attachment 1074512 [details]
syslog

Comment 21 Marek Hruscak 2015-09-17 16:23:08 UTC
Created attachment 1074513 [details]
X.log

Comment 22 David Lehman 2015-09-17 17:32:24 UTC
You didn't attach the screenshot showing the minimum size of vda1 being too low. I don't think we even support resizing xfs.

The error you see when resizing vda2 is known bug 1251396, which should be fixed in python-blivet-0.61.15.28-1.