debian-installer: creation of volume group (LVM) fails if hostname corresponds with an existing device name

Bug #1091788 reported by Dimitri John Ledkov
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
partman-auto-lvm (Debian)
Fix Released
Unknown
partman-auto-lvm (Ubuntu)
Fix Released
High
Unassigned
Precise
Fix Released
Medium
Dimitri John Ledkov
Raring
Fix Released
High
Unassigned

Bug Description

[Impact]

 * Auto LVM recipe fails to install, if hostname matches one of existing volume group names or devices under /dev/

[Test Case]

 * Do not preseed default VG name & specify a hostname as clashing with a device under /dev/, e.g. "port". Before the installation fails, now "port-vg" VG name is used.

 * Specify a clashing default VG name, e.g. port. Before the installation fails, now a message appears that "This name is in use already" and asks to select a different one.

[Regression Potential]

 * Some systems may expect default VG group name to match the hostname exactly. In those cases "partman-auto-lvm/new_vg_name" should be preseeded explicitly to an expected value.

Changed in partman-auto-lvm (Ubuntu Precise):
status: New → Triaged
Changed in partman-auto-lvm (Ubuntu Raring):
status: New → Triaged
Changed in partman-auto-lvm (Ubuntu Precise):
importance: Undecided → Medium
Changed in partman-auto-lvm (Ubuntu Raring):
importance: Undecided → High
assignee: nobody → Dmitrijs Ledkovs (xnox)
Changed in partman-auto-lvm (Ubuntu Precise):
assignee: nobody → Dmitrijs Ledkovs (xnox)
Changed in partman-auto-lvm (Debian):
importance: Undecided → Unknown
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

The simple solution to this bug is to preseed: "partman-auto-lvm/new_vg_name" with a sensible name.
Nonetheless, I will make auto-generated vg name to be more safe.

Changed in partman-auto-lvm (Ubuntu Raring):
status: Triaged → Opinion
status: Opinion → Fix Committed
assignee: Dmitrijs Ledkovs (xnox) → nobody
Changed in partman-auto-lvm (Ubuntu Precise):
status: Triaged → In Progress
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

I'm not uploading this into precise yet, because of pending sru verification bug 964957.

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package partman-auto-lvm - 46ubuntu2

---------------
partman-auto-lvm (46ubuntu2) raring; urgency=low

  * Append "-vg" to VG names derived from hostname. (LP: #1091788)
  * Ask for a different VG name, if it clashes with a device name.
 -- Dmitrijs Ledkovs <email address hidden> Fri, 04 Jan 2013 18:33:47 +0000

Changed in partman-auto-lvm (Ubuntu Raring):
status: Fix Committed → Fix Released
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading partman-auto-lvm_42ubuntu2.3.dsc: done.
  Uploading partman-auto-lvm_42ubuntu2.3.tar.gz: done.
  Uploading partman-auto-lvm_42ubuntu2.3_source.changes: done.
Successfully uploaded packages.

Next, a member of the SRU team needs to review and accept this package for publication into precise-proposed pocket.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Dmitrijs, or anyone else affected,

Accepted partman-auto-lvm into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/partman-auto-lvm/42ubuntu2.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in partman-auto-lvm (Ubuntu Precise):
status: In Progress → Fix Committed
tags: added: verification-needed
Changed in partman-auto-lvm (Debian):
status: New → Fix Released
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote : [partman-auto-lvm/precise] verification still needed

The fix for this bug has been awaiting testing feedback in the -proposed repository for precise for more than 90 days. Please test this fix and update the bug appropriately with the results. In the event that the fix for this bug is still not verified 15 days from now, the package will be removed from the -proposed repository.

tags: added: removal-candidate
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Verified using mini.iso from precise-proposed, booted with apt-setup/proposed=true to get the new installer component. The volume group name is used with "-vg" suffix, and alternative vg names are requested if clashing one is specified (either via preseed, or in expert mode).

tags: added: verification-done
removed: verification-needed
Revision history for this message
Colin Watson (cjwatson) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package partman-auto-lvm - 42ubuntu2.3

---------------
partman-auto-lvm (42ubuntu2.3) precise; urgency=low

  * Append "-vg" to VG names derived from hostname. (LP: #1091788)
  * Ask for a different VG name, if it clashes with a device name.
 -- Dmitrijs Ledkovs <email address hidden> Wed, 03 Apr 2013 12:24:29 +0100

Changed in partman-auto-lvm (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.