Re: [Kea-users] MySQL DB does not work when "lease-database" is set

2018-06-13 Thread Jason Guy
Hi Tomek,

The debian maintainer (Adam) is not responsive. I packaged 1.3.0, and
nagged him for 6 months to update the repo. He finally did in January, but
he has not integrated any of my fixes for 1.3.0 since January. I have been
running my 1.3.0 package in production for 6 months, and asked him
repeatedly to give me the permissions to update the repo, and push the
packages to stable. I am not sure what I can do... he does not seem to be
taking this seriously. What is the next step?

I will be starting the packaging of 1.4.0 next week.

Cheers,
Jason

On Wed, Jun 13, 2018 at 11:15 AM, Tomek Mrugalski  wrote:

> When talking to the Debian maintainer, you may also mention that 1.4.0
> is around the corner. Unless we hit something very unexpected, it should
> be released this Friday.
>
> Tomek
>
> On 13/06/2018 16:32, Kevin Olbrich wrote:
> > Package version on debian is still 1.1.0 on all branches.
> > I sent an email to the maintainer as 1.3.0 is the recommended release
> > and 1.1.0 is some kind of "please do not use this anymore"-release.
> >
> > PS: I am on MariaDB 10.2 on both server and client. This might be the
> > problem. I did not fix the problem yet as all leases are static. I will
> > look into this the coming weeks.
> >
> > Kind regards
> > Kevin
> >
> >
> >
> > 2018-03-19 14:26 GMT+01:00 Jason Guy  > >:
> >
> > Hi Kevin,
> >
> > What version of mysql are you using? I have no problems with mysql
> > 5.7 (client and server). Also, have you initialized the database?
> >
> > Finally, I assume you are using version 1.1 because that it the only
> > version available on Debian Apt... I am still trying to have the
> > maintainer take more of my patches, and push the 1.3 packages to the
> > testing repo, but it is not going well. If anyone knows the
> > maintainer for this package, or has any advice about how to get more
> > traction with the debian maintainer, I would be grateful. I have
> > done a lot of work to patch the 1.1 package to become the 1.3
> > package, and I am using in my testing. But I would like to make this
> > available to all. :)
> >
> > Cheers,
> > Jason
> >
> >
> > On Mon, Mar 19, 2018 at 9:22 AM, Thomas Markwalder  > > wrote:
> >
> > Hello Kevin:
> >
> > Kea is now up to version 1.3.0 with many new features added
> > since 1.1.0 so you may wish to consider upgrading.  However, Kea
> > 1.1.0 should function using MySQL for lease storage.  Kea
> > servers can emit a great deal of logging detail, provided you
> > have it enabled.   With sufficient logging enabled, you should
> > see some sort of response from Kea to client packets.  Even if
> > Kea elects to drop a packet, you should still it's arrival
> > logged and an explanation for why it was dropped.
> >
> > I would suggest, as a starting point that you dial up the
> > logging detail.  The following logger configuration will give
> > you maximum output to stdout (for more information on logging
> > please see the Logging chapter in the Kea Admin guide):
> >
> >
> > "Logging":
> > {
> >   "loggers": [
> > {
> >   "name": "kea-dhcp4",
> >   "output_options": [
> >   {
> > "output": "stdout"
> >   }
> >   ],
> >   "severity": "INFO",
> >   "debuglevel":99
> > }
> >   ]
> > }
> >
> > I have attached a log excerpt from a Kea 1.1.0 server I
> > configured to use MySQL lease storage so you can see what to
> expect.
> >
> >
> >
> > Regards,
> >
> > Thomas Markwalder
> > ISC Software Engineering
> >
> >
> >
> > On 03/18/2018 06:02 PM, Kevin Olbrich wrote:
> >> Hi,
> >>
> >> I set the following as my lease-db:
> >>
> >>   "lease-database": {
> >> "type": "mysql",
> >> "name": "dc_dhcp",
> >> "host": "192.168.30.2",
> >> "user": "dc_dhcp",
> >> "password": "xx"
> >> #"type": "memfile",
> >> #"persist": true,
> >> #"name": "/tmp/kea-leases4.csv",
> >> #"lfc-interval": 1800
> >>   },
> >>
> >> If I use MySQL, no lease is ever created. The server also
> >> never answers any DHCP request.
> >>
> >> Changing from mysql to memfile (commented out code above),
> >> everything works fine.
> >> No error is logged, "it just dont work" with mysql.
> >>
> >> root@dhcp01:~# kea-dhcp4 -v
> >> 1.1.0
> >>
> >> Debian Stretch, main repo.
> >>
> >> Is this a known issue?
> >>
> >> Kind regards,
> >> Kevin
> >>
> >>
> >> 

[Kea-users] Best practice recommendation for reserving/blocking out VIPs?

2018-06-13 Thread Klaus Steden
Hi everyone,

We had a new (for us) problem come up, and I wanted to poll the community
informally to see how everyone else has approached the issue.

We have a Windows cluster that uses L3 HA and passes a VIP back and forth
between two or more physical hosts.

To ensure that a Linux machine doesn't claim any of these addresses during
our standard provisioning procedure, we blocked out the IPs for these
physical hosts using reservations with the primary MACs of the machines
themselves, but we weren't sure what to do to then block out the VIP.

We settled on blocking out the VIP by creating a reservation using the MAC
address of an unused NIC on one of the physical machines, but that seems
like a bit of a kludge.

If you've had to deal with this problem out there in Kea-land, how did you
approach it?

cheers,
Klaus
___
Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users


[Kea-users] user-context

2018-06-13 Thread itay cohen
hi all

i'm trying to get user-context from a selected subnet on lease4_select  api
with a hook,

and i cant get it to work.


can some one help ?

{
"id": 1002,
"subnet": "1.2.2.0/28",
"pools": [
{
"pool": "1.2.2.3 - 1.2.2.10"
}
],
"relay": {
"ip-address": "1.2.2.1"
},
"user-context": {
"access": "FH"
}
}

thank you
___
Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users


Re: [Kea-users] MySQL DB does not work when "lease-database" is set

2018-06-13 Thread Tomek Mrugalski
When talking to the Debian maintainer, you may also mention that 1.4.0
is around the corner. Unless we hit something very unexpected, it should
be released this Friday.

Tomek

On 13/06/2018 16:32, Kevin Olbrich wrote:
> Package version on debian is still 1.1.0 on all branches.
> I sent an email to the maintainer as 1.3.0 is the recommended release
> and 1.1.0 is some kind of "please do not use this anymore"-release.
> 
> PS: I am on MariaDB 10.2 on both server and client. This might be the
> problem. I did not fix the problem yet as all leases are static. I will
> look into this the coming weeks.
> 
> Kind regards
> Kevin
> 
> 
> 
> 2018-03-19 14:26 GMT+01:00 Jason Guy  >:
> 
> Hi Kevin,
> 
> What version of mysql are you using? I have no problems with mysql
> 5.7 (client and server). Also, have you initialized the database?
> 
> Finally, I assume you are using version 1.1 because that it the only
> version available on Debian Apt... I am still trying to have the
> maintainer take more of my patches, and push the 1.3 packages to the
> testing repo, but it is not going well. If anyone knows the
> maintainer for this package, or has any advice about how to get more
> traction with the debian maintainer, I would be grateful. I have
> done a lot of work to patch the 1.1 package to become the 1.3
> package, and I am using in my testing. But I would like to make this
> available to all. :)
> 
> Cheers,
> Jason
> 
> 
> On Mon, Mar 19, 2018 at 9:22 AM, Thomas Markwalder  > wrote:
> 
> Hello Kevin:
> 
> Kea is now up to version 1.3.0 with many new features added
> since 1.1.0 so you may wish to consider upgrading.  However, Kea
> 1.1.0 should function using MySQL for lease storage.  Kea
> servers can emit a great deal of logging detail, provided you
> have it enabled.   With sufficient logging enabled, you should
> see some sort of response from Kea to client packets.  Even if
> Kea elects to drop a packet, you should still it's arrival
> logged and an explanation for why it was dropped.
> 
> I would suggest, as a starting point that you dial up the
> logging detail.  The following logger configuration will give
> you maximum output to stdout (for more information on logging
> please see the Logging chapter in the Kea Admin guide):
> 
> 
> "Logging":
> {
>   "loggers": [
>     {
>   "name": "kea-dhcp4",
>   "output_options": [
>   {
>     "output": "stdout"
>   }
>   ],
>   "severity": "INFO",
>   "debuglevel":99
>     }
>   ]
> }
> 
> I have attached a log excerpt from a Kea 1.1.0 server I
> configured to use MySQL lease storage so you can see what to expect.
> 
> 
> 
> Regards,
> 
> Thomas Markwalder
> ISC Software Engineering
> 
> 
> 
> On 03/18/2018 06:02 PM, Kevin Olbrich wrote:
>> Hi,
>>
>> I set the following as my lease-db:
>>
>>   "lease-database": {
>>     "type": "mysql",
>>     "name": "dc_dhcp",
>>     "host": "192.168.30.2",
>>     "user": "dc_dhcp",
>>     "password": "xx"
>> #        "type": "memfile",
>> #        "persist": true,
>> #        "name": "/tmp/kea-leases4.csv",
>> #        "lfc-interval": 1800
>>   },
>>
>> If I use MySQL, no lease is ever created. The server also
>> never answers any DHCP request.
>>
>> Changing from mysql to memfile (commented out code above),
>> everything works fine.
>> No error is logged, "it just dont work" with mysql.
>>
>> root@dhcp01:~# kea-dhcp4 -v
>> 1.1.0
>>
>> Debian Stretch, main repo.
>>
>> Is this a known issue?
>>
>> Kind regards,
>> Kevin
>>
>>
>> ___
>> Kea-users mailing list
>> Kea-users@lists.isc.org 
>> https://lists.isc.org/mailman/listinfo/kea-users
>> 
> 
> 
> ___
> Kea-users mailing list
> Kea-users@lists.isc.org 
> https://lists.isc.org/mailman/listinfo/kea-users
> 
> 
> 
> 
> ___
> Kea-users mailing list
> Kea-users@lists.isc.org 
> https://lists.isc.org/mailman/listinfo/kea-users
> 
> 
> 
> 
> 
> ___

Re: [Kea-users] MySQL DB does not work when "lease-database" is set

2018-06-13 Thread Kevin Olbrich
Package version on debian is still 1.1.0 on all branches.
I sent an email to the maintainer as 1.3.0 is the recommended release and
1.1.0 is some kind of "please do not use this anymore"-release.

PS: I am on MariaDB 10.2 on both server and client. This might be the
problem. I did not fix the problem yet as all leases are static. I will
look into this the coming weeks.

Kind regards
Kevin



2018-03-19 14:26 GMT+01:00 Jason Guy :

> Hi Kevin,
>
> What version of mysql are you using? I have no problems with mysql 5.7
> (client and server). Also, have you initialized the database?
>
> Finally, I assume you are using version 1.1 because that it the only
> version available on Debian Apt... I am still trying to have the maintainer
> take more of my patches, and push the 1.3 packages to the testing repo, but
> it is not going well. If anyone knows the maintainer for this package, or
> has any advice about how to get more traction with the debian maintainer, I
> would be grateful. I have done a lot of work to patch the 1.1 package to
> become the 1.3 package, and I am using in my testing. But I would like to
> make this available to all. :)
>
> Cheers,
> Jason
>
>
> On Mon, Mar 19, 2018 at 9:22 AM, Thomas Markwalder  wrote:
>
>> Hello Kevin:
>>
>> Kea is now up to version 1.3.0 with many new features added since 1.1.0
>> so you may wish to consider upgrading.  However, Kea 1.1.0 should function
>> using MySQL for lease storage.  Kea servers can emit a great deal of
>> logging detail, provided you have it enabled.   With sufficient logging
>> enabled, you should see some sort of response from Kea to client packets.
>> Even if Kea elects to drop a packet, you should still it's arrival logged
>> and an explanation for why it was dropped.
>>
>> I would suggest, as a starting point that you dial up the logging
>> detail.  The following logger configuration will give you maximum output to
>> stdout (for more information on logging please see the Logging chapter in
>> the Kea Admin guide):
>>
>>
>> "Logging":
>> {
>>   "loggers": [
>> {
>>   "name": "kea-dhcp4",
>>   "output_options": [
>>   {
>> "output": "stdout"
>>   }
>>   ],
>>   "severity": "INFO",
>>   "debuglevel":99
>> }
>>   ]
>> }
>>
>> I have attached a log excerpt from a Kea 1.1.0 server I configured to use
>> MySQL lease storage so you can see what to expect.
>>
>>
>>
>> Regards,
>>
>> Thomas Markwalder
>> ISC Software Engineering
>>
>>
>>
>> On 03/18/2018 06:02 PM, Kevin Olbrich wrote:
>>
>> Hi,
>>
>> I set the following as my lease-db:
>>
>>   "lease-database": {
>> "type": "mysql",
>> "name": "dc_dhcp",
>> "host": "192.168.30.2",
>> "user": "dc_dhcp",
>> "password": "xx"
>> #"type": "memfile",
>> #"persist": true,
>> #"name": "/tmp/kea-leases4.csv",
>> #"lfc-interval": 1800
>>   },
>>
>> If I use MySQL, no lease is ever created. The server also never answers
>> any DHCP request.
>>
>> Changing from mysql to memfile (commented out code above), everything
>> works fine.
>> No error is logged, "it just dont work" with mysql.
>>
>> root@dhcp01:~# kea-dhcp4 -v
>> 1.1.0
>>
>> Debian Stretch, main repo.
>>
>> Is this a known issue?
>>
>> Kind regards,
>> Kevin
>>
>>
>> ___
>> Kea-users mailing 
>> listkea-us...@lists.isc.orghttps://lists.isc.org/mailman/listinfo/kea-users
>>
>>
>>
>> ___
>> Kea-users mailing list
>> Kea-users@lists.isc.org
>> https://lists.isc.org/mailman/listinfo/kea-users
>>
>>
>
> ___
> Kea-users mailing list
> Kea-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
>
>
___
Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users