[Kea-users] IPv6 High Availability hooks library not accepting ipv6 address in square brackets for peers?

2022-02-25 Thread Dan Oachs
I currently have ipv6 dhcp working great with high availability and am
trying to set up a pair of dhcpv6 servers.  However when I try to configure
the hook with ipv6 addresses in square brackets as mentioned in the
documentation, I get this error

HA_CONFIGURATION_FAILED failed to configure High Availability hooks
library: bad url 'http://[2001:db8::1]:8080/': Failed to convert string to
address '[2001:db8::1]': Invalid argument for server

The line in my configuration looks like this...
{"name": "servername","basic-auth-user":
"usernamehere","basic-auth-password": "passwordhere","url":
"http://[2001:db8::1]:8080/","role":
"primary"}

Do I have the configuration wrong, or is there a bug here?  Hopefully I am
missing something simple.

Thanks,
  Dan Oachs
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit 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] IPv6 High Availability hooks library not accepting ipv6 address in square brackets for peers?

2022-02-25 Thread Peter Davies
Hi Dan,

   You don't mention  what version of Kea you are running,  but I think this 
may be a known issue. One which was fixed in release 2.1.2


see https://gitlab.isc.org/isc-projects/kea/-/issues/2264 "error parsing url 
with ipv6 address"


Kind Regard Peter


Sent from Outlook<http://aka.ms/weboutlook>

From: Kea-users  on behalf of Dan Oachs 

Sent: 25 February 2022 22:36
To: kea-users@lists.isc.org 
Subject: [Kea-users] IPv6 High Availability hooks library not accepting ipv6 
address in square brackets for peers?

I currently have ipv6 dhcp working great with high availability and am trying 
to set up a pair of dhcpv6 servers.  However when I try to configure the hook 
with ipv6 addresses in square brackets as mentioned in the documentation, I get 
this error

HA_CONFIGURATION_FAILED failed to configure High Availability hooks library: 
bad url 'http://[2001:db8::1]:8080/': Failed to convert string to address 
'[2001:db8::1]': Invalid argument for server

The line in my configuration looks like this...
{"name": "servername","basic-auth-user": "usernamehere","basic-auth-password": 
"passwordhere","url": "http://[2001:db8::1]:8080/","role": "primary"}

Do I have the configuration wrong, or is there a bug here?  Hopefully I am 
missing something simple.

Thanks,
  Dan Oachs

-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit 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] IPv6 High Availability hooks library not accepting ipv6 address in square brackets for peers?

2022-02-25 Thread Dan Oachs
Thanks.  I should know better than ask for help without mentioning the
version number I am running.  :)That looks exactly like the error I am
seeing.  Good to know it should get fixed in the next update.

I am using version 2.0.1.

Thanks,
   Dan Oachs


On Fri, Feb 25, 2022 at 4:08 PM Peter Davies <
peter.watson.dav...@outlook.com> wrote:

> Hi Dan,
>
>You don't mention  what version of Kea you are running,  but I think
> this may be a known issue. One which was fixed in release 2.1.2
>
>
> see https://gitlab.isc.org/isc-projects/kea/-/issues/2264 "error parsing
> url with ipv6 address"
>
>
> Kind Regard Peter
>
>
> Sent from Outlook <http://aka.ms/weboutlook>
> --
> *From:* Kea-users  on behalf of Dan
> Oachs 
> *Sent:* 25 February 2022 22:36
> *To:* kea-users@lists.isc.org 
> *Subject:* [Kea-users] IPv6 High Availability hooks library not accepting
> ipv6 address in square brackets for peers?
>
> I currently have ipv6 dhcp working great with high availability and am
> trying to set up a pair of dhcpv6 servers.  However when I try to configure
> the hook with ipv6 addresses in square brackets as mentioned in the
> documentation, I get this error
>
> HA_CONFIGURATION_FAILED failed to configure High Availability hooks
> library: bad url 'http://[2001:db8::1]:8080/': Failed to convert string
> to address '[2001:db8::1]': Invalid argument for server
>
> The line in my configuration looks like this...
> {"name": "servername","basic-auth-user":
> "usernamehere","basic-auth-password": "passwordhere","url": 
> "http://[2001:db8::1]:8080/","role":
> "primary"}
>
> Do I have the configuration wrong, or is there a bug here?  Hopefully I am
> missing something simple.
>
> Thanks,
>   Dan Oachs
>
>
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit 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