juju / juju-gui

Juju-GUI is a web-based GUI for Juju <https://jujucharms.com/>.
Other
182 stars 85 forks source link

GUI shows application as OK when it has an ERROR #3922

Closed mdavis-xyz closed 5 years ago

mdavis-xyz commented 5 years ago

The circles in the graph sometimes appear red when there is an error for that unit. However not always.

As you can see in this printscreen, there are two units which have a status "error", yet no circles are marked as red in the GUI, and only one application in the GUI list is marked as red.

noerr-juju-graph

hatched commented 5 years ago

Thanks for filing this issue, it appears that these are subordinates that are in error?

Dev investigation needed

Does a hook failure in a subordinate cause the icon to change state?

mdavis-xyz commented 5 years ago

This particular charm was a proprietary one I can't share.

I've played around and it's not in that state right now.

If I see this behavior again, I'll let you know.

It seems to be that when a hook fails on a dependent charm, it doesn't show. Maybe we could try deliberately writing a bad hook on a dependent charm and see what happens?

hatched commented 5 years ago

Thanks, I have a charm specifically for testing failure states https://jujucharms.com/u/hatch/failtester/ I'll have to update it and create subordinate version :-)

clagom commented 5 years ago

@hatched any updates?

hatched commented 5 years ago

I'm going to close this issue as this will be rewritten as part of the new GUI.