Skip to content

Commit

Permalink
add debug logs to state->update
Browse files Browse the repository at this point in the history
Signed-off-by: Leonid Chernin <[email protected]>
  • Loading branch information
leonidc committed Jan 13, 2025
1 parent e7153ce commit da91e06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions control/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,14 +1079,16 @@ def update(self) -> bool:
host_prefix = GatewayState.build_host_key("nqn", None)
subsystem_prefix = GatewayState.build_subsystem_key("nqn")
for key in changed.keys():
self.logger.info(f"Changed key: {key} local-state: {local_state_dict[key]}"
f" omap-state: {omap_state_dict[key]}")
if key.startswith(ns_prefix):
(should_process, new_lb_grp_id) = self.namespace_only_lb_group_id_changed(
local_state_dict[key],
omap_state_dict[key])
if should_process:
assert new_lb_grp_id, "Shouldn't get here with an empty lb group id"
self.logger.debug(f"Found {key} where only the load balancing group id "
f"has changed. The new group id is {new_lb_grp_id}")
self.logger.info(f"Found {key} where only the load balancing group id "
f"has changed. The new group id is {new_lb_grp_id}")
only_lb_group_changed.append((key, new_lb_grp_id))

(should_process,
Expand Down

0 comments on commit da91e06

Please sign in to comment.