Bug 1240195 - The logical volume for cinder storage is too small
Summary: The logical volume for cinder storage is too small
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: Director
Hardware: Unspecified
OS: Unspecified
medium
urgent
Target Milestone: ---
: 8.0 (Liberty)
Assignee: Giulio Fidente
QA Contact: Udi Kalifon
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-06 07:47 UTC by Udi Kalifon
Modified: 2023-10-06 17:32 UTC (History)
6 users (show)

Fixed In Version: openstack-tripleo-heat-templates-0.8.8-1.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-07 21:38:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 279539 0 None MERGED Increase default Cinder LVM backing file to 10G 2020-12-31 12:36:41 UTC
Red Hat Issue Tracker OSP-29310 0 None None None 2023-10-06 17:32:12 UTC
Red Hat Knowledge Base (Solution) 1758963 0 None None None 2020-07-09 20:27:14 UTC
Red Hat Product Errata RHEA-2016:0604 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 8 director Enhancement Advisory 2016-04-08 01:03:56 UTC

Description Udi Kalifon 2015-07-06 07:47:48 UTC
Description of problem:
I deployed on bare metals. Each controller is a pretty strong machine with 500GB disk space, 12 CPUs and 24GB RAM. Cinder complains that it can't allocate any space, and this also causes many tempest tests to fail. This is the output from pvdisplay and vgdisplay:

[root@overcloud-controller-0 ~]# pvdisplay 
  --- Physical volume ---
  PV Name               /dev/loop2
  VG Name               cinder-volumes
  PV Size               4.88 GiB / not usable 3.00 MiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              1249
  Free PE               225
  Allocated PE          1024
  PV UUID               Lpg1wQ-xeGV-agZx-knEh-iCf3-vcCp-89BXSC
   
[root@overcloud-controller-0 ~]# vgdisplay 
  --- Volume group ---
  VG Name               cinder-volumes
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  140
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                4
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               4.88 GiB
  PE Size               4.00 MiB
  Total PE              1249
  Alloc PE / Size       1024 / 4.00 GiB
  Free  PE / Size       225 / 900.00 MiB
  VG UUID               oIfltY-kmcV-OX1W-gUQx-BZHQ-fGIE-3sk7HG


How reproducible:
100%


Steps to Reproduce:
1. Deploy on bare metals
2. Log in to the controller nodes and run pvdisplay and vgdisplay


Actual results:
The volume group size is 4GB


Expected results:
The disk should be large, in proportion with the available hardware.

Comment 3 Giulio Fidente 2015-07-06 14:26:01 UTC
as a workaround, the loopback device size can be customized adding into static hieradata something like:

  cinder::setup_test_volume::size: 8G

Comment 4 Udi Kalifon 2015-07-06 14:36:33 UTC
I tried to increase the cinder volume on all controller nodes. After logging in to each of them and running "sudo -i" I did this:

# create a 40GB file in /var/lib/cinder/
cd /var/lib/cinder/
dd if=/dev/zero of=cinder-volumes2 bs=102400 count=409600

# add the file to losetup
losetup /dev/loop3 /var/lib/cinder/cinder-volumes2
losetup -l    # just to test that it worked

# create a physical volume
pvcreate /dev/loop3

# extend the logical volume "cinder-volumes" to the new physical volume
vgextend cinder-volumes /dev/loop3

# test that it worked
pvdisplay
vgdisplay

# restart cinder
systemctl restart openstack-cinder-api.service openstack-cinder-scheduler.service openstack-cinder-volume.service

... It didn't quite help me but maybe it will help someone else (I had other problems in my deployment).

Comment 9 Udi Kalifon 2016-03-09 10:34:16 UTC
[root@overcloud-controller-1 ~]# pvdisplay 
  --- Physical volume ---
  PV Name               /dev/loop2
  VG Name               cinder-volumes
  PV Size               10.04 GiB / not usable 4.00 MiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              2569
  Free PE               2569
  Allocated PE          0
  PV UUID               AUrYFi-a3Yf-diqT-WXbb-x4be-L5ph-HRzbD3
   
[root@overcloud-controller-1 ~]# vgdisplay 
  --- Volume group ---
  VG Name               cinder-volumes
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               10.04 GiB
  PE Size               4.00 MiB
  Total PE              2569
  Alloc PE / Size       0 / 0   
  Free  PE / Size       2569 / 10.04 GiB
  VG UUID               XfBbtz-tyYF-ihlv-0Y5G-PBPx-3gbI-yZyCld

Verified on: openstack-tripleo-heat-templates-0.8.9-1.el7ost.noarch

Comment 11 errata-xmlrpc 2016-04-07 21:38:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0604.html


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