-
Notifications
You must be signed in to change notification settings - Fork 264
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
[UI] VMs and devices in cluster from cluster type view is aways 0 #1459
Comments
Thanks for the report! It looks like a fix similar to netbox-community/netbox@98ff00b should resolve this. |
@glennmatthews I was looking at this and I think the problem is elsewhere. We are already using the It looks like a caching problem because, after some time, the number is refreshed. My initial thought was that the problem is because the
|
@ubajze That seems like a separate issue to me. ClusterTypeView is not using annotations, unless I'm really missing something - https://github.com/nautobot/nautobot/blob/develop/nautobot/virtualization/views.py#L31 - and adding those annotations would be a necessary first step, regardless of caching issues. |
@glennmatthews Ohh, you are right. I am sorry. The first image looks similar to that page: So, my previous message should be ignored in the context of this issue. I can open a PR tomorrow with the solution related to this issue. |
Environment
Looking at VM and device count from cluster type view always shows 0:
![image](https://user-images.githubusercontent.com/26114847/157234930-905ecb9c-af08-484f-add6-2e9f6a272bd8.png)
![image](https://user-images.githubusercontent.com/26114847/157235367-bc99ab34-54ae-4a7a-b18e-67e2e4993330.png)
Show here on demo instance:
https://demo.nautobot.com/virtualization/cluster-types/test-cluster-type/
Steps to Reproduce
Expected Behavior
1 (number of VMs in cluster)
1 (number of devices in cluster)
Observed Behavior
0 (always)
0 (always)
The text was updated successfully, but these errors were encountered: