Comments (10)
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.
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.
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.
We are root causing the behaviour.
from opx-cps.
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.
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.
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.
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.
@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.
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)
- Statistics values always return / show 0 HOT 8
- How to apply low-level switch configuration via CPS API HOT 1
- Can't generate opx cps document HOT 5
- C SDK example HOT 7
- an example (CPS application )of configuring the MAC address forwarding database HOT 1
- CPS Get OID Call On S4000 Platform Running Out Of Memory Before Listing 16K Routes HOT 3
- Improve cps_get_oid.py script
- Simple ACL fails
- can't save L2 configuration with cps_set_oid.py HOT 7
- Query interface configuration by type broken HOT 8
- Server (untagged) unable to ping SVI gateway hosted of ToR HOT 7
- Setting physical address on LAG interface doesn't always stick HOT 14
- Result pollution in latest CPS HOT 2
- Packet with TTL=1 is not handled properly in S4248FB-ON HOT 1
- Object registration in python succeeds, but handlers are never invoked HOT 3
- Not able to remove registration added with cps_api_event_thread_reg HOT 1
- Development packages do not point to correct binary packages HOT 1
- opx-base-model fails to build due to problem in yin_utils.py HOT 1
- get cps python callback never returns any data HOT 2
- opx-cps service must be of type "Notify"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opx-cps.