Error 500 occurs when requesting API simultaneously
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Yonghyun Kim |
Bug Description
Description
===========
If you make multiple reboot API requests simultaneously, a 500 error response will occur.
Steps to reproduce
==================
test_reboot.sh
-------
#!/bin/bash
INSTANCE=$1
for i in $(seq 1 2)
do
echo "reboot instance: $INSTANCE"
openstack server reboot $INSTANCE &
done
-------
run script
-------
$ bash test_reboot.sh
-------
Expected result
===============
I expect a 202 or 409 response to be output.
Actual result
=============
Of the two requests, one was performed normally with a 202 response, and the other responded with a 500 error.
-------
Unexpected API Error. Please report this at http://
<class 'nova.exception
-------
nova-api log
-------
2023-09-25 10:38:05.028 9285 ERROR nova.api.
2023-09-25 10:38:05.038 9285 INFO nova.api.
2023-09-25 10:38:05.039 9285 DEBUG nova.api.
2023-09-25 10:38:05.043 9285 INFO nova.osapi_
-------
Environment
===========
* openstack version: queens
* libvirt + kvm
Changed in nova: | |
assignee: | nobody → Yonghyun Kim (kshusil82) |
description: | updated |
Fix proposed to branch: master /review. opendev. org/c/openstack /nova/+ /896320
Review: https:/