Your message dated Thu, 22 Nov 2012 10:02:39 +0000 with message-id <[email protected]> and subject line Bug#675913: fixed in resource-agents 1:3.9.3+git20121009-2 has caused the Debian Bug report #675913, regarding ldirectord failed to start, RFC2553 compatible getaddrinfo/getnameinfo to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 675913: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675913 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: resource-agents Severity: grave Tags: upstream patch ldirectord failed to start, with following error: Subroutine main::pack_sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm line 67. at /usr/sbin/ldirectord line 831 Subroutine main::unpack_sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm line 67. at /usr/sbin/ldirectord line 831 Subroutine main::sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm line 67. at /usr/sbin/ldirectord line 831 Subroutine main::pack_sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060 Subroutine main::unpack_sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060 Subroutine main::sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060 Subroutine main::pack_sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm line 67. at /usr/sbin/ldirectord line 831 Subroutine main::unpack_sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm line 67. at /usr/sbin/ldirectord line 831 Subroutine main::sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm line 67. at /usr/sbin/ldirectord line 831 Subroutine main::pack_sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060 Subroutine main::unpack_sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060 Subroutine main::sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060 After comment out `use Socket6;`, got following error: Bareword "NI_NUMERICHOST" not allowed while "strict subs" in use at /usr/sbin/ldirectord line 5046. Bareword "NI_NUMERICSERV" not allowed while "strict subs" in use at /usr/sbin/ldirectord line 5046. Execution of /usr/sbin/ldirectord aborted due to compilation errors. Additional dependency required: libsocket-getaddrinfo-perl -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (300, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dashDescription: <short summary of the patch> TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . resource-agents (1:3.9.2-5) unstable; urgency=high . * debian/control: Fix the Conflicts and Replaces lines of resource-agents to make sure that cluster-agents and resource-agents are mutually exclusive. Setting the urgency to high because this bug keeps people from running the whole clusterstack (Closes: #646110) * debian/patches/ocf-asterisk: Include the Asterisk PBX OCF resource agent written by Florian Haas, Andreas Kurz and me, sponsored by hastexo Author: Martin Loschwitz <[email protected]> Bug-Debian: http://bugs.debian.org/646110 --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: <vendor|upstream|other>, <url of original patch> Bug: <url in upstream bugtracker> Bug-Debian: http://bugs.debian.org/<bugnumber> Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> Forwarded: <no|not-needed|url proving that it has been forwarded> Reviewed-By: <name and email of someone who approved the patch> Last-Update: <YYYY-MM-DD> Index: resource-agents-3.9.2/ldirectord/ldirectord.in =================================================================== --- resource-agents-3.9.2.orig/ldirectord/ldirectord.in 2012-06-04 13:24:40.000000000 +0800 +++ resource-agents-3.9.2/ldirectord/ldirectord.in 2012-06-04 14:16:33.994237831 +0800 @@ -828,7 +828,8 @@ #use English; #use Time::HiRes qw( gettimeofday tv_interval ); use Socket; -use Socket6; +use Socket::GetAddrInfo qw( getaddrinfo getnameinfo NI_NUMERICHOST NI_NUMERICSERV NI_NAMEREQD ); +#use Socket6; use Sys::Hostname; use POSIX qw(setsid :sys_wait_h); use Sys::Syslog qw(:DEFAULT setlogsock); @@ -5039,17 +5040,21 @@ if ($name =~ /\[(.*)\]/) { $name = $1; } - my @host = getaddrinfo($name, 0, $af); - if (!defined($host[3])) { - return undef; - } - my @ret = getnameinfo($host[3], NI_NUMERICHOST | NI_NUMERICSERV); - if ($host[0] == AF_INET6) { - return "[$ret[0]]"; - } - else { - return $ret[0]; + my %hints = ( family => $af ); + my ( $err, @res ) = getaddrinfo($name, 0, \%hints); + return undef if ($err); + while( my $ai = shift @res ) { + my ( $err, $hostname, $servicename ) = getnameinfo( $ai->{addr} ); + if (!$err) { + if ($ai->{family} == AF_INET6) { + return "[$hostname]"; + } + else { + return $hostname; + } + } } + return undef; } # ld_gethostbyaddr @@ -5064,13 +5069,13 @@ my ($ip)=(@_); $ip = &ld_strip_brackets($ip); - my @host = getaddrinfo($ip,0); - if (!defined($host[3])) { - return undef; + my ( $err, @res ) = getaddrinfo($ip,0); + return undef if ($err); + while( my $ai = shift @res ) { + my ( $err, $host, $service ) = getnameinfo($ai->{addr}, NI_NAMEREQD); + return $host unless($err); } - my @ret = getnameinfo($host[3], NI_NAMEREQD); - return undef unless(scalar(@ret) == 2); - return $ret[0]; + return undef; } # ld_getservbyname
--- End Message ---
--- Begin Message ---Source: resource-agents Source-Version: 1:3.9.3+git20121009-2 We believe that the bug you reported is fixed in the latest version of resource-agents, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Martin Loschwitz <[email protected]> (supplier of updated resource-agents package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.8 Date: Thu, 22 Nov 2012 09:33:56 +0000 Source: resource-agents Binary: resource-agents resource-agents-dev ldirectord Architecture: source amd64 all Version: 1:3.9.3+git20121009-2 Distribution: unstable Urgency: low Maintainer: Debian HA Maintainers <[email protected]> Changed-By: Martin Loschwitz <[email protected]> Description: ldirectord - Monitors virtual services provided by LVS resource-agents - Cluster Resource Agents resource-agents-dev - Cluster Resource Agents Development files Closes: 675913 Changes: resource-agents (1:3.9.3+git20121009-2) unstable; urgency=low . * debian/patches/fix-gethostinfo-v2.patch: Applied a patch by Zang MingJie, edited by Ruben Laban, to fix a problem related to IPv6 in ldirectord (Closes: #675913) Checksums-Sha1: 3e40d0a1bfa354c728ad159a5fbf42bf6a17d0a8 1730 resource-agents_3.9.3+git20121009-2.dsc 0b2fc5b66b60f57ee1a2f49d83192f7b88e24d63 15972 resource-agents_3.9.3+git20121009-2.debian.tar.gz b8432d94e00497f352940fa603363d6a1fa3d8f2 571690 resource-agents_3.9.3+git20121009-2_amd64.deb 622e0e5268b4889d53717212c5fbc5ea57082228 13632 resource-agents-dev_3.9.3+git20121009-2_amd64.deb 6e9baef1545976c736e84a3f57bc0175b9f4d8d3 67240 ldirectord_3.9.3+git20121009-2_all.deb Checksums-Sha256: 86e14f690d820fd26a35e481cebcb06cb2a8250773096813bd9127c2b64486a5 1730 resource-agents_3.9.3+git20121009-2.dsc eda5b030c49ebf67cac17becb2db5705875cd3454e6d5a72d255f147a17d1d84 15972 resource-agents_3.9.3+git20121009-2.debian.tar.gz 48828d0ff22b875c8c686484f5990484e9fef4d1dc43eb1906e480610997b248 571690 resource-agents_3.9.3+git20121009-2_amd64.deb c7013cf8f0ca485a415ac7f3c2641c4650c972eea9092c66213f7671065fc013 13632 resource-agents-dev_3.9.3+git20121009-2_amd64.deb 20df0a461086a20b669fbf5d4dd0635a39c9e8b2e05ac66ec0f4572b7460fd28 67240 ldirectord_3.9.3+git20121009-2_all.deb Files: 544e0f07d6689da2c449f48c66c57e59 1730 admin optional resource-agents_3.9.3+git20121009-2.dsc bc69d45f1d8e8a60f74cd14d36cc2426 15972 admin optional resource-agents_3.9.3+git20121009-2.debian.tar.gz fc4c539a44a1ed251ff35d4e07688fb1 571690 admin optional resource-agents_3.9.3+git20121009-2_amd64.deb 3ac40d37e3c5670b37210f3246006893 13632 admin optional resource-agents-dev_3.9.3+git20121009-2_amd64.deb a81b72d8959a00703152c92b0998119e 67240 admin extra ldirectord_3.9.3+git20121009-2_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlCt9BgACgkQHPo+jNcUXjDzGQCgp/9cmGoWAdL8UNfw1y7B5vdo TCsAniGa53QJuqhlT4DkVnEqZqTjABr2 =VYZ0 -----END PGP SIGNATURE-----
--- End Message ---

