nova command of host-descrbe should display vg disk size in xen hypervisor when libvirt_images_type is lvm

Bug #1098116 reported by zhoudonshu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
zhoudonshu

Bug Description

In my environmont:
  nova version: the newest git master branch
  centos5.4 + libvirt + xen
   libvirt_images_type=lvm
   libvirt_images_volume_group=new_data

used command : nova host-describe hostname , I found the disk_gb result is not vg disk size but dom0 disk size

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/19381

Changed in nova:
assignee: nobody → zhoudonshu (zhoudongshu)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/19381
Committed: http://github.com/openstack/nova/commit/9d3f524c6926edfbff5f62308c8d582edcc7067f
Submitter: Jenkins
Branch: master

commit 9d3f524c6926edfbff5f62308c8d582edcc7067f
Author: zhoudongshu <email address hidden>
Date: Thu Jan 10 20:23:49 2013 +0800

    Correct the calculating of disk size when using lvm disk backend.

    Currently, disk space size calculating in nova doesn't consider the
    situation when lvm is used as disk backend. Thus both used and total
    disk size are not correct when we use lvm to create instance. This
    patch fixes this problem by using 'vgs' to get disk size in such case.

    Fixes LP #1098116.

    Change-Id: I0e86649cfde83a154d0a4c034ca52abe73384e73

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