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

[Bug] netbox 4.0.11 and 4.1.0 error 500 while displaying the interfaces of a device #17360

Closed
gurretp opened this issue Sep 4, 2024 · 12 comments · Fixed by #17535
Closed

[Bug] netbox 4.0.11 and 4.1.0 error 500 while displaying the interfaces of a device #17360

gurretp opened this issue Sep 4, 2024 · 12 comments · Fixed by #17535
Assignees
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation topic: htmx navigation For issues where HTMX navigation is enabled type: bug A confirmed report of unexpected behavior in the application

Comments

@gurretp
Copy link

gurretp commented Sep 4, 2024

Deployment Type

Self-hosted

NetBox Version

v4.1.0

Python Version

3.11

Steps to Reproduce

  1. select a device with an interface
  2. click on the interface tab

Expected Behavior

show the interfaces of the device

Observed Behavior

error 500:

Internal Server Error: /dcim/devices/201/interfaces/
Traceback (most recent call last):
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/views/generic/base.py", line 104, in view
    return self.dispatch(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/releases/netbox-4.1.0/netbox/netbox/views/generic/base.py", line 26, in dispatch
    return super().dispatch(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/releases/netbox-4.1.0/netbox/utilities/views.py", line 125, in dispatch
    return super().dispatch(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/releases/netbox-4.1.0/netbox/utilities/views.py", line 39, in dispatch
    return super().dispatch(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/views/generic/base.py", line 143, in dispatch
    return handler(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/releases/netbox-4.1.0/netbox/netbox/views/generic/object_views.py", line 151, in get
    return render(request, self.get_template_name(), {
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/shortcuts.py", line 25, in render
    content = loader.render_to_string(template_name, context, request, using=using)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 171, in render
    return self._render(context)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 65, in render
    result = block.nodelist.render(context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 65, in render
    result = block.nodelist.render(context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 65, in render
    result = block.nodelist.render(context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 210, in render
    return template.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 173, in render
    return self._render(context)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/defaulttags.py", line 326, in render
    return nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/defaulttags.py", line 326, in render
    return nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/defaulttags.py", line 326, in render
    return nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/library.py", line 258, in render
    _dict = self.func(*resolved_args, **resolved_kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/releases/netbox-4.1.0/netbox/utilities/templatetags/buttons.py", line 195, in bulk_edit_button
    url = reverse(get_viewname(model, action))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/releases/netbox-4.1.0/netbox/utilities/views.py", line 254, in get_viewname
    is_plugin = isinstance(model._meta.app_config, PluginConfig)
                           ^^^^^^^^^^^
AttributeError: 'str' object has no attribute '_meta'
@gurretp gurretp added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Sep 4, 2024
@bctiemann bctiemann 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 Sep 4, 2024
@bctiemann
Copy link
Contributor

I'm not able to reproduce this. Could you add some more details about the device and interface configuration that causes this?

@gurretp
Copy link
Author

gurretp commented Sep 4, 2024

sure,

would this be enough for you to reproduce it ?

Device

GET /api/dcim/devices/201/
{
    "id": 201,
    "url": "https://xxxx/api/dcim/devices/201/",
    "display_url": "https://xxx/dcim/devices/201/",
    "display": "tiresp",
    "name": "tiresp",
    "device_type": {
        "id": 55,
        "url": "https://xxxx/api/dcim/device-types/55/",
        "display": "Color LaserJet M552",
        "manufacturer": {
            "id": 9,
            "url": "https://xxx/api/dcim/manufacturers/9/",
            "display": "HP",
            "name": "HP",
            "slug": "hp",
            "description": ""
        },
        "model": "Color LaserJet M552",
        "slug": "color-laserjet-m552",
        "description": ""
    },
    "role": {
        "id": 9,
        "url": "https://xxxx/api/dcim/device-roles/9/",
        "display": "Printer",
        "name": "Printer",
        "slug": "printer",
        "description": ""
    },
    "tenant": null,
    "platform": null,
    "serial": "JPBVJ5M0JL",
    "asset_tag": null,
    "site": {
        "id": 9,
        "url": "https://xxxx/api/dcim/sites/9/",
        "display": "Ticino",
        "name": "Ticino",
        "slug": "ti",
        "description": ""
    },
    "location": null,
    "rack": null,
    "position": null,
    "face": null,
    "latitude": null,
    "longitude": null,
    "parent_device": null,
    "status": {
        "value": "active",
        "label": "Actif"
    },
    "airflow": null,
    "primary_ip": {
        "id": 9752,
        "url": "https://xxx/api/ipam/ip-addresses/9752/",
        "display": "10.5.254.10/25",
        "family": {
            "value": 4,
            "label": "IPv4"
        },
        "address": "10.5.254.10/25",
        "description": ""
    },
    "primary_ip4": {
        "id": 9752,
        "url": "https://xxxx/api/ipam/ip-addresses/9752/",
        "display": "10.5.254.10/25",
        "family": {
            "value": 4,
            "label": "IPv4"
        },
        "address": "10.5.254.10/25",
        "description": ""
    },
    "primary_ip6": null,
    "oob_ip": null,
    "cluster": null,
    "virtual_chassis": null,
    "vc_position": null,
    "vc_priority": null,
    "description": "",
    "comments": "",
    "config_template": null,
    "config_context": {},
    "local_context_data": null,
    "tags": [],
    "custom_fields": {},
    "created": "2021-07-15T00:00:00Z",
    "last_updated": "2023-04-21T19:02:00.428448Z",
    "console_port_count": 0,
    "console_server_port_count": 0,
    "power_port_count": 0,
    "power_outlet_count": 0,
    "interface_count": 1,
    "front_port_count": 0,
    "rear_port_count": 0,
    "device_bay_count": 0,
    "module_bay_count": 0,
    "inventory_item_count": 0
}

IP:

GET /api/ipam/ip-addresses/9752/
{
    "id": 9752,
    "url": "https://xxx/api/ipam/ip-addresses/9752/",
    "display_url": "https://xxx/ipam/ip-addresses/9752/",
    "display": "10.5.254.10/25",
    "family": {
        "value": 4,
        "label": "IPv4"
    },
    "address": "10.5.254.10/25",
    "vrf": null,
    "tenant": null,
    "status": {
        "value": "active",
        "label": "Actif"
    },
    "role": null,
    "assigned_object_type": "dcim.interface",
    "assigned_object_id": 2136,
    "assigned_object": {
        "id": 2136,
        "url": "https://xxx/api/dcim/interfaces/2136/",
        "display": "ETH0",
        "device": {
            "id": 201,
            "url": "https://xxx/api/dcim/devices/201/",
            "display": "tiresp",
            "name": "tiresp",
            "description": ""
        },
        "name": "ETH0",
        "description": "",
        "cable": null,
        "_occupied": false
    },
    "nat_inside": null,
    "nat_outside": [],
    "dns_name": "",
    "description": "",
    "comments": "",
    "tags": [],
    "custom_fields": {},
    "created": "2023-04-21T19:02:00.404092Z",
    "last_updated": "2023-04-21T19:02:00.404119Z"
}

interface:

GET /api/dcim/interfaces/2136/
{
    "id": 2136,
    "url": "https://xxx/api/dcim/interfaces/2136/",
    "display_url": "https://xxx/dcim/interfaces/2136/",
    "display": "ETH0",
    "device": {
        "id": 201,
        "url": "https://xxx/api/dcim/devices/201/",
        "display": "tiresp",
        "name": "tiresp",
        "description": ""
    },
    "vdcs": [],
    "module": null,
    "name": "ETH0",
    "label": "",
    "type": {
        "value": "1000base-t",
        "label": "1000BASE-T (1GE)"
    },
    "enabled": true,
    "parent": null,
    "bridge": null,
    "lag": null,
    "mtu": 1500,
    "mac_address": "A0:8C:FD:56:22:68",
    "speed": null,
    "duplex": null,
    "wwn": null,
    "mgmt_only": false,
    "description": "",
    "mode": null,
    "rf_role": null,
    "rf_channel": null,
    "poe_mode": null,
    "poe_type": null,
    "rf_channel_frequency": null,
    "rf_channel_width": null,
    "tx_power": null,
    "untagged_vlan": null,
    "tagged_vlans": [],
    "mark_connected": false,
    "cable": null,
    "cable_end": "",
    "wireless_link": null,
    "link_peers": [],
    "link_peers_type": null,
    "wireless_lans": [],
    "vrf": null,
    "l2vpn_termination": null,
    "connected_endpoints": null,
    "connected_endpoints_type": null,
    "connected_endpoints_reachable": null,
    "tags": [],
    "custom_fields": {},
    "created": "2021-07-15T00:00:00Z",
    "last_updated": "2021-07-15T13:39:33.769002Z",
    "count_ipaddresses": 1,
    "count_fhrp_groups": 0,
    "_occupied": false
}

@bctiemann bctiemann added status: needs triage This issue is awaiting triage by a maintainer and removed status: revisions needed This issue requires additional information to be actionable labels Sep 4, 2024
@arthanson
Copy link
Collaborator

@gurretp I'm not able to reproduce this either. Can you please check the reproduction steps or see if there is something specific about your data.

@arthanson arthanson 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 Sep 4, 2024
@arthanson arthanson self-assigned this Sep 4, 2024
@goebelmeier
Copy link

I am able to reproduce this. On 4.0.11 and on 4.1.0 as well.

@bctiemann
Copy link
Contributor

@goebelmeier could you and @gurretp see if you can determine between you what is particular about your setups that causes this?

@arthanson arthanson assigned bctiemann and unassigned arthanson Sep 4, 2024
@bctiemann
Copy link
Contributor

bctiemann commented Sep 4, 2024

Just a hunch, but I see this error on some other HTMX-related issues:
#17313

AttributeError: 'str' object has no attribute '_meta'

@gurretp @goebelmeier do you have HTMX enabled, and does turning that off affect this?

@goebelmeier
Copy link

@bctiemann i can confirm it is happening when HTMX is enabled. Disabling HTMX fixes the issue

@gurretp
Copy link
Author

gurretp commented Sep 5, 2024

**@bctiemann ** Same here, disabling htmx fixes the issue

@bctiemann bctiemann added the topic: htmx navigation For issues where HTMX navigation is enabled label Sep 5, 2024
Copy link
Contributor

This is a reminder that additional information is needed in order to further triage this issue. If the requested details are not provided, the issue will soon be closed automatically.

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

This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 21, 2024
@jeremystretch
Copy link
Member

This was closed mistakenly. (The status label needs to be removed when an issue is assigned.)

@jeremystretch jeremystretch reopened this Sep 24, 2024
@jeremystretch jeremystretch removed status: revisions needed This issue requires additional information to be actionable pending closure Requires immediate attention to avoid being closed for inactivity labels Sep 24, 2024
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation severity: medium Results in substantial degraded or broken functionality for specfic workflows labels Sep 24, 2024
@candlerb
Copy link
Contributor

Possibly blocked by #17571

bctiemann added a commit that referenced this issue Oct 11, 2024
…on (#17535)

* Ensure model is defined when rendering bulk_edit_button

* Move model check to inner conditional

* Set model in context

* Return child_model instead of model for use in bulk_edit_button
jeremystretch pushed a commit to alehaa/netbox that referenced this issue Oct 11, 2024
…g bulk_edit_button (netbox-community#17535)

* Ensure model is defined when rendering bulk_edit_button

* Move model check to inner conditional

* Set model in context

* Return child_model instead of model for use in bulk_edit_button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation topic: htmx navigation For issues where HTMX navigation is enabled type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants