[Kea-users] Cassandra broken in latest?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] Cassandra broken in latest?

Dajka Tamás

Hi all,

 

I’ve built latest KEA from source (github), but connecting to Cassandra seems to be broken. Error message:

 

2020-01-06 08:57:17.544 ERROR [kea-dhcp6.dhcp6/28607] DHCP6_CONFIG_LOAD_FAIL configuration error using file: /etc/kea/kea-dhcp6.conf, reason: Unable to open database: Statement GET_VERSION failed, Kea error: CqlExchange::executeSelect(): cass_session_execute() != CASS_OK, Cassandra error code: Read timeout, Cassandra future error: Operation timed out - received only 1 responses.

2020-01-06 08:57:17.545 ERROR [kea-dhcp6.dhcp6/28607] DHCP6_INIT_FAIL failed to initialize Kea server: configuration error using file '/etc/kea/kea-dhcp6.conf': Unable to open database: Statement GET_VERSION failed, Kea error: CqlExchange::executeSelect(): cass_session_execute() != CASS_OK, Cassandra error code: Read timeout, Cassandra future error: Operation timed out - received only 1 responses.

 

Keyspace is there, I’ve initialized/upgraded tables with kea-admin; cqlsh from KEA host to remote Cassandra host works:

 

[cqlsh 5.0.1 | Cassandra 3.11.5 | CQL spec 3.4.4 | Native protocol v4]

Use HELP for help.

cqlsh> use keadhcpv6;

cqlsh:keadhcpv6> SELECT version, minor FROM schema_version;

 

version | minor

---------+-------

       5 |     0

 

(1 rows)

cqlsh:keadhcpv6>

 

DataStax driver used 2.14.1.

 

After doing some tcpdump, it seems that the statement „SELECT version, minor FROM schema_version;” is sent to Cassandra, but only PREPARED (and not executed afterwards). (Cassandra responses prepared (4) to query, but only noop is sent by KEA afterwards)

 

Did I miss something or just misconfigured?

 

Thanks,

 

              Tom

 

 


_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] Cassandra broken in latest?

Dajka Tamás

Found the issue… if you specify just one contact_point(s) and it’s not 127.0.0.1, than you must set consistency to ’one’, instead of the default ’quorum’.

 

From: Kea-users [mailto:[hidden email]] On Behalf Of Dajka Tamás
Sent: Monday, January 6, 2020 9:15 AM
To: [hidden email]
Subject: [Kea-users] Cassandra broken in latest?

 

Hi all,

 

I’ve built latest KEA from source (github), but connecting to Cassandra seems to be broken. Error message:

 

2020-01-06 08:57:17.544 ERROR [kea-dhcp6.dhcp6/28607] DHCP6_CONFIG_LOAD_FAIL configuration error using file: /etc/kea/kea-dhcp6.conf, reason: Unable to open database: Statement GET_VERSION failed, Kea error: CqlExchange::executeSelect(): cass_session_execute() != CASS_OK, Cassandra error code: Read timeout, Cassandra future error: Operation timed out - received only 1 responses.

2020-01-06 08:57:17.545 ERROR [kea-dhcp6.dhcp6/28607] DHCP6_INIT_FAIL failed to initialize Kea server: configuration error using file '/etc/kea/kea-dhcp6.conf': Unable to open database: Statement GET_VERSION failed, Kea error: CqlExchange::executeSelect(): cass_session_execute() != CASS_OK, Cassandra error code: Read timeout, Cassandra future error: Operation timed out - received only 1 responses.

 

Keyspace is there, I’ve initialized/upgraded tables with kea-admin; cqlsh from KEA host to remote Cassandra host works:

 

[cqlsh 5.0.1 | Cassandra 3.11.5 | CQL spec 3.4.4 | Native protocol v4]

Use HELP for help.

cqlsh> use keadhcpv6;

cqlsh:keadhcpv6> SELECT version, minor FROM schema_version;

 

version | minor

---------+-------

       5 |     0

 

(1 rows)

cqlsh:keadhcpv6>

 

DataStax driver used 2.14.1.

 

After doing some tcpdump, it seems that the statement „SELECT version, minor FROM schema_version;” is sent to Cassandra, but only PREPARED (and not executed afterwards). (Cassandra responses prepared (4) to query, but only noop is sent by KEA afterwards)

 

Did I miss something or just misconfigured?

 

Thanks,

 

              Tom

 

 


_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users