Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missed cache for Y-flow with protected path meter after stats topology restart #5486

Open
yuliiamir opened this issue Nov 24, 2023 · 0 comments

Comments

@yuliiamir
Copy link
Collaborator

Steps to reproduce:

Create Y-flow with protected path:

{
  "y_flow_id" : "yflow_protected",
  "shared_endpoint" : {
    "switch_id" : "00:00:00:22:3d:6c:00:40",
    "port_number" : 21
  },
  "maximum_bandwidth" : 1000,
  "path_computation_strategy" : "COST",
  "encapsulation_type" : "TRANSIT_VLAN",
  "max_latency" : null,
  "max_latency_tier2" : null,
  "ignore_bandwidth" : false,
  "periodic_pings" : false,
  "pinned" : false,
  "priority" : null,
  "strict_bandwidth" : false,
  "description" : "autotest y-flow: It seems she hangs upon the cheek of night like a rich jewel in an Ethiope's ear.",
  "allocate_protected_path" : true,
  "diverse_flow_id" : null,
  "sub_flows" : [ {
    "flow_id" : null,
    "endpoint" : {
      "switch_id" : "00:00:00:22:3d:5a:04:87",
      "port_number" : 6,
      "vlan_id" : 3310,
      "inner_vlan_id" : 0
    },
    "shared_endpoint" : {
      "vlan_id" : 1575,
      "inner_vlan_id" : 0
    },
    "description" : null
  }, {
    "flow_id" : null,
    "endpoint" : {
      "switch_id" : "00:00:00:22:3d:6c:00:b8",
      "port_number" : 79,
      "vlan_id" : 3232,
      "inner_vlan_id" : 0
    },
    "shared_endpoint" : {
      "vlan_id" : 184,
      "inner_vlan_id" : 0
    },
    "description" : null
  } ]
}

deactivate and activate back stats topology. There are 2 ways to do it:
Local Env
Download sources of zookeper client
go to bin dir
run ./zkCli.sh -server <server_address>
check state and signal of stats topology
[zk: localhost:2181(CONNECTED) 1] get /kilda/stats/blue/signal
START
[zk: localhost:2181(CONNECTED) 5] get /kilda/stats/blue/state
7
deactivate the topology and check the status
[zk: localhost:2181(CONNECTED) 2] set /kilda/stats/blue/signal SHUTDOWN
[zk: localhost:2181(CONNECTED) 3] get /kilda/stats/blue/state
0
activate it back
[zk: localhost:2181(CONNECTED) 4] set /kilda/stats/blue/signal START
[zk: localhost:2181(CONNECTED) 5] get /kilda/stats/blue/state
7

hardware env
go to emerald
click on stats topology
deactivate it
wait until it will be red
activate it back
Wait 2 mins and check logs

Expected result:
No logs Missed cache for switch **** meterId ****

Actual result:
logs Missed cache for switch **** meterId ****

Ex.: Missed cache for switch '00:00:00:22:3d:6c:00:40' meterId '2006' ()
YFlowDetails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant