test_flavor_manage.rand_flavor sometimes generates an invalid flavor

Bug #1425763 reported by melanie witt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
melanie witt

Bug Description

The gate-nova-tox-functional job can fail occasionally [1] if rand_flavor happens to generate an invalid flavor, for example one with ram == 0.

2015-02-25 23:10:18,113 INFO [nova.api.openstack.wsgi] HTTP exception thrown: Invalid input received: ram must be >= 1
2015-02-25 23:10:18,115 INFO [nova.osapi_compute.wsgi.server] 127.0.0.1 "POST /v2/openstack/flavors HTTP/1.1" status: 400 len: 304 time: 0.4035170
2015-02-25 23:10:18,117 INFO [nova.wsgi] Stopping WSGI server.
}}}

Traceback (most recent call last):
  File "nova/tests/functional/wsgi/test_flavor_manage.py", line 110, in test_flavor_manage_func
    resp = self.api.api_post('flavors', flav1)
  File "nova/tests/functional/api/client.py", line 168, in api_post
    response = self.api_request(relative_uri, **kwargs)
  File "nova/tests/functional/api/client.py", line 143, in api_request
    response=response)
OpenStackApiException: Unexpected status code

[1] http://logs.openstack.org/18/154718/7/gate/gate-nova-tox-functional/82d4cb1

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

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

Changed in nova:
assignee: nobody → melanie witt (melwitt)
status: New → In Progress
Revision history for this message
melanie witt (melwitt) wrote :
Changed in nova:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by melanie witt (<email address hidden>) on branch: master
Review: https://review.openstack.org/159304
Reason: This got fixed by https://review.openstack.org/#/c/160003/ already

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