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:
parent
ccc4e6b9c5
commit
9e7ec7043d
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user