Feature #6225
opencreate a helper module to determine remote distro metadata
0%
Description
We currently do a wealth of checks for different metadata of a distro and do all kinds of different things with that information like
building the gitbuilder url.
This needs to be centralized and reused all over teuthology as we are currently repeating the same remote calls to hosts to determine the
information, and while doing that repetition we are introducing bugs that are not easy to fix because the repetition of the calls in different
places makes it difficult to do so.
This ticket should address the need for a module/object that does remote host recognition, gathering metadata (distro name, version, architecture)
and a gitbuilder object that replaces the `_get_base_urls` and other similar functions in `task/install.py`
Below is the cleanup comment that explains the reasoning just for that function:
# XXX CLEANUP # This helper function is in *dire* need of cleaning up What is `relval`? # Why so many `dist_` prepending keys? # The below list is an unfortunate usage of variables that confuse and make # it harder to read/understand/improve anything here: # dist, distro, distro_release, dist_release, dist_name, distri