nova returns no status code for state scheduling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Ken Pepple |
Bug Description
We are trying to run new instances through AWS JAVA SDK. the instance starts normally, but the response from the server breaks the API . Here is the exact exception:
578 [main] ERROR com.amazonaws.
java.lang.
at java.lang.
at java.lang.
at java.lang.
at com.amazonaws.
at com.amazonaws.
at com.amazonaws.
at com.amazonaws.
at com.amazonaws.
at com.amazonaws.
at com.amazonaws.
at com.amazonaws.
at com.amazonaws.
at com.amazonaws.
at com.amazonaws.
at com.amazonaws.
at com.amazonaws.
at com.sap.
xmlns="http://
The exact problem in the response that breaks the API is that the return status code does not contain any number it is just <code/> and this doesn't pass the integer parser in the AWS SDK.
could you please change the behavior so that a status code is returned for every status. Thanks
Related branches
- Rick Harris (community): Approve
- Jay Pipes (community): Approve
-
Diff: 11 lines (+1/-0)1 file modifiednova/compute/api.py (+1/-0)
Changed in nova: | |
assignee: | nobody → Ken Pepple (ken-pepple) |
status: | New → In Progress |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |
Hi Ken, api.py"
I see you've taken this bug also :)
As it took some time we did some investigation and found out that the problem comes from the default options set at the beginning. They are located in "nova/compute/
We added a line like this:
.................
'reservati on_id': utils.generate_ uid('r' ),
'image_ id': image_id,
'kernel_ id': kernel_id or '',
'ramdisk_ id': ramdisk_id or '',
'state_ description' : 'scheduling',
base_options = {
+++ 'state': '0',
.................
after that every new instance that we started had the code "0" for the scheduling state.
As I am not sure this is the correct way to fix it I am only suggesting here the method we found.