It is possible to assign more disk space to filesystems than physical disk has

Bug #1517663 reported by Richard Berwald
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Medium
Dmitry Guryanov
Mitaka
Won't Fix
Medium
Fuel Python (Deprecated)

Bug Description

Using the fuel api it is possible to upload a disk configuration that gets used by Fuel but leads to a misconfiguration.
The resulting configuration has allocated more disk space to the filesystems than physically available on the disk.

Configuration:

Uploaded via API:
[
    {
        "name": "vda",
        "size": 101708,
        "id": "disk/by-path/pci-0000: 00: 06.0-virtio-pci-virtio3",
        "volumes": [
            {
                "size": 101708,
                "name": "os",
                "keep_data": "False"
            }
        ],
        "extra": []
    }
]

Resulting disk configuration:
- extra: []
  id: disk/by-path/pci-0000:00:06.0-virtio-pci-virtio3
  name: vda
  size: 101708
  volumes:
  - keep_data: false
    name: logs
    size: 10240
  - keep_data: false
    name: mysql
    size: 20480
  - keep_data: false
    name: os
    size: 101708

See attached screenshot for disk configuration of node.

The expected behaviour would be that Fuel will give an error.

[root@fuel-70 ~]# fuel fuel-version
api: '1.0'
astute_sha: 6c5b73f93e24cc781c809db9159927655ced5012
auth_required: true
build_id: '301'
build_number: '301'
feature_groups:
- experimental
- mirantis
fuel-agent_sha: 50e90af6e3d560e9085ff71d2950cfbcca91af67
fuel-library_sha: 5d50055aeca1dd0dc53b43825dc4c8f7780be9dd
fuel-nailgun-agent_sha: d7027952870a35db8dc52f185bb1158cdd3d1ebd
fuel-ostf_sha: 2cd967dccd66cfc3a0abd6af9f31e5b4d150a11c
fuelmain_sha: a65d453215edb0284a2e4761be7a156bb5627677
nailgun_sha: 4162b0c15adb425b37608c787944d1983f543aa8
openstack_version: 2015.1.0-7.0
production: docker
python-fuelclient_sha: 486bde57cda1badb68f915f66c61b544108606f3
release: '7.0'
release_versions:
  2015.1.0-7.0:
    VERSION:
      api: '1.0'
      astute_sha: 6c5b73f93e24cc781c809db9159927655ced5012
      build_id: '301'
      build_number: '301'
      feature_groups:
      - experimental
      - mirantis
      fuel-agent_sha: 50e90af6e3d560e9085ff71d2950cfbcca91af67
      fuel-library_sha: 5d50055aeca1dd0dc53b43825dc4c8f7780be9dd
      fuel-nailgun-agent_sha: d7027952870a35db8dc52f185bb1158cdd3d1ebd
      fuel-ostf_sha: 2cd967dccd66cfc3a0abd6af9f31e5b4d150a11c
      fuelmain_sha: a65d453215edb0284a2e4761be7a156bb5627677
      nailgun_sha: 4162b0c15adb425b37608c787944d1983f543aa8
      openstack_version: 2015.1.0-7.0
      production: docker
      python-fuelclient_sha: 486bde57cda1badb68f915f66c61b544108606f3
      release: '7.0'

Revision history for this message
Richard Berwald (rberwald) wrote :
Ilya Kutukov (ikutukov)
Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
tags: added: area-python
Changed in fuel:
importance: Undecided → Medium
milestone: none → 8.0-updates
status: New → Confirmed
Ilya Kutukov (ikutukov)
Changed in fuel:
milestone: 8.0-updates → 8.0
Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

We passed SCF in 8.0. Moving the bug to 9.0.

Changed in fuel:
milestone: 8.0 → 9.0
Dmitry Pyzhov (dpyzhov)
tags: added: module-volumes
Revision history for this message
Bug Checker Bot (bug-checker) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

actual result

steps to reproduce

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
Revision history for this message
Dmitry Guryanov (dguryanov) wrote :

Hi, Richard. I've tried to reproduce this problem and it seems it has already been solved. Now api returns error

{'errors': [],
 'message': "Not enough free space on disk: {u'id': u'sda', u'extra': [u'disk/by-id/ata-VBOX_HARDDISK_VBOX-MIRANTIS-VHD0'], u'name': u'sda', u'volumes': [{u'keep_data': False, u'name': u'os', u'size': 60971}, {u'keep_data': False, u'name': u'os2', u'size': 10000}], u'size': 64971}"}

Revision history for this message
Dmitry Guryanov (dguryanov) wrote :

Could you, please, check if it works in your environment?

Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

Bug is incomplete status for a month. Changing status to invalid. Please reopen the issue if you have more data.

Dmitry Pyzhov (dpyzhov)
no longer affects: fuel/newton
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

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