[Kea-users] Fwd: KEA 1.1.0 and cassandra cluster

Lex Ivanov lex at ezelink.com
Thu Jan 12 13:29:05 UTC 2017


Andrei,

>For Cassandra, "name" is "keyspace". And I can confirm that those are
>the only options that differ. "port", "user" and "password" are all
>the same as in the other backends

Yes, now it's perfect.


On Thu, Jan 12, 2017 at 5:06 PM, Andrei Pavel <andrei.pavel at qualitance.com>
wrote:

> > That helped. But now I have to use only keyspace 'keatest', so the
> option "name" does not work. Otherwise I'm getting:
> >
> > 1484223384.208 [ERROR] (src/pool.cpp:388:virtual void
> cass::Pool::on_close(cass::Connection*)): Connection pool was unable to
> connect to host 192.168.144.133 because of the following error: Received
> error response 'Keyspace 'keatest' does not exist' (0x02002200)
> > 2017-01-12 16:16:24.213 ERROR [kea-dhcp4.dhcp4/10010] DHCP4_INIT_FAIL
> failed to initialize Kea server: configuration error using file
> '/usr/local/etc/kea/kea.conf': Unable to open database: could not connect
> to DB reason: Keyspace 'keatest' does not exist error code: 16777231
>
> For Cassandra, "name" is "keyspace". And I can confirm that those are
> the only options that differ. "port", "user" and "password" are all
> the same as in the other backends.
>
>
>
> On Thu, Jan 12, 2017 at 2:41 PM, Lex Ivanov <lex at ezelink.com> wrote:
> > Thank you, Andrei,
> >
> > That helped. But now I have to use only keyspace 'keatest', so the option
> > "name" does not work. Otherwise I'm getting:
> >
> > 1484223384.208 [ERROR] (src/pool.cpp:388:virtual void
> > cass::Pool::on_close(cass::Connection*)): Connection pool was unable to
> > connect to host 192.168.144.133 because of the following error: Received
> > error response 'Keyspace 'keatest' does not exist' (0x02002200)
> > 2017-01-12 16:16:24.213 ERROR [kea-dhcp4.dhcp4/10010] DHCP4_INIT_FAIL
> failed
> > to initialize Kea server: configuration error using file
> > '/usr/local/etc/kea/kea.conf': Unable to open database: could not
> connect to
> > DB reason: Keyspace 'keatest' does not exist error code: 16777231
> >
> > And concerning the second question:
> > yes, I'm using
> >
> > "interfaces-config": {
> >     "interfaces": [ "eth0", "eth1" ]
> > },
> >
> > But I want Kea to send 'default router' 10.4.0.1 to clients on eth0 and
> > 10.5.0.1 to clients on eth1.
> > Is it possible?
> >
> >
> > On Thu, Jan 12, 2017 at 3:43 PM, Andrei Pavel <
> andrei.pavel at qualitance.com>
> > wrote:
> >>
> >> Hello,
> >>
> >> Since you may specify multiple hosts, the "host" parameter has been
> >> renamed for Cassandra to "contact_points". Try this:
> >>
> >>   "lease-database": {
> >>     "type": "cql",
> >>     "contact_points": "192.168.144.164",
> >>     "name": "keadhcp1"
> >>   },
> >>
> >> This doesn't seem to be documented. I'll try to amend a pending pull
> >> request to fix this.
> >>
> >> The double interface however seems to be configurable according to the
> >> documentation [1]. You must specify the two interfaces in the
> >> configuration file. Search for "interfaces-config" for an example.
> >>
> >> "interfaces-config": {
> >>     "interfaces": [ "eth0", "eth1" ]
> >> },
> >>
> >> [1] https://jenkins.isc.org/job/Kea_doc/guide/kea-guide.html#
> idp1380266404
> >>
> >> On Thu, Jan 12, 2017 at 7:22 AM, Lex Ivanov <lex at ezelink.com> wrote:
> >> > Hi,
> >> >
> >> > I'm trying to run KEA with cassandra cluster, the settings are:
> >> >
> >> >   "lease-database": { "type": "cql", "host": "192.168.144.164",
> "name":
> >> > "keadhcp1" },
> >> >
> >> > But KEA seems to try to connect to 127.0.0.1 instead of one of the
> >> > nodes.
> >> >
> >> > The error is:
> >> >
> >> > 1484117590.591 [ERROR] (src/control_connection.cpp:263:virtual void
> >> > cass::ControlConnection::on_close(cass::Connection*)): Unable to
> >> > establish a
> >> > control connection to host 127.0.0.1 because of the following error:
> >> > Connect
> >> > error 'connection refused'
> >> > 2017-01-11 10:53:10.592 ERROR [kea-dhcp4.dhcp4/16700] DHCP4_INIT_FAIL
> >> > failed
> >> > to initialize Kea server: configuration error using file
> >> > '/usr/local/etc/kea/kea.conf': Unable to open database: could not
> >> > connect to
> >> > DB reason: No hosts available for the control connection error code:
> >> > 16777226
> >> >
> >> > Am I doing smth wrong or KEA is not supposed to connect to cassandra
> >> > other
> >> > than on localhost?
> >> >
> >> >
> >> > And one more question. I need KEA to work on 2 interfaces. How can I
> >> > assign
> >> > 2 different routers to these interfaces?
> >> >
> >> > Now the only option i found is to send multiple routers like this:
> >> >
> >> > {
> >> >            "name": "routers",
> >> >            "code": 3,
> >> >            "space": "dhcp4",
> >> >            "csv-format": true,
> >> >            "data": "10.4.0.1,10.5.0.1"
> >> >
> >> > }
> >> >
> >> >
> >> > --
> >> > Best regards,
> >> > Alex Ivanov
> >> >
> >> > EzeLink Telecom
> >> >
> >> > _______________________________________________
> >> > Kea-users mailing list
> >> > Kea-users at lists.isc.org
> >> > https://lists.isc.org/mailman/listinfo/kea-users
> >> >
> >>
> >>
> >>
> >> --
> >> Andrei Pavel  |  junior c++ developer  |  QUALITANCE™
> >> RO: +40 (748) 220 135  |  office: +40 (372) 944 741
> >> Opera Center bldg. 2, fl. 7-8, 2 Dr. Nicolae D. Staicovici, Bucharest
> >> 050556
> >> andrei.pavel at qualitance.com  |  www.qualitance.com
> >>
> >> a Deloitte Technology Fast 50 company | ranked in the Inc. 5000 Europe
> for
> >> 2016
> >>
> >> --
> >> The information contained in this email is confidential. It is
> >> intended only for the stated addressee and access to it by any other
> >> person is unauthorised. If you are not an addressee, you must not
> >> disclose, copy, circulate or in another way use or reply to the
> >> information contained in this email. Such unauthorised use may be
> >> unlawful. If you have received this email in error, please notify the
> >> sender immediately and delete all copies from your computer and
> >> network.
> >
> >
> >
> >
> > --
> > Best regards,
> > Alex Ivanov
> >
> > EzeLink Telecom
>
>
>
> --
> Andrei Pavel  |  junior c++ developer  |  QUALITANCE™
> RO: +40 (748) 220 135  |  office: +40 (372) 944 741
> Opera Center bldg. 2, fl. 7-8, 2 Dr. Nicolae D. Staicovici, Bucharest
> 050556
> andrei.pavel at qualitance.com  |  www.qualitance.com
>
> a Deloitte Technology Fast 50 company | ranked in the Inc. 5000 Europe for
> 2016
>
> --
> The information contained in this email is confidential. It is
> intended only for the stated addressee and access to it by any other
> person is unauthorised. If you are not an addressee, you must not
> disclose, copy, circulate or in another way use or reply to the
> information contained in this email. Such unauthorised use may be
> unlawful. If you have received this email in error, please notify the
> sender immediately and delete all copies from your computer and
> network.
>



-- 
Best regards,
Alex Ivanov

EzeLink Telecom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20170112/389a89c1/attachment.htm>


More information about the Kea-users mailing list