[cinder ] Cinder creates volumes with overall size larger than OSD node capacity

Bug #1449010 reported by Kyrylo Romanenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Status tracked in 10.0.x
10.0.x
In Progress
Medium
Ivan Kolodyazhny
6.1.x
Won't Fix
Medium
Ivan Kolodyazhny
7.0.x
Won't Fix
Medium
Yuriy Nesenenko
8.0.x
Won't Fix
Medium
MOS Cinder
9.x
Won't Fix
Medium
MOS Cinder

Bug Description

Steps:

1. Prepare environment:
Nodes: 1 storage with CephOSD (Replication Factor=1), 1 controller, 1 compute
Neutron with VLAN, Ubuntu 14.04.1.

2. Check sizes of storage volumes on storage node:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/os-root 15G 1.6G 13G 12% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 2.0G 12K 2.0G 1% /dev
tmpfs 396M 1.8M 394M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 0 2.0G 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/vda3 196M 36M 151M 19% /boot
/dev/vdc4 50G 2.1G 48G 5% /var/lib/ceph/osd/ceph-0
/dev/vdb4 50G 2.1G 48G 5% /var/lib/ceph/osd/ceph-1

Note that total available space of Ceph volumes is 48+48=96 GB

3. Create volumes:
# cinder create 60 --display-name VOLUME-1
# cinder create 60 --display-name VOLUME-2
# cinder create 60 --display-name VOLUME-3

Wait a minute between every volume creation.

4. Check that volumes are created.
# cinder list
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| 298f1629-9ffd-4169-b9ac-4937cf5ac52e | available | VOLUME-2 | 60 | None | false | |
| a6a77d4c-7ecf-402e-90b8-c88dec8703b6 | available | VOLUME-3 | 60 | None | false | |
| ab7953fe-6821-4238-8cb0-811b0c7f839e | available | VOLUME-1 | 60 | None | false | |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+

Expected that total size of created volumes can not be more than CephOSDs storage size.
Actually we created volumes of 180 GB totally, that is larger than available 96 GB.

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "6.1"
  openstack_version: "2014.2.2-6.1"
  api: "1.0"
  build_number: "338"
  build_id: "2015-04-22_22-54-31"
  nailgun_sha: "4972120d5a5d41efe9be2d10b81329adf3258a78"
  python-fuelclient_sha: "2b311b3b82a1e2df1dc3484a0f37e282273cd988"
  astute_sha: "5be3506e6a4f8b7f0a858db2e162dabcc07347df"
  fuel-library_sha: "9b26cb98e7ceb905fe85b744eee2f808f7e4737b"
  fuel-ostf_sha: "dcda5a869d1780efc265b6f6b7b8c14c8324a68b"
  fuelmain_sha: "2f8be90209e709810674f73abb02bb54a700ce5e"

Diagnostic snapshot: https://drive.google.com/file/d/0B6E70aHvCcRQWUZsalpQZUpUS0E/view?usp=sharing

Changed in mos:
assignee: nobody → MOS Cinder (mos-cinder)
Changed in mos:
status: New → Confirmed
Ivan Kolodyazhny (e0ne)
Changed in mos:
milestone: none → 6.1
importance: Undecided → High
assignee: MOS Cinder (mos-cinder) → Ivan Kolodyazhny (e0ne)
Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :

Cinder uses thin provisioning for Ceph. It means it allocates only needed space for volume in a storage backend. So I propose to make it medium

Ivan Kolodyazhny (e0ne)
Changed in mos:
status: Confirmed → In Progress
Ivan Kolodyazhny (e0ne)
Changed in mos:
importance: High → Medium
Changed in mos:
milestone: 6.1 → 7.0
Mike Scherbakov (mihgen)
Changed in mos:
milestone: 7.0 → 6.1
Ivan Kolodyazhny (e0ne)
Changed in mos:
status: In Progress → Won't Fix
Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

Bug still reproduced qith the same steps and configuration on 7.0

# cat /etc/fuel/version.yaml
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "7.0"
  openstack_version: "2014.2.2-7.0"
  api: "1.0"
  build_number: "57"
  build_id: "2015-07-20_04-49-06"
  nailgun_sha: "d1c2616d4ccd1feed81bef0dda885834c166ea87"
  python-fuelclient_sha: "134d15b69781ed1d92d5dfcb338d041e3d3262e9"
  fuel-agent_sha: "8ef6b9810feb8f2a0f9ec8427bb54ae9c40efda0"
  astute_sha: "305a2a0a823591de8e132da2e7157afc7f20d317"
  fuel-library_sha: "7d015ee8864850c83725b290d84e13b879adfef8"
  fuel-ostf_sha: "19ec156cf286871788b0f0fe4c938049ad5c25b2"
  fuelmain_sha: "22a534ba9c848d792b44d6336be3ab6163ad15be"

tags: added: area-cinder
removed: cinder
Ivan Kolodyazhny (e0ne)
tags: added: move-to-10.0
tags: added: 10.0-reviewed
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.