Skip to content

Commit

Permalink
Stop agent from polling for deployables by host.
Browse files Browse the repository at this point in the history
This was causing errors in cyborg-cond service, because
the deployables table does not have a host field anymore.

Change-Id: I3833ba90ede790550ac0b04d058396f71cadb92d
  • Loading branch information
ns-sundar committed Nov 23, 2018
1 parent 5576d38 commit adb4f69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cyborg/agent/resource_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ def create_deployable(fpgas, bdf, acc_id, parent_uuid=None):
# NOTE(Shaohe Feng) need more agreement on how to keep consistency.
fpgas = self._get_fpga_devices()
bdfs = set(fpgas.keys())
deployables = self.conductor_api.deployable_get_by_host(
context, self.host)
# HACK Needs update. This isn't the logic we want anyway.
deployables = None
# self.conductor_api.deployable_get_by_host(context, self.host)

# NOTE(Shaohe Feng) when no "address" in deployable?
accls = dict([(v["address"], v) for v in deployables])
Expand Down

0 comments on commit adb4f69

Please sign in to comment.