Fault wrapper fails to communicate the issue

Bug #803056 reported by Dan Prince
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Titan

Bug Description

When an upstream failure occurs I get the following error in the nova-api.log file:

2011-06-28 16:18:21,514 INFO nova.api.openstack.wsgi [-] POST http://172.19.0.3:8774/v1.0/servers
2011-06-28 16:18:21,600 INFO nova.api.openstack.wsgi [-] http://172.19.0.3:8774/v1.0/servers returned a fault: 'Fault' object has no attribute 'status_int'

---

This seems to mask the actual error message that I'm hitting.

Revision history for this message
Chris Blumentritt (cblument) wrote :

dpkg -l | grep nova
ii nova-api 2011.3~bzr1218-0rs1-build200 OpenStack Compute - API frontend
ii nova-common 2011.3~bzr1218-0rs1-build200 OpenStack Compute - common files
ii nova-doc 2011.3~bzr1218-0rs1-build200 OpenStack Compute - documetation
ii nova-network 2011.3~bzr1218-0rs1-build200 OpenStack Compute - Network manager
ii nova-scheduler 2011.3~bzr1218-0rs1-build200 OpenStack Compute - virtual machine scheduler
ii python-nova 2011.3~bzr1218-0rs1-build200 OpenStack Compute Python libraries

root@d64-controller:~# nova flavor-list
+----+-----------+-----------+------+----------+-------+------------+----------+
| ID | Name | Memory_MB | Swap | Local_GB | VCPUs | RXTX_Quota | RXTX_Cap |
+----+-----------+-----------+------+----------+-------+------------+----------+
| 1 | m1.tiny | 512 | | 0 | | | |
| 2 | m1.small | 2048 | | 20 | | | |
| 3 | m1.medium | 4096 | | 40 | | | |
| 4 | m1.large | 8192 | | 80 | | | |
| 5 | m1.xlarge | 16384 | | 160 | | | |
+----+-----------+-----------+------+----------+-------+------------+----------+
root@d64-controller:~# nova image-list
+----+----------------+--------+
| ID | Name | Status |
+----+----------------+--------+
| 1 | squeeze-110613 | ACTIVE |
+----+----------------+--------+
root@d64-controller:~# glance details 1
Found 1 public images...
================================================================================
URI: http://0.0.0.0/images/1
Id: 1
Public: Yes
Name: squeeze-110613
Status: active
Size: 295350242
Location: file:///var/lib/glance/images/1
Disk format: vhd
Container format: ovf
================================================================================
root@d64-controller:~# vi /etc/glance/glance-api.conf
root@d64-controller:~# vi /etc/glance/glance-registry.conf
root@d64-controller:~# nova boot --flavor 1 --image 1 test_image
Cannot find requested image 1: 'NoneType' object does not support item assignment (HTTP 400)

From nova-api.log
2011-06-28 16:04:11,723 DEBUG nova.api.openstack.wsgi [-] http://10.0.1.221:8774/v1.0/servers returned a fault: 'Fault' object has no attribute 'status_int' from (pid=8004) __call__ /usr/lib/pymodules/python2.6/nova/api/openstack/wsgi.py:389

Revision history for this message
Brian Waldon (bcwaldon) wrote :

Chris: I've actually got a fix for your issue. Can you file this as a bug?

Revision history for this message
Chris Blumentritt (cblument) wrote :

Brian: Isn't this the bug that is filed for this or is it a separate issue?

Revision history for this message
Brian Waldon (bcwaldon) wrote :

It's two issues. One is a failure of the fault wrapper to communicate the issue. That is this bug. The other problem is the failure itself. That would be a yet-to-be-filed bug. Here's the fix for your bug: https://code.launchpad.net/~rackspace-titan/glance/filters-None

Revision history for this message
Thierry Carrez (ttx) wrote :

The root cause is bug 803188 (fixed in trunk). This bug is to track the fault wrapper failure.

summary: - 'Fault' object has no attribute 'status_int'
+ Fault wrapper fails to communicate the issue
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Brian Waldon (bcwaldon)
Changed in nova:
assignee: nobody → Titan (rackspace-titan)
Revision history for this message
Brian Waldon (bcwaldon) wrote :

I'm pretty sure this bug was fixed in rev 1291, but didn't get linked to the branch: https://code.launchpad.net/~rackspace-titan/nova/fix_faults

Changed in nova:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-3
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-3 → 2011.3
status: Fix Committed → Fix Released
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.