cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Empty resources in dashborad

Open cdfgallo opened this issue 9 months ago • 9 comments

ISSUE TYPE
  • Bug Report
COMPONENT NAME
UI
CLOUDSTACK VERSION
4.19.0.1
CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

One our customer account (can't really say if it happened after the upgrade but I don't believe so) is unable to see his resources assigned in the dashboard in the UI. As you can see from the screenshot the account has assigned resources, as VMs, volumes and so on. From all other pages we can see no issues and he's able to manage every resource assigned to him. Actually, this is the only account with this issue on our infrastructure.

STEPS TO REPRODUCE
Don't know how to reproduce this.
EXPECTED RESULTS
The user show be able to see the resource assigned to him in the dashboard
ACTUAL RESULTS
Empty dashboard for this user

cdfgallo avatar May 07 '24 06:05 cdfgallo

3_user 4_account_resources 1_resources_home 2_instances

cdfgallo avatar May 07 '24 06:05 cdfgallo

@cdfgallo

  • Did you see and exceptions in the logs?
  • Do you remember when the user could last see their resources?

as the user still has limits it seems the links are there so it should be possible to repair.

DaanHoogland avatar May 07 '24 07:05 DaanHoogland

@cdfgallo can you open this account in a browser with dev tools, share with us if you see any errors on the devtools/JS console?

rohityadavcloud avatar May 07 '24 07:05 rohityadavcloud

Hi @DaanHoogland not in the management logs when the user login. Unfortunately no.

@rohityadavcloud we just completed this test with our client and I'm posting the errors received.

cdfgallo avatar May 07 '24 14:05 cdfgallo

image image

cdfgallo avatar May 07 '24 14:05 cdfgallo

@cdfgallo can you please share the full resolution image or share the error? Not sure but for me above-shared images are showing in 512x239px and are not readable

shwstppr avatar May 08 '24 09:05 shwstppr

@shwstppr yes, of course! sorry for the bad images.

unnamed unnamed (1)

cdfgallo avatar May 08 '24 10:05 cdfgallo

@cdfgallo I assume you've already tried a different browser or used an incognito window. Please try if not already. I was able to partially reproduce the behaviour by corrupting cached project value

shwstppr avatar May 08 '24 12:05 shwstppr

@shwstppr yes I confirm that we already tried different browsers and using incognito mode. Unfortunately the issue persists.

cdfgallo avatar May 09 '24 12:05 cdfgallo

@rohityadavcloud @shwstppr I've been able to reproduce the issue just accessing our infrastructure with an account with domain administrator privilege using external saml2 authentication. I saw the same errors posted up here in devtools and no error logs in the management server. Looking at the database I can't see nothing strange on the account. Thank you, Fabio

cdfgallo avatar May 15 '24 11:05 cdfgallo

Thanks @cdfgallo. I guess then this is the same issue as https://github.com/apache/cloudstack/issues/8950 cc @rohityadavcloud I'll try to spend some time next week to look into a possible fix. However, I'm not sure right now about setting up SAML authentication for a DomainAdmin role.

shwstppr avatar May 15 '24 13:05 shwstppr

Fixed by https://github.com/apache/cloudstack/pull/9097 Tested on https://qa.cloudstack.cloud/simulator/ using SAML using rick

@cdfgallo please test latest 4.19 branch and re-open if you still reproduce this error

rohityadavcloud avatar Jun 12 '24 12:06 rohityadavcloud