Bug 879702 - enabling lvm encryption while adding a new lv can prevent growing the vg to fit the new lv
Summary: enabling lvm encryption while adding a new lv can prevent growing the vg to f...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Lehman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-23 19:30 UTC by Steve Tyler
Modified: 2012-12-06 07:28 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-06 07:28:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
screenshot showing 4 MB root volume (72.66 KB, image/png)
2012-11-23 19:30 UTC, Steve Tyler
no flags Details
anaconda-tb-all.log log file corresponding to reproducer. (670.03 KB, text/plain)
2012-11-23 19:51 UTC, Steve Tyler
no flags Details
anaconda-tb-1NhmJb with PayloadInstallError: rsync exited with code 12 (752.80 KB, text/plain)
2012-11-23 20:13 UTC, Steve Tyler
no flags Details

Description Steve Tyler 2012-11-23 19:30:59 UTC
Created attachment 650623 [details]
screenshot showing 4 MB root volume

Description of problem:
With encryption enabled, the root volume may be created with 4 MB capacity instead of 3000 MB capacity even when ample disk space is available.

Version-Release number of selected component (if applicable):
anaconda-0:18.29.2-1.fc18.x86_64
Fedora-18-Beta-x86_64-Live-Desktop.iso (RC1)

How reproducible:
Always.

Steps to Reproduce:

Create 12 GB empty disc image:
$ qemu-img create f18-test-3.img 12G

Start installer from Live CD:
$ qemu-kvm -m 2048 -hda f18-test-3.img -cdrom ~/xfr/fedora/F18/F18-Beta/RC1/Fedora-18-Beta-x86_64-Live-Desktop.iso -usb -vga qxl -boot menu=on -usbdevice mouse

Click Installation Destination.
Check "Encrypt my data. ..."
Click Continue.
Check "Let me customize ..."
Click Continue.
Click to auto-create mount points.
Click "+" Customize to expand.
Click Root to select.
Uncheck Encrypt.
Click Root to select.
Click "-" to remove.
Click "+' to add.
Enter "/" for mount point.
Enter 3000 for capacity.
Click Add mount point.
  
Actual results:
Root volume is created with 4 MB capacity.
See attached screenshot.

Expected results:
Root volume is created with 3000 MB capacity.

Additional info:
Observed while verifying the fix for:
Bug 874714 - AttributeError: 'LUKSDevice' object has no attribute 'disk'

Comment 1 Steve Tyler 2012-11-23 19:51:31 UTC
Created attachment 650650 [details]
anaconda-tb-all.log log file corresponding to reproducer.

This was captured with:
# pkill -USR2 -o anaconda

Comment 2 Steve Tyler 2012-11-23 20:06:33 UTC
(In reply to comment #1)
> Created attachment 650650 [details]
> anaconda-tb-all.log log file corresponding to reproducer.
> 
> This was captured with:
> # pkill -USR2 -o anaconda

... after entering a LUKS passphrase and returning to the Installation Summary.

The Installation Destination link did not show any errors.
The install failed at
"Installing software 1%"
with
"rsync exited with code 12".

Comment 3 Steve Tyler 2012-11-23 20:13:30 UTC
Created attachment 650651 [details]
anaconda-tb-1NhmJb with PayloadInstallError: rsync exited with code 12

Comment 4 David Lehman 2012-11-27 21:54:54 UTC
I have a patch. Once I've tested it I'll send it off for review.

Meanwhile, you can work around this by toggling encryption in a separate operation. As of now, encryption applies to the entire vg -- not individual lvs.

Comment 5 David Lehman 2012-11-28 21:38:17 UTC
I realize now that your workflow was different from what I inferred from the logs.

There are two things going on here:

1) new device defaults are overriding setting in an already-defined container
2) there are issues with management of containers while also enabling encryption

I have a patch for each which I have tested and will soon post for review.

Comment 6 Fedora Update System 2012-12-02 00:27:48 UTC
pykickstart-1.99.22-1.fc18, anaconda-18.34-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/FEDORA-2012-19380/pykickstart-1.99.22-1.fc18,anaconda-18.34-1.fc18

Comment 7 Fedora Update System 2012-12-02 19:27:31 UTC
Package pykickstart-1.99.22-1.fc18, anaconda-18.34-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pykickstart-1.99.22-1.fc18 anaconda-18.34-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-19380/pykickstart-1.99.22-1.fc18,anaconda-18.34-1.fc18
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2012-12-05 23:12:31 UTC
Package pykickstart-1.99.22-1.fc18, anaconda-18.35-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pykickstart-1.99.22-1.fc18 anaconda-18.35-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-19380/pykickstart-1.99.22-1.fc18,anaconda-18.35-1.fc18
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2012-12-06 07:28:26 UTC
pykickstart-1.99.22-1.fc18, anaconda-18.35-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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