Giter Site home page Giter Site logo

Comments (10)

atanu-mandal avatar atanu-mandal commented on September 18, 2024

I am curious to understand the use case of this kind of operations. Can you explain little bit on where it can be applied to. Thanks.

from opx-cps.

dimbleby avatar dimbleby commented on September 18, 2024

This isn't something that I'd expect to be a common operation - it's just a failure that arose during our testing.

from opx-cps.

dimbleby avatar dimbleby commented on September 18, 2024

It seems that this sequence of commands caused the opx-nas service to crash:

opxUser@opx_vm:~$ sudo service opx-nas status
● opx-nas.service - Network abstraction service
   Loaded: loaded (/lib/systemd/system/opx-nas.service; enabled)
   Active: failed (Result: signal) since Sat 2018-02-03 10:16:12 UTC; 2s ago
  Process: 670 ExecStart=/usr/bin/opx_nas_daemon (code=killed, signal=SEGV)
  Process: 571 ExecStartPre=/usr/bin/dn_rules.sh (code=exited, status=0/SUCCESS)
 Main PID: 670 (code=killed, signal=SEGV)

Feb 03 10:15:58 opx_vm opx_nas_daemon[670]: [QOS:QOS], Allocate nas-sg-id 0x2102000600000025 for VP port_id 37, level 2, local_sg_index 6
Feb 03 10:15:58 opx_vm opx_nas_daemon[670]: [QOS:QOS], Allocate nas-sg-id 0x2102000700000025 for VP port_id 37, level 2, local_sg_index 7
Feb 03 10:15:58 opx_vm opx_nas_daemon[670]: [QOS:QOS], Allocate nas-sg-id 0x2102000800000025 for VP port_id 37, level 2, local_sg_index 8
Feb 03 10:15:58 opx_vm opx_nas_daemon[670]: [QOS:QOS], Allocate nas-sg-id 0x2102000900000025 for VP port_id 37, level 2, local_sg_index 9
Feb 03 10:16:12 opx_vm opx_nas_daemon[670]: [INTERFACE:INTF-C], Failed to get if_info
Feb 03 10:16:12 opx_vm opx_nas_daemon[670]: [INTERFACE:NAS-INT], Interface 37 returned error -2013167616
Feb 03 10:16:12 opx_vm systemd[1]: opx-nas.service: main process exited, code=killed, status=11/SEGV
Feb 03 10:16:12 opx_vm systemd[1]: Unit opx-nas.service entered failed state.
Feb 03 10:16:12 opx_vm systemd[1]: Triggering OnFailure= dependencies of opx-nas.service.
Feb 03 10:16:12 opx_vm systemd[1]: Failed to enqueue OnFailure= job: Invalid argument

I guess that does make it relatively serious - even though it would be an unusual thing to do, the result is quite severe.

from opx-cps.

atanu-mandal avatar atanu-mandal commented on September 18, 2024

We are root causing the behaviour.

from opx-cps.

atanu-mandal avatar atanu-mandal commented on September 18, 2024

It seems there is no such use case attached to this opearation for your application. It was observed during a stress testing, thanks for sharing the result though. We will follow up on this.

from opx-cps.

atanu-mandal avatar atanu-mandal commented on September 18, 2024

The expectation is to pass "front-panel-port" and "subport id" in the create request otherwise it will create interface with NPU_port which is virtual interface. So if below procedure is followed it would behave as expected.

cps_set_oid.py -qua target -oper action dell-base-if-cmn/set-interface dell-base-if-cmn/set-interface/input/operation=1 if/interfaces/interface/name=e101-002-0 if/interfaces/interface/type=ianaift:ethernetCsmacd base-if-phy/hardware-port/front-panel-port=2 base-if-phy/hardware-port/subport-id=0

Given that this is not an usual test case/operation , we will close this bug.

from opx-cps.

dimbleby avatar dimbleby commented on September 18, 2024

Shouldn't the switch be resilient to mistakes?

That is: wouldn't it be better to:

  • fix the bug
  • arrange that the opx-nas service can restart after this and any similar failure?

Understood that this is in some sense user error (originating with you actually! see this comment) and therefore low priority - but still, I'm a little surprised that you are happy to close it out without making any fix...?

from opx-cps.

jeff-yin avatar jeff-yin commented on September 18, 2024

Actually the issue is being fixed so that nas will not crash in this scenario, but given that it's an uncommon operation, we'll roll out the fix in a future release of OPX. I.e., the fix will be a part of a "stable" release rather than a "testing" release.

We can leave the issue open for now for tracking purposes.

from opx-cps.

atanu-mandal avatar atanu-mandal commented on September 18, 2024

@dimbleby , definitely. It was my bad, given that the information was provided for proper execution of the operation (to unblock any effort) I had closed this one. We will provide you more update when the crash is actually fixed.

from opx-cps.

jeff-yin avatar jeff-yin commented on September 18, 2024

This issue should be fixed in the latest release of OPX. Closing for now. Reopen if you do see it again.

from opx-cps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.