Description of problem: --------------------------------------- When a host, that was in the Non-operational state, comes UP, the message seen in the Events log looks like this - Detected new Host <hostname>. Host state was set to Up. Since it is not a new host that just came UP, the message should convey the correct information, that it was an existing host that was in the Non-Operational state, which just came UP. Version-Release number of selected component (if applicable): Red Hat Storage Console Version: 2.1.0-0.bb3.el6rhs How reproducible: Always Steps to Reproduce: 1. Add a host to a cluster via the Console and let it come UP. 2. Run the following command to stop glusterd on the host - # service glusterd stop 3. After the host goes to the Non-Operational state, run the following command to start glusterd - # service glusterd start Actual results: The above described message is seen in the Events log. Expected results: The message should convey the right information as described above. Additional info:
Same is the case when a host goes to UP state after being Non-responsive for a while.
Once it comes to refreshing the status of a host it does not have details if the host is newly added or existing one. The status is changed to "Up" after refresh. The only way to figure out if a host is newly added is the sequence in which the audit log messages are displayed. In existing scenario, in case of newly added event log messages would be in the below sequence - "Host <Host Name> was added by admin@internal." followed by "Detected new Host <Host Name>. Host state was set to Up." Whereas in case of host just refreshed from Non-operational to Up would have an event log in the form - "Detected new Host <Host Name>. Host state was set to Up." --------------- As correctly identified the message "Detected new Host <Host Name>. Host state was set to Up." is misleading. We will modify the message as below - "State was set to Up for <Host Name>". So post changes the event logs in case of newly added host would be as below - "Host <Host Name> was added by admin@internal." followed by "State was set to Up for <Host Name>". and in case of host just refreshed from Non-operation to Up would be - "State was set to Up for <Host Name>". Confirm if the same is fine.
Looks good to me.
verified in rhsc-bb5
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1262.html