-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Power and console cables status isn't shown correctly #17851
Comments
@Pesk0v Thank you for the bug report, can you please add more reproduction steps to this. It's not clear in the steps to reproduce exactly what you are doing to see the problem. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports. |
Hello Arthur,
Thank you for your attention to this problem.
As I reported the problem appears whenever I create a connection cable between console/power ports.
The problem appeared some time ago after updating the netbox version from 3.6.6 to 4.0.2
To show how the problem shows itself, a screenshot of a newly created server is here
![image](https://github.com/user-attachments/assets/c15d0b22-9c75-4bb7-982e-0a2aadbd99d0)
No ports have been connected yet.
Now, I'm going to connect the PWR1 port to a power supply.
![image](https://github.com/user-attachments/assets/68a26ecc-564a-4695-bbb2-2569ea81e7dd)
The port is connected to PDU1 and gets status 'Connected'
![image](https://github.com/user-attachments/assets/f1215ccf-5e2b-4c9e-bd2d-68127a2dd83c)
After I press the 'Create' button I see that the connection is in place (it is correctly shown in the 'Connection' column).
The row should have been highlighted in green. However, in my case the line is not highlighted in any way.
In addition the toggle button ('Mark Installed' / 'Mark Planned') is blue and when I hover my mouse over this button, a tooltip 'Mark Installed' pops up, i.e. like the just created connection is treated as a *planned *connection but not *installed*.
![image](https://github.com/user-attachments/assets/1d0715e1-4822-454c-a49c-d401ee19f591)
When I press the toggle, everything falls into place. The row is highlighted in green, the toggle turns orange and a tooltip 'Mark Planned' appears when I hover my mouse over.
![image](https://github.com/user-attachments/assets/623a67a1-87df-4c74-88ab-e62954fd8c5b)
From this moment on, when you click on the toggle again and again, everything is displayed correctly and every next click on the toggle changes cable status so that 'planned' connection turns to 'installed' and v.v., and the row is highlighted in a such manner that it turn green for 'installed' connections and blue for 'planned' connections. In other words this really meets expectations on how the toggle color and assigned action to the toggle, the port row color and the cable status depends on each other.
Thus, next click on the toggle gives this -
![image](https://github.com/user-attachments/assets/b4b2418f-5ff4-4423-a0ea-8a2046e1cb21)
...next click gives this -
![image](https://github.com/user-attachments/assets/3cfeae45-4218-48d6-9564-1a01453eea29)
..and so on.
Everything looks fine until the browser screen is refreshed or this page is reopened. After that, the port is shown exactly as it did immediately after creation, and the same problem appears again. So, if you refresh the screen it will look like on the pic below
![image](https://github.com/user-attachments/assets/4625c443-bb55-4478-b042-d42bddb070ce)
|
Deployment Type
Self-hosted
Triage priority
N/A
NetBox Version
4.0.2
Python Version
3.12
Steps to Reproduce
The problem occurs only for console ports and power ports. Connected ports on the Power Ports, Power Outlets, Console Ports, Console Server Ports tabs are not highlighted in color, no matter what cable status set ('Installed' or 'Planned').
Expected Behavior
Right after a cable is created to connect two ports, the rows corresponding to connected ports are expected to be highlighted in green by default. The toggle should be orange and change cable status from 'Installed' to 'Planned'.
Observed Behavior
Once a cable for connection two either console or power ports has been created, the port (in tabs Power Ports, Power Outlets, Console Ports, Console Server Ports) which the cable is connected to is shown like it wouldn't be connected though the connection is correctly indicated in row. At that there is the 'Mark Installed' blue button in the port row.
When clicking on the button everything seems back to normality, i.e. the row is highlighted in green, and the blue toggle turns orange toggle switching port status into 'Mark Planned'. In other words the toggle gets working as expected, switching the cable status between 'Planned' and 'Installed' with the correct color highlighting of the port row.
But all rows corresponding to the connected ports are not highlighted again and everything returns to the abnormal state when pressing F5 (refresh screen) or reopening the tab.
Worth noting that interface ports are not affected by this problem.
The text was updated successfully, but these errors were encountered: