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