Description of problem:
if due to a network issue host discovery gets triggered multiple times, clusters get duplicated in CloudForms
Version-Release number of selected component (if applicable):
all the time
Steps to Reproduce:
1. set up RHV with several hosts
2.set up cloudforms to the RHV
3.simulate network issues, causing hosts to be discovered again and again
the cluster gets duplicated in cloudforms despite all having the same UUIDs
the cluster isn't added since it is the same.
this is due to a network issue that leads to triggering the discovery of hosts multiple times in RHV.
I failed to reproduce this bug, using the bellow flow.
Have a RHV with one host.
Disable fencing on RHV cluster (so that vdsmd service won't be started automatically)
Run on host: 'systemctl stop vdsmd'
On RHV side, the host become 'non responsive'
On CFME side, the host is marked with '?'
Then run on host 'systemctl start vdsmd'
On RHV side, the host became back up.
On CFME, after automatic refresh, the host became up again.
Cluster status on CFME:
The RHV cluster was NOT duplicated.
I checked it under 'Clusters' tab, in provider details page, cluster field,
and in Host details page, cluster field.
I repeated the above flow twice, however did not encounter cluster duplicate.
Maybe this is specific the versions in the reported env, or maybe some additional conditions to have it reproduce.
Based on above changing to CLOSED-WORKSFORME, feel free to reopen if you were able to reproduce with latest CFME/RHV releases and provide reproducing steps and logs