-
Notifications
You must be signed in to change notification settings - Fork 23
Override kolla_base_distro_version #923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I think this brings up a wider question of perhaps supporting Jammy-based automation images. I can imagine this won't be the last time we see a conflict like this. I know it's yet another thing to support but it's a question of what will be more effort. Either that or whack-a-bug with distro conflicts. |
Imo supporting Ubuntu in kayobe-automation is the correct long-term fix for this issue. However, as you say the work to do this isn't small, so I'd proposed this PR here so that the immediate upgrade cycle of Z+A can continue without every Ubuntu customer needing to be fixed. I need to look the new kolla tags stuff first, but the comment for |
So for more context, this error was hit when running a kolla config-diff using a Kayobe image built with a RL9 kayobe-automation but an Ubuntu Jammy target system.
|
Discussed with @MoteHue IRL. I think this is caused by Kayobe's globals.yml template (
While this will lead to localhost seeing |
b6df668
to
bfa520a
Compare
I've tested this solution in Bristol CI, it works. |
bfa520a
to
2bd9093
Compare
When running the kayobe-automation CI on a Zed/Antelope cloud running Ubuntu host images, the kolla tags to templated incorrectly. For example, a Jammy host gets ``kolla_base_distro_and_version = rocky-jammy``. This is caused by Kayobe's ``globals.yml`` template (``ansible/roles/kolla-ansible/templates/kolla/globals.yml``) setting ``kolla_base_distro_version`` based on Kayobe's variable of the sam name, which references ``os_version``. We can avoid this by explicitly using facts for the version in SKC's ``globals.yml`` template.
2bd9093
to
e4f7036
Compare
Co-authored-by: Mark Goddard <[email protected]>
When running the kayobe-automation CI on a Zed/Antelope cloud running Ubuntu host images, these variable overrides cause the kolla tags to template incorrectly. For example, a Jammy host gets
kolla_base_distro_and_version = rocky-jammy
.Given we will not be performing any host OS migrations on Zed (or Antelope), we can remove these overrides and use the default values based on
os_distribution
.Bug explanation:
These variables end up with the following values, meaning the CI picks up rocky but keeps jammy.
This is because the variables are first templated under the Kayobe group_vars based on os_distribution, so the version maps to jammy.
kayobe/ansible/inventory/group/vars/all/kolla
Then, the base distro and the final variable are overwritten in kolla globals kayobe-config/etc/kayobe/kolla/globals.yml