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

Ignore stack port state for non stacked Huawei VRP devices #9918

Closed
pubyun opened this issue Mar 7, 2019 · 3 comments

Comments

Projects
None yet
2 participants
@pubyun
Copy link

commented Mar 7, 2019

the device is not stacked, and there is alert.

is it caused by commit e17f47a "Added VRP stack member and ports discovery (#9891)"?

Severity: critical
Timestamp: 2019-03-06 01:10:29
Unique-ID: 3828
Rule: State Sensor Critical Faults:
1: sysObjectID = .1.3.6.1.4.1.2011.2.23.340; sysDescr = S6720-30C-EI-24S-AC
Huawei Versatile Routing Platform Software
VRP (R) software,Version 5.170 (S6720 V200R011C10SPC600)
Copyright (C) 2007 Huawei Technologies Co., Ltd.; location_id = 2; sensor_id = 17763; sensor_oid = .1.3.6.1.4.1.2011.5.25.183.1.21.1.5.0.0; sensor_descr = Stack Port 0.0 Status; state_descr = Down;
2: sysObjectID = .1.3.6.1.4.1.2011.2.23.340; sysDescr = S6720-30C-EI-24S-AC
Huawei Versatile Routing Platform Software
VRP (R) software,Version 5.170 (S6720 V200R011C10SPC600)
Copyright (C) 2007 Huawei Technologies Co., Ltd.; location_id = 2; sensor_id = 17764; sensor_oid = .1.3.6.1.4.1.2011.5.25.183.1.21.1.5.0.1; sensor_descr = Stack Port 0.1 Status; state_descr = Down;
Alert sent to:

@PipoCanaja

This comment has been minimized.

Copy link
Contributor

commented Mar 7, 2019

Hi @pubyun
That is perfectly correct. Unfortunately, I did not find any variable available to validate if the device is stacked or not, which means we need to code it another way (instead of YAML as it is done now). Until then, it is better to have the information (and flag it as ignorable for non stacked devices) than having nothing.
This issue will be corrected in the next few weeks.
PipoCanaja

@PipoCanaja PipoCanaja added the Bug 🐞 label Mar 7, 2019

@PipoCanaja PipoCanaja self-assigned this Mar 7, 2019

@PipoCanaja PipoCanaja changed the title State Sensor Critical for stack port of HUAWEI VRP device Ignore stack port state for non stacked Huawei VRP devices Mar 7, 2019

@PipoCanaja

This comment has been minimized.

Copy link
Contributor

commented Mar 9, 2019

@pubyun : Patch is here : #9925
Feel free to test it.

The idea is :

  • During the discovery, if more than 1 device is seen, we have a 'real' stack, and then the state will have a "critical" value for any stack port "down".
    Else, the down state will be "unknown" which will ensure no alerting takes place.
  • If a stack-port goes down, the polling will trigger the sensor alert if state is "critical" (so a real stack) and not if device is alone.
  • if both port-stack are down during a discovery, then the device will appear alone, and then the device will be discovered as standalone. This cannot be avoided as far as I see it with current vrp MIB.
@PipoCanaja

This comment has been minimized.

Copy link
Contributor

commented Mar 13, 2019

Hi @pubyun
The patch fixing this is now committed. You can run "./daily.sh" and redicover all your huawei devices (or wait for the auto discovery to occur) and the issue will be gone.
@PipoCanaja

@PipoCanaja PipoCanaja closed this Mar 13, 2019

@lock lock bot locked as resolved and limited conversation to collaborators May 12, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.