BE: Dash: List of hostnames running mon and OSD services
#3 Updated by John Spray almost 8 years ago
- Subject changed from BE: Dash: Return number of unique hosts/IPs in cluster to BE: Dash: List of hostnames running mon and OSD services
So we discussed this yesterday, what I took away was:
- We actually want hostnames rather than IPs here
- Although counts may be used somewhere, the frontend will also need the actual list of servers so that it can indicate which specific ones may have a problem.
The data we give here will also be somewhat affected by #6082, wherein our hostname resolution for OSDs is not always reliable.
#9 Updated by Yan-Fa Li almost 8 years ago
I'm a little bit concerned with hostname not always being in the data structure, but other than that, I think this will work for the first pass. I don't need hostnames for the initial cut, but I can see them being useful for flipping a card.
I'm also not totally getting the difference between host and name, but as long as it's documented I can live with it.
#10 Updated by John Spray almost 8 years ago
The field you should be using is 'name' (which is equal to hostname if hostname is set, but may be something else if it's not).
In 2.0, hostname should always be known: the fuzzy part here is because we're just talking to one mon's ceph-rest-api, so sometimes the hostname is just unknowable.