Ceph test_discard_bytes unit test takes up too much ram and disk space

Bug #1417293 reported by Alex Meade
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Alex Meade

Bug Description

The test is using around 512 MB of ram and disk space due to it creating strings of great length and writing them to a file. This is because the test is using the default 128MB chunk size for volumes.

The ramifications of this bug are that you need to run the unit tests on a node with excess of 512MB of free ram and disk.

Alex Meade (alex-meade)
Changed in cinder:
assignee: nobody → Alex Meade (alex-meade)
status: New → In Progress
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

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

Reviewed: https://review.openstack.org/154122
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=b1c5d16055b3aad6d7ae6bb6df90c645c3897075
Submitter: Jenkins
Branch: master

commit b1c5d16055b3aad6d7ae6bb6df90c645c3897075
Author: Alex Meade <email address hidden>
Date: Mon Feb 2 16:18:15 2015 -0500

    Limit ram and disk used by ceph backup tests

    The test_discard_bytes test in
    cinder/tests/test_backup_ceph.py uses a lot of
    ram and disk space since it tests the ceph driver with
    the default chunk size of 128Mi. This patch lowers it
    to use 1024 bytes instead.

    Closes-bug: #1417293

    Change-Id: I387650bc5ffe57ad8a4cacd1fca5d039fec38eed

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