[ovs-discuss] assertion !idl->change_seqno failed in ovsdb_idl_get_mode()

Ben Pfaff blp at nicira.com
Fri Apr 24 15:15:04 UTC 2015


On Fri, Apr 24, 2015 at 12:46:06PM +0500, david jhon wrote:
> I am trying to insert records in ovsdb customized table from within
> openvswitch but I am facing following issues on calling
> ovsdb_idl_add_column function :
> 
> ovs|01659|util(handler21)|EMER|../lib/ovsdb-idl.c:451: assertion
> !idl->change_seqno failed in ovsdb_idl_get_mode().
> 
> I am using same idl struct which is being initialized in bridge_init()
> method by vswitchd/bridge.c.
> I am using following steps to insert record in ovsdb.
> 
> static void test(const char *name, const char *brname)
> {
>   const struct ovsrec_open_vswitch *cfg = ovsrec_open_vswitch_first(idl);
>   const struct ovsrec_bridge *br_cfg;
>   if(cfg) {
>     ovsdb_idl_add_column(idl, &ovsrec_bridge_col_test);
>     ovsdb_idl_add_column(idl, &ovsrec_test_col_agent);
>     ovsdb_idl_add_column(idl, &ovsrec_test_col_name);

You have to add columns before starting to work with the database.  Put
these with the other ovsdb_idl_add_column() invocations in
bridge_init().



More information about the discuss mailing list