xenapi: ephemeral disk partitions not filling the whole disk

Bug #1241734 reported by John Garbutt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
John Garbutt

Bug Description

When creating an ephemeral disk, the partition does not quite fill the full disk.

For example:

Model: Xen Virtual Block Device (xvd)
Disk /dev/xvdf: 300GiB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
 1 0.00GiB 286GiB 286GiB primary

Tags: xenserver
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/52684

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/52684
Committed: http://github.com/openstack/nova/commit/c861232d3f13b3687222588e463d6c7223583cf7
Submitter: Jenkins
Branch: master

commit c861232d3f13b3687222588e463d6c7223583cf7
Author: John Garbutt <email address hidden>
Date: Fri Oct 18 18:28:15 2013 +0100

    xenapi: ephemeral disk partition should fill disk

    The current code looks to specify the expected start and finish values
    for the partition. A unit miss match between what nova and parted count
    as a GB seem to cause the difference.

    As we just want to fill the whole disk, we can pass "-0" as the end
    value, to tell parted to extend the partition to the end of the disk.

    Fixes bug 1241734
    Change-Id: Ie4753d9de1e20561b8f96360e879075498a5ef58

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → icehouse-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-1 → 2014.1
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.