I tried to re-run introspection without first setting the nodes back to "manageable". I got the same long and unclear error 7 times (I have 7 nodes):
Failed to run action [action_ex_id=3bf7e82b-1132-49fb-a361-c13a7bcecbe8, action_cls='<class 'mistral.actions.action_factory.BaremetalIntrospectionAction'>', attributes='{u'client_method_name': u'introspect'}', params='{u'uuid': u'b82b5172-298f-47e3-9764-a64c40a5f067', u'new_ipmi_username': None, u'new_ipmi_password': None}'] BaremetalIntrospectionAction.introspect failed: <class 'ironic_inspector_client.common.http.ClientError'>: Invalid provision state for introspection: "available", valid states are "['manageable', 'inspectfail', 'enroll', 'inspecting']"
The only relevant part that the user should see is the last line. The user should get a list of nodes that are in an invalid state, and not the same error 7 times.
This is probably an action bug - we need to give the GUI a better error to display. It might be that we need to make a change in Mistral to make this possible - I'm not sure. It requires some investigtion.