services: Don't try to list/cleanup templates when OVN doesn't suppor…#3523
Conversation
|
FYI @tssurya @flavio-fernandes @trozet this still fails because libovsdb refuses to connect to an old database (that doesn't contain the chassis_template_var table). I thought libovsdb was enhanced to support that, do you know what happened? |
|
heh, I wonder if you need this PR merged first: |
@flavio-fernandes I don't know. Does that enable support to connect to a database that has an older schema (missing some tables) compared to the schema that was used to generate the model? |
…t that. Spotted in upstream ovn-org/ovn CI when running against ovn versions <=22.09 which don't support component templates: https://github.com/ovn-org/ovn/actions/runs/4628617882 Reported error: failed to sync chassis: error: failed to get template var list: error: Wrong parameter type (*nbdb.ChassisTemplateVar): Model not found in Database Model Fixes: 4b3475a ("services: Use OVN template load balancers for NodePort services.") Signed-off-by: Dumitru Ceara <dceara@redhat.com>
2457287 to
2a89def
Compare
|
/lgtm |
In a private discussion @trozet pointed out that "older libovsdb should be able to connect to newer OVN schema". So that explains why i'm getting the above when trying to run against ovn 22.09. Assuming that in the future libovsdb will be able "to connect to older OVN schema", the PR is still needed. If not, we might as well remove the |
|
Known CI failure: |
|
/retest-failed |
…t that.
Spotted in upstream ovn-org/ovn CI when running against ovn versions <=22.09 which don't support component templates:
https://github.com/ovn-org/ovn/actions/runs/4628617882
Reported error:
failed to sync chassis: error: failed to get template var list: error:
Wrong parameter type (*nbdb.ChassisTemplateVar): Model not found in
Database Model
Fixes: 4b3475a ("services: Use OVN template load balancers for NodePort services.")