rpc.register_opts race in service.py causes NoneType exception
Bug #995328 reported by
Dan Prince
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Dan Prince |
Bug Description
Using the latest Nova Folsom. I'm seeing a race condition where sometimes rpc.register_opts isn't called quick enough on startup causing the following error:
2012-05-06 02:29:24 INFO nova.wsgi [-] Started S3 Objectstore on 172.19.0.3:3333
2012-05-06 02:29:25 AUDIT nova.service [-] SIGTERM received
2012-05-06 02:29:25 INFO nova.wsgi [-] WSGI server has stopped.
2012-05-06 02:29:25 CRITICAL nova [-] 'NoneType' object has no attribute 'rpc_backend'
----
The issue seems to be that 'wait()' gets called while service.start is still running. The issue *only* occurs if you try to use the RPC defaults (as in not specifying rpc_backend in the nova.conf file).
Changed in nova: | |
assignee: | nobody → Dan Prince (dan-prince) |
status: | New → In Progress |
importance: | Undecided → Medium |
importance: | Medium → High |
Changed in nova: | |
milestone: | none → folsom-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-1 → 2012.2 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/7168
Review: https:/