I was working on a simple fix for LP bug keystone upgrade-charm not providing useful status updates. The fix involved adding some status_set() and log() entries in the keystone charm to give a better idea of the current status in juju status.
This then became a wider discussion with the original requestor and the OpenStack charm engineering team. We came to the conclusion that Juju should be keeping track of outstanding hooks to process for each unit, and display that information as part of juju status.
The purpose would be to give more visibility in Juju as to the progress of an action (e.g. the upgrade-charm hook of the keystone charm can take up to 15-30 minutes to complete the identity_changed, admin_relation_changed and identity_credentials_changed hooks for all related services: a sort of counter of how many of these were triggered by the upgrade-charm with a status like ‘waiting for identity-relation-changed hooks to complete after upgrade - completed X of Y’).
Any thoughts? Thanks!