-
Notifications
You must be signed in to change notification settings - Fork 225
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
Headlamp is not refreshing version 0.280 #2805
Comments
@skoeva Can you take a look? |
Hi, would you be able to list out the steps to recreate this issue? If there's any specific configuration for your resource(s), any relevant YAML would be useful to see. Any other additional info you think might be helpful would be very much appreciated as well |
The steps to reproduce are here:
|
@joaquimrocha is there any update here ? did you try to test it and see if you can reproduce the issue ? |
cc/ @skoeva |
Are you creating a pod with the "Create" button in the sidebar? Would be nice to know how you're creating/deleting resources, that's what I meant before. Sorry if that wasn't clear. For example, I'm testing on v0.28.0, and using this deployment YAML in the creation dialog from the sidebar: apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80 I can create and delete it without any issues. I'm seeing similar 502 errors in the console, but those are because I have clusters in Headlamp that aren't actively running. I'm not able to replicate the loading resource errors atm. Do you have the right permissions set up? |
@skoeva the issue is not creating or deleting. if we talk about pod, when i delete it, the console it still shows it's running but it was actually deleted when i check with kubectl or i restart the console. so something is going on with refreshing the status. |
Are you deleting the pod in kubectl or in the UI? I created and deleted a pod from the UI, and kubectl and the UI both no longer display the deleted pod |
deleting the pod in the ui. in the old version, it was showing already the new pod in the state of starting till it becomes running then the old pod completely deleted without doing anything. |
I'm running on WSL but this does not sound like an OS-specific issue. Will see if we can test with an ARM Mac |
I have the same behaviour. Any operation involving a change on the cluster is not updated on the user interface. If you close and restart headlamp application the changes are displayed correctly. Version 0.270 works correctly. For now we are back to version 0.270. S.O. Windows 11. |
@sniok Maybe this is related to the cache from react-query. |
I did suspect it was websocket-related |
@joaquimrocha @skoeva any update here ? did you manage to find the issue ? |
@sov-msaeed are you able to check the network tab of the web developer console? I’d like to know what response the failed connection gives. For example is if a 500 or 404 and if so what the json it returns (if any). |
Perhaps it is related to when there is a cluster that is unavailable. I notice in the original screenshot of errors related to clusters that are unavailable. If you go to the home view in headlamp in other browser tab are there any unavailable clusters? Any that should be available? I’m wondering if
Cc @sov-msaeed From terminal run this to see if the backend is still running:
|
That's a good point. I think we should add a way for the UI to warn the user when something has happened to the backend. So in situations like we can diagnose faster whether this is the issue. |
@joaquimrocha yes indeed. I created an issue for showing the backend server has crashed in the UI here: (ps. I thought we used to show a banner of some kind? But noticed there was no UI change myself the other day when I accidentally stopped the backend server) |
Checked just know with v0.28.1:
but dev tool shows two entries: Is it somehow related to the version of K8s (i.e. issue #2868)? |
Ah, that's a good hint. Thanks @RobSlgm I will check that. |
I tried with So I don't think the issue is caused by just Kubernetes 1.32.0. |
@giorgiorossi I wonder if you can help with some information to help us try and reproduce this issue?
|
Hi @illume While opening Workloads > Pods these messages arrive
While deleting a pod -> nothing happens. |
btw, these are the avenues I'm looking to reproduce with tomorrow:
|
Hi, Sorry for the delayed reply. Kubernetes v 1.27.16 and 1.31.1 I made a another test. After installing 0.28.1, I installed 0.27, without first uninstalling 0.28.1. In this case, 0.27 also does not refresh. |
when I try to delete resource, it's deleted successfully but headlamp is not refreshing to show the new created pod. the pod is just an example. but it happens with all resources
Environment (please provide info about your environment):
Are you able to fix this issue?
[Yes (I will propose a PR) / No.]
no
The text was updated successfully, but these errors were encountered: