Skip to content

Missing tab "power ports" on devices with power ports #19318

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

Open
MatthiasKuehneEllerhold opened this issue Apr 25, 2025 · 3 comments
Open

Missing tab "power ports" on devices with power ports #19318

MatthiasKuehneEllerhold opened this issue Apr 25, 2025 · 3 comments
Labels
status: revisions needed This issue requires additional information to be actionable type: bug A confirmed report of unexpected behavior in the application

Comments

@MatthiasKuehneEllerhold
Copy link

MatthiasKuehneEllerhold commented Apr 25, 2025

Deployment Type

Self-hosted

NetBox Version

4.2.7 & 4.2.8

Plugins:

  • django-auth-ldap
  • netbox-attachments
  • netbox-floorplan-plugin
  • netbox-topology-views
  • netboxlabs-netbox-branching

Python Version

3.11

Steps to Reproduce

  1. Have a device with a power port
  2. Go to the devices' site
  3. Observe no "power ports" tab
  4. append /power-ports/ to the URL
  5. Power ports are there!

Expected Behavior

I expect a tab with the power port table if a device has at least one power port.

Observed Behavior

Tab "Power ports" is missing.

This was observed with 4.2.7 and 4.2.8 on SOME devices (not on others).

Neither housekeeping.sh, upgrade.sh or trace_paths --force fixed this error.

@MatthiasKuehneEllerhold MatthiasKuehneEllerhold added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Apr 25, 2025
@jeremystretch
Copy link
Member

I'm not able to reproduce this on NetBox v4.2.8.

Have a device with a power port

How did you create the device and power port?

@jeremystretch jeremystretch added status: revisions needed This issue requires additional information to be actionable and removed status: needs triage This issue is awaiting triage by a maintainer labels Apr 25, 2025
@MatthiasKuehneEllerhold
Copy link
Author

Ive just created device with a device type that has a power port.

Device type: https://cloud-rad.ellerhold.de/s/GjimJSGnwwBxrbc
Device: https://cloud-rad.ellerhold.de/s/43TL3wAkS4sSH8q
Manually adding /power-ports/ to the URL: https://cloud-rad.ellerhold.de/s/DooGYopp8ePityb

@jeremystretch
Copy link
Member

@MatthiasKuehneEllerhold you've likely somehow assigned power ports to a device in a way that did not update its power_port_count. Try adding and removing a power port on the device to update the counter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: revisions needed This issue requires additional information to be actionable type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants