Multiple Local Keystone User Authorisation Failed with "AssertionError: User is disabled" Error
Problem
Local users failing to authorise and below mentioned error was observed in the
keystonelogs during the time of issue.
Environment
Platform9 Edge Cloud - v5.1 and Above
Cause
This issue has been observed after the Reboot or Migration activity of the Management Plane Host.
The exact cause of the issue is still unknown but it is suspected due to the mysql database corruption.
The similar issue can also be observed for
qbert,resmgrandappbertlocal users which can result in authorisation failures for the respective components
Resolution
Check the value for
last_active_atparameter in MySQL DB for the affected users and confirm that the date entry mentioned in there is very old.
Check if the affected users are enabled or disabled using the command mentioned below.
Check if the disable_user_account_days_inactive parameter is enabled in the keystone.conf file.
Comment the disable_user_account_days_inactive parameter in the /etc/keystone/keystone.conf file and restart the keystone service.
If the qbert , resmgr and appbert users are also affected due to this issue then restart the pf9-resmgr , pf9-qbert and pf9-appbert services on the management plane.
This should help to resolve the authorisation issue with the respective user and service.
