Bug 996118 - blivet.reset() opens LUKS devices
Summary: blivet.reset() opens LUKS devices
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 20
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: 2013-08-12 12:51 UTC by Jan Synacek
Modified: 2013-11-06 19:53 UTC (History)
5 users (show)

Fixed In Version: python-blivet-0.20-1
Clone Of:
Environment:
Last Closed: 2013-11-06 19:53:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Reproducer (371 bytes, text/plain)
2013-08-12 12:51 UTC, Jan Synacek
no flags Details

Description Jan Synacek 2013-08-12 12:51:09 UTC
Created attachment 785679 [details]
Reproducer

Description of problem:
blivet.reset() opens LUKS devices. In OpenLMI, this behavior is not acceptable. After I create a LUKS device, I'm expecting the device to be created (if there was not an error) and not opened.


Version-Release number of selected component (if applicable):
python-blivet-0.19-1.fc20.noarch


How reproducible:
Always.


Steps to Reproduce:
1. choose a partition (e.g. /dev/vda12)
2. wipefs -a /dev/vda12 (careful here!!)
3. run the reproducer
4. ls /dev/mapper
5. observe an opened LUKS device in the device mapper


Actual results:
LUKS device is opened.


Expected results:
LUKS device is not opened.

Comment 1 David Lehman 2013-08-13 15:46:05 UTC
I don't see how blivet could possibly open that luks device. What is the filename in /dev/mapper/?

It would be helpful if you could use the code from examples/list_devices.py to set up logging so you could attach /tmp/blivet.log to these bug reports.

Comment 2 David Lehman 2013-08-13 15:48:26 UTC
Now I can see how blivet is getting the passphrase. I'll make that code only run in installer mode.

Comment 3 Fedora End Of Life 2013-09-16 16:53:57 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle.
Changing version to '20'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora20


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