Getting rid of our hack to simulate 404's for instance GETs.

* Fixed a problem with the fake mode config which prevented instances from being deleted.
This commit is contained in:
Tim Simpson 2012-06-21 11:49:30 -05:00
parent ccc4e6b9c5
commit 9e7ec7043d
2 changed files with 4 additions and 7 deletions

View File

@ -72,6 +72,8 @@ agent_heartbeat_time = 10
agent_call_low_timeout = 5
agent_call_high_timeout = 100
server_delete_time_out=10
# ============ notifer queue kombu connection options ========================
notifier_queue_hostname = localhost

View File

@ -81,14 +81,9 @@ def load_simple_instance_server_status(context, db_info):
db_info.server_status = server.status
db_info.addresses = server.addresses
except nova_exceptions.NotFound, e:
db_info.server_status = "ERROR"
db_info.server_status = "SHUTDOWN"
db_info.addresses = {}
#TODO(tim.simpson): This is another notifications hack. If the
# task is delelting, and the compute instance isn't found,
# then assume the delete operation is done and raise an
# exception.
if InstanceTasks.DELETING == db_info.task_status:
raise exception.NotFound(uuid=db_info.id)
# If the compute server is in any of these states we can't perform any