Closed paupal1 closed 2 months ago
Hi @paupal1,
Object type nbdb.NBGlobal contains field HvCfgTimestamp (int) ovs tag hv_cfg_timestamp: Column does not exist in schema.
Object type nbdb.LogicalRouterPort contains field Ipv6Prefix ([]string) ovs tag ipv6_prefix: Column does not exist in schema
Object type nbdb.LogicalRouterStaticRoute contains field BFD (*string) ovs tag bfd: Column does not exist in schema. Mapper Error
, etc.
Can you make sure that the version of OVN that you are using matches what ovn-kubernetes expects? Your errors indicate that your version of OVN is older than what ovn-kubernetes would expect, and it does not contain the required fields in its database.
E.g., for fedora, check the Dockerfile for a version of OVN that should work:
[akaris@linux ovn-kubernetes (master)]$ grep 'ARG ovn' ./dist/images/Dockerfile.fedora
ARG ovnver=ovn-21.09.0-3.fc33
Let's e.g. look at the model for LogicalRouterStaticRoute https://github.com/ovn-org/ovn-kubernetes/blob/master/go-controller/pkg/nbdb/logical_router_static_route.go
// LogicalRouterStaticRoute defines an object in Logical_Router_Static_Route table
type LogicalRouterStaticRoute struct {
UUID string `ovsdb:"_uuid"`
BFD *string `ovsdb:"bfd"`
ExternalIDs map[string]string `ovsdb:"external_ids"`
IPPrefix string `ovsdb:"ip_prefix"`
Nexthop string `ovsdb:"nexthop"`
Options map[string]string `ovsdb:"options"`
OutputPort *string `ovsdb:"output_port"`
Policy *LogicalRouterStaticRoutePolicy `ovsdb:"policy"`
}
When you look at the OVN git blame, you can see that the BFD field was only added 10 months ago: https://github.com/ovn-org/ovn/blame/f6aba21c9de8952beccf7ee7e98cfa28618f1edf/ovn-nb.ovsschema#L417
Here: https://github.com/ovn-org/ovn/commit/6e0a69ad4bcdf9e4cace5c73ef48ab06065e8519
Regards,
Andreas
你好@paupal1,
Object type nbdb.NBGlobal contains field HvCfgTimestamp (int) ovs tag hv_cfg_timestamp: Column does not exist in schema.
Object type nbdb.LogicalRouterPort contains field Ipv6Prefix ([]string) ovs tag ipv6_prefix: Column does not exist in schema
Object type nbdb.LogicalRouterStaticRoute contains field BFD (*string) ovs tag bfd: Column does not exist in schema. Mapper Error
, ETC。你能确保你使用的 OVN 版本与 ovn-kubernetes 期望的相匹配吗?您的错误表明您的 OVN 版本比 ovn-kubernetes 预期的要旧,并且它的数据库中不包含必填字段。
例如,对于 fedora,检查 Dockerfile 中应该工作的 OVN 版本:
[akaris@linux ovn-kubernetes (master)]$ grep 'ARG ovn' ./dist/images/Dockerfile.fedora ARG ovnver=ovn-21.09.0-3.fc33
让我们看看 LogicalRouterStaticRoute 的模型 https://github.com/ovn-org/ovn-kubernetes/blob/master/go-controller/pkg/nbdb/logical_router_static_route.go
// LogicalRouterStaticRoute defines an object in Logical_Router_Static_Route table type LogicalRouterStaticRoute struct { UUID string `ovsdb:"_uuid"` BFD *string `ovsdb:"bfd"` ExternalIDs map[string]string `ovsdb:"external_ids"` IPPrefix string `ovsdb:"ip_prefix"` Nexthop string `ovsdb:"nexthop"` Options map[string]string `ovsdb:"options"` OutputPort *string `ovsdb:"output_port"` Policy *LogicalRouterStaticRoutePolicy `ovsdb:"policy"` }
查看OVN git blame,可以看到BFD字段是10个月前才添加的: https://github.com/ovn-org/ovn/blame/f6aba21c9de8952beccf7ee7e98cfa28618f1edf/ovn-nb.ovsschema#L417
问候,
安德烈亚斯
have similar issues。 but my ovn version is newer。 please help me
i can not find such as table Mirror in ubuntu:22.04, is it a bug? i need copy ovn bin file to container? https://manpages.ubuntu.com/manpages/jammy/man5/ovn-nb.5.html#nat%20table
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
Trying to test up ovn-kubernetes locally to do some testing/experimentation. I ran into this and am unsure how to mitigate or continue. Would love any any pointers. db seems to be running on right ports 6641 & 6642.