Closed traskat closed 1 year ago
What does the failed task look like? That the label is missing is true, I'll see why that was lost and add it again. But that should not actually lead to an error.
the failed task looks like this:
TASK [nova : Check if Nova API image supports KOLLA_UPGRADE_CHECK] *********************************************************************************************************************
ok: [ctrl1]
fatal: ctrl2]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: list object has no element 0\n\nThe error appears to be in '/ansible/roles/nova/tasks/upgrade.yml': line 10, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Check if Nova API image supports KOLLA_UPGRADE_CHECK\n ^ here\n"}
Looks like nova_api_image_info.images
is empty. Can you check the task https://opendev.org/openstack/kolla-ansible/src/commit/e5b102696bfc241cad5ce5f9850c48cda5cdc5ac/ansible/roles/nova/tasks/upgrade.yml#L2-L8.
This is now (since 2023.1) done differently in current versions of Kolla. The mentioned tasks are not longer available.
Hey,
it seems that kolla need a label on the image of the nova_api. I am trying to upgrade to zed. Here a code example: https://opendev.org/openstack/kolla-ansible/src/commit/e5b102696bfc241cad5ce5f9850c48cda5cdc5ac/ansible/roles/nova/tasks/upgrade.yml#L12
here it will check if the string "upgrade_check" is in the labels
which is need that the block below is running. https://opendev.org/openstack/kolla-ansible/src/commit/e5b102696bfc241cad5ce5f9850c48cda5cdc5ac/ansible/roles/nova/tasks/upgrade.yml#L45
here is an example for the for the labels on the zed image:
Same is for yoga and wallaby.
In short i think the label upgrade_check needs to be that the nova upgrade check block can run otherwise it might be other upgrades are skipped or not running at all.
Thanks for the feedback.