Quotas not preventing instances from getting created

Bug #1155317 reported by Ed Cranford
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Undecided
Dan Nguyen

Bug Description

Running ./redstack int-tests in a test VM, the CreateInstanceQuotaTests, test_create_instances_total_volume_exceeded and test_create_too_many_instances fail to cause 413/OverLimit errors. The instances are created.

https://gist.github.com/ed-/ce90447b8c6b38890bb8
are the results cropped to just the two tests I mentioned.
The captured stdout is just from printing the variable new_quotas right before the assert_raises.

description: updated
Revision history for this message
Dan Nguyen (daniel-a-nguyen) wrote :

I did experience this issue as well. So after disabling the tests.

...

@test(enabled=False, depends_on_classes=[InstanceSetup],
      groups=[GROUP, GROUP_START, GROUP_START_SIMPLE, 'dbaas_quotas'],
      runs_after_groups=[tests.PRE_INSTANCES])
class CreateInstanceQuotaTest(unittest.TestCase):

...

I was able to run the tests up until a certain point.

...

WaitForGuestInstallationToFinish
        test_instance_created

...

ubuntu@ubuntu:~/reddwarf-integration/scripts$ ./redstack nova-client list
+--------------------------------------+---------------------------------+---------+------------------+
| ID | Name | Status | Networks |
+--------------------------------------+---------------------------------+---------+------------------+
| d1b2a423-9fa6-45c3-a31d-4ec99a4f441f | TEST_2013-03-14 16:56:21.476277 | SHUTOFF | private=10.0.0.3 |
+--------------------------------------+---------------------------------+---------+------------------+

Instance of the guest agent decided to self destruct ?

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

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

Changed in reddwarf:
assignee: nobody → Dan Nguyen (daniel-a-nguyen)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in reddwarf:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to reddwarf (master)

Reviewed: https://review.openstack.org/24857
Committed: http://github.com/stackforge/reddwarf/commit/a076b182c761e912221c2c5b808a8b04c60ea71b
Submitter: Jenkins
Branch: master

commit a076b182c761e912221c2c5b808a8b04c60ea71b
Author: daniel-a-nguyen <email address hidden>
Date: Tue Mar 19 16:27:40 2013 -0700

    Addresses failing quota int-tests

    Refactored tests following comments
    Needed to update tearDown method

    Change-Id: I2ae65a01f32b7a7afe779d8b54c019c033ac4889
    Fixes: bug #1155317

Thierry Carrez (ttx)
Changed in trove:
milestone: none → havana-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: havana-2 → 2013.2
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.