Merge "Stop using is_agent_down in agents_db"

This commit is contained in:
Jenkins 2017-09-19 02:56:16 +00:00 committed by Gerrit Code Review
commit 88008fc4ee
1 changed files with 0 additions and 11 deletions

View File

@ -15,7 +15,6 @@
import datetime
import debtcollector
from eventlet import greenthread
from neutron_lib.api import converters
from neutron_lib.callbacks import events
@ -167,16 +166,6 @@ class AgentDbMixin(ext_agent.AgentPluginBase, AgentAvailabilityZoneMixin):
{'agent_type': agent_type, 'agent_id': agent.id})
return agent
@debtcollector.removals.remove(
message="This will be removed in the future. "
"Please use 'neutron.agent.common.utils.is_agent_down' "
"instead.",
version='ocata'
)
@staticmethod
def is_agent_down(heart_beat_time):
return utils.is_agent_down(heart_beat_time)
@staticmethod
def is_agent_considered_for_versions(agent_dict):
return not timeutils.is_older_than(agent_dict['heartbeat_timestamp'],