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

Missing cable trace when multi termination cables. #10602

Open
joaolucasmacedo opened this issue Oct 7, 2022 · 17 comments
Open

Missing cable trace when multi termination cables. #10602

joaolucasmacedo opened this issue Oct 7, 2022 · 17 comments
Labels
pending closure Requires immediate attention to avoid being closed for inactivity severity: low Does not significantly disrupt application functionality, or a workaround is available status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation topic: cabling type: bug A confirmed report of unexpected behavior in the application

Comments

@joaolucasmacedo
Copy link

NetBox version

v3.3.2

Python version

3.10

Steps to Reproduce

  1. Create a regular fiber patch panel device with 24 front and rear ports (12 pairs).
  2. Create a cable connecting more than 2 rear ports between devices, like 2 fiber patch panels connected by a 2 or 3 pair fiber cable.
  3. Connect 2 devices by its interfaces using the correspondent front ports from each patch panel.
  4. See that the trace does not "see" the 2 ending interfaces relationship.

Expected Behavior

Being able to see each device on each connection end.
My goal is to model 2 devices connected by 2 fiber patch panels.
Each patch panel has 12 double SC ports(24 rear and front ports with 1 position).
Patch panels are connected by a 3 pair fiber cable on 6 rear ports each.
Device interfaces are connected using patch panel's front ports on each side.

Router1-Gig0/0/3 >> |frontPort <> Patch panel <> rearPort| <>----3 pair fiber cable----<>|rearPort <> Patch panel <> frontPort| << Gig0/0/3-Router2

Observed Behavior

It only works as expected if I make each connection using 2 terminations on the middle cable, as if it was a single pair cable between patch panels.
See the Cable 25 on the images bellow.
Cabele trace1
If the cable between patch panels is connected to a pair of rear ports on each side everything works fine and I can see the peering device as below:
Link peer2

But if I connect 3 pairs of rear ports on each side of cable 25, as it is on real world, is lost the reace between devices:
Cabele trace2

Link peer3

@joaolucasmacedo joaolucasmacedo added the type: bug A confirmed report of unexpected behavior in the application label Oct 7, 2022
@arthanson arthanson assigned arthanson and unassigned arthanson Nov 4, 2022
@jeremystretch jeremystretch self-assigned this Jan 11, 2023
@jeremystretch jeremystretch added the status: accepted This issue has been accepted for implementation label Jan 11, 2023
@jeremystretch
Copy link
Member

I'm not sure this specific topology is something we're able to support. Typically, you would model this as multiple front ports mapped to a single rear port, rather than multiple rear ports all terminated to a common cable. The root challenge is that there's no strict ordering of the individual cable terminations, so it's not feasible to reliably determine the proper far-end terminations when tracing the cable path.

@jeremystretch jeremystretch added status: under review Further discussion is needed to determine this issue's scope and/or implementation and removed status: accepted This issue has been accepted for implementation labels Jan 11, 2023
@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions github-actions bot added the pending closure Requires immediate attention to avoid being closed for inactivity label Apr 12, 2023
@hhcatv
Copy link

hhcatv commented Apr 27, 2023

It is a real situation that high-fiber-count cables are spliced ​​into multiple ODF trays.
Suppose I link 2 network optical distribution frames [ODF] with 24-core optical cable, and each ODF contains 2 ODF trays, which is the real situation.
The tray is constructed in a modular way to facilitate the automatic naming of ports. The tray module creates 12 front ports and 1 rear port (required in netbox), the rear port corresponds to the 12 cores in the fiber optic cable.
Insert the tray module into the 2 slots of the ODF, and connect the 2 back ports to the 2 back ports of another ODF, that is, to the same optical cable. At this time, the cable routing will appear abnormal.
【Google Translate】
ODF1 front ports:
image

ODF1 rear ports:
image

ODF front ports2:
image

ODF2 rear ports:
image

Cable Trace:
image

I don't know, maybe I didn't find the right solution, forgive my translated text.

@jsenecal jsenecal removed the pending closure Requires immediate attention to avoid being closed for inactivity label May 8, 2023
@jeremystretch jeremystretch added the severity: low Does not significantly disrupt application functionality, or a workaround is available label Jun 23, 2023
@DanSheps
Copy link
Member

DanSheps commented Aug 7, 2023

I believe this is fixed with #13337 (#11079) as it is a similar problem

Copy link
Contributor

github-actions bot commented Nov 6, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions github-actions bot added the pending closure Requires immediate attention to avoid being closed for inactivity label Nov 6, 2023
@jeremystretch jeremystretch removed their assignment Nov 29, 2023
@jeremystretch jeremystretch added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation and removed severity: low Does not significantly disrupt application functionality, or a workaround is available status: under review Further discussion is needed to determine this issue's scope and/or implementation labels Nov 29, 2023
@DanSheps DanSheps added status: accepted This issue has been accepted for implementation and removed pending closure Requires immediate attention to avoid being closed for inactivity labels Dec 14, 2023
@jeremystretch jeremystretch removed the status: accepted This issue has been accepted for implementation label Dec 27, 2023
@jeremystretch jeremystretch added status: under review Further discussion is needed to determine this issue's scope and/or implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Feb 21, 2024
@h3po
Copy link

h3po commented Feb 27, 2024

I am facing the same problem when modeling split switch interfaces. I have 4 split switch interfaces connected through a single MPO cable into a module that maps 1 rear to 4 front ports, so the cable is terminated 4x on one side into the single rear port. Attaching an interface to one of the front ports results in that interface being traced to all 4 switch ports.

@arthanson
Copy link
Collaborator

@h3po @joaolucasmacedo Can you please try this on NetBox 4? We think this might have possibly been resolved via #13337

@h3po
Copy link

h3po commented May 23, 2024

@arthanson I just tested with 2faa72c1e921 (v4.0.3), the behavior is still the same.
In this example, the "test" interface shows as connected to all 4 switch ports
image

@jeremystretch jeremystretch added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation complexity: low Requires minimal effort to implement severity: low Does not significantly disrupt application functionality, or a workaround is available and removed status: under review Further discussion is needed to determine this issue's scope and/or implementation complexity: low Requires minimal effort to implement labels May 28, 2024
@joaolucasmacedo
Copy link
Author

@h3po @joaolucasmacedo Can you please try this on NetBox 4? We think this might have possibly been resolved via #13337

Hi @h3po I'll try it soon.

@joaolucasmacedo
Copy link
Author

joaolucasmacedo commented Jun 13, 2024

@h3po @joaolucasmacedo Can you please try this on NetBox 4? We think this might have possibly been resolved via #13337

Hi @h3po I'll try it soon.

Hi. I've just tested with NetBox 4.0.5(demo) and it is the same.
Also there is other bug I found trying to model some fiber patch/splices. I'll try to create a issue for that.

@DanSheps
Copy link
Member

Could you supply the full path in the form of a graph of some kind for both of your scenarios? This is likely an unsupported path but we could possible add support for it, via a FR

@joaolucasmacedo
Copy link
Author

Could you supply the full path in the form of a graph of some kind for both of your scenarios? This is likely an unsupported path but we could possible add support for it, via a FR

Please, see #16571
Or see this tace

@DanSheps
Copy link
Member

I want to see what it should look like, not what it looks like currently

@joaolucasmacedo
Copy link
Author

joaolucasmacedo commented Jun 18, 2024

I want to see what it should look like, not what it looks like currently

It should look like this:

image

As I show on #16571 I'm trying to model a connection between 2 switches that passes through 2 fiber patch panels, and may use different cables connected on its rear ports.

@DanSheps
Copy link
Member

So, it looks like it works in your example (because I see it on the demo site), but I think I know what is going on here:

When it enters DIO X1 on the FP1 a cable position is pushed to a position stack. It normally shouldn't matter what order it is pushed in as most enter and exit the same cable on the rear port side, however when it is pushed because there are two different cables, the rear port matters, because when it is popped off the stack, it we need to order the cables in reverse order, otherwise, what we can have is:

[FP1-1A][RP1] --- [RP1][FP1-5A]
[FP2-5A][RP2] --- [RP2][FP2-1A]

As you can see, the position is flipped.

I think there might be some overlap with #11671 as implementing #11671 would allow us to potentially get rid of the position stack.

I have marked #16571 as a duplicate of this, as it really is all related I believe, and closed it out.

Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions github-actions bot added the pending closure Requires immediate attention to avoid being closed for inactivity label Sep 17, 2024
@derjam
Copy link

derjam commented Sep 20, 2024

It looks like this issue is very identical to my reported bug. #17400
I reported a very simple example to reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending closure Requires immediate attention to avoid being closed for inactivity severity: low Does not significantly disrupt application functionality, or a workaround is available status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation topic: cabling type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

8 participants