Page MenuHomePhabricator

[openstack.horizon] Going to the interfaces tab of puppet-diffs/pcc-db1001 throws 500
Closed, ResolvedPublic

Description

It seems that at least jbond and I get that error, from firefox:

curl 'https://horizon.wikimedia.org/project/instances/79091983-20ae-44a5-a180-f21ac6663959/?tab=instance_details__interfaces' \
  -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0' \
  -H 'Accept: text/html, */*; q=0.01' \
  -H 'Accept-Language: en,en-US;q=0.8,es-ES;q=0.5,es;q=0.3' --compressed \
  -H 'X-Requested-With: XMLHttpRequest' \
  -H 'Connection: keep-alive' \
  -H 'Referer: https://horizon.wikimedia.org/project/instances/79091983-20ae-44a5-a180-f21ac6663959/' \
  -H 'Cookie: tabs=%7B%22instance_details%22%3A%22%23instance_details__interfaces%22%7D; WMF-Last-Access=26-Nov-2021; sessionid=REDACTED; GeoIP=FR:ARA:REDACTED:REDACTED:6.08:v4; csrftoken=REDACTED; recent_project=puppet-diffs' \
  -H 'Pragma: no-cache' \
  -H 'Cache-Control: no-cache' \
  -H 'TE: Trailers'

Event Timeline

2021-11-27 18:38:12.076543 django.template.exceptions.TemplateDoesNotExist: project/networks/ports/_port_ips.html

Most likely what's happening is that I disabled this tab and marked out all of the supporting code in an older version, and that something has changed to present the tab despite my attempts.

I will investigate whether it's easier to re-enable the tab or be more thorough about hiding it.

The networks panel in Admin -> Network -> Networks seems to be broken in the same way.

It looks like this issue is because the interfaces tab is trying to pull in UI elements from the 'network' dashboard. Since we don't install the network dashboard these elements are unavailable.

Possibly we can install the network dashboard and then disable it via ACLs.

Change 742225 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[openstack/horizon/horizon@main] Revert \"Remove some networking panels\"

https://gerrit.wikimedia.org/r/742225

Change 742225 merged by Andrew Bogott:

[openstack/horizon/horizon@main] Revert \"Remove some networking panels\"

https://gerrit.wikimedia.org/r/742225

Change 742226 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[openstack/horizon/deploy@main] Update horizon submodule

https://gerrit.wikimedia.org/r/742226

Change 742226 merged by Andrew Bogott:

[openstack/horizon/deploy@main] Update horizon submodule

https://gerrit.wikimedia.org/r/742226

Mentioned in SAL (#wikimedia-operations) [2021-11-27T19:51:06Z] <andrew@deploy1002> Started deploy [horizon/deploy@6115b3b]: network UI updates for T296548

Mentioned in SAL (#wikimedia-operations) [2021-11-27T19:55:20Z] <andrew@deploy1002> Finished deploy [horizon/deploy@6115b3b]: network UI updates for T296548 (duration: 04m 14s)

I re-enabled quite a lot of network features, including this one. I'm pretty sure that this is doing more good than harm but please let me know if anyone here thinks that I should switch off any of those panels back off.

Fancy UIs 🎉, specially the network topology and graph one (a bit scary that you can delete instances right there though).

dcaro removed a project: User-dcaro.