Bug#668242:

2016-10-06 Thread Dave Whitla
I’ll take a look at a patch, but I’m surprised that this is in stable given 
that it doesn’t implement its documented contract.


Bug#668242: isc-dhcp-server-ldap: creates invalid config for dhcpHost without dhcpHWAddress

2016-10-05 Thread Dave Whitla
This issue persists 4 years later in Jessie 4.3.1-6+deb8u2.
It may be minor for the maintainer but its a showstopper for my usage.



Bug#697676: lvm2: cLVM binary package is missing

2013-01-08 Thread Dave Whitla
Package: lvm2
Version: 2.02.95-6
Severity: normal

Dear Maintainer,

Installation of clvm from the sid repository currently fails unless versions 
are overridden due to the cLVM binary not having been built for the current 
upstream LVM version.
While building clvm (and enabling cluster locking in lvm2 and libs) is not a 
major issue for me, the following comment I found in the changelog is:

lvm2 (2.02.95-6) unstable; urgency=low

 * Drop cluster (clvm) support. It never properly worked and is more dead
   than alive.

-- Bastian Blank wa...@debian.org  Wed, 02 Jan 2013 11:11:41 +0100

A side effect of disabling this feature is removal of support for a documented 
feature (cluster locking using locking_type=2) in the config parser resulting 
in a bricked server on reboot after a package ugrade.
The maintainer may not use clvm but many of us who have built large scale 
production clusters do.
clvm works fine for me and certainly isn't dead.
Please reconsider your position concerning its distribution on Debian.


-- System Information:
Debian Release: 7.0
 APT prefers unstable
 APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lvm2 depends on:
ii  dmsetup   2:1.02.74-6
ii  initscripts   2.88dsf-35
ii  libc6 2.13-38
ii  libdevmapper-event1.02.1  2:1.02.74-6
ii  libdevmapper1.02.12:1.02.74-6
ii  libreadline5  5.2+dfsg-1
ii  libudev0  175-7.1
ii  lsb-base  4.1+Debian9

lvm2 recommends no packages.

lvm2 suggests no packages.

-- Configuration Files:
/etc/lvm/lvm.conf changed [not included]

-- no debconf information


This email (including any attachments) is confidential and may be privileged. 
If you have received it in error, please notify the sender by return email and 
delete this message from your system. Any unauthorised use or dissemination of 
this message in whole or in part is strictly prohibited. Please note that 
emails are susceptible to change and we will not be liable for the improper or 
incomplete transmission of the information contained in this communication nor 
for any delay in its receipt or damage to your system. We do not guarantee that 
the integrity of this communication has been maintained nor that this 
communication is free of viruses, interceptions or interference.


Bug#666230: libldap-2.4-2: ldap_result returns -1 when called

2012-04-16 Thread Dave Whitla
Please add debian/patches/fix-writeable-state-detection:

--- a/libraries/libldap/ldap-int.h
+++ b/libraries/libldap/ldap-int.h
@@ -622,6 +622,7 @@
 LDAP_F (void) ldap_mark_select_write( LDAP *ld, Sockbuf *sb );
 LDAP_F (void) ldap_mark_select_read( LDAP *ld, Sockbuf *sb );
 LDAP_F (void) ldap_mark_select_clear( LDAP *ld, Sockbuf *sb );
+LDAP_F (void) ldap_clear_select_write( LDAP *ld, Sockbuf *sb );
 LDAP_F (int) ldap_is_read_ready( LDAP *ld, Sockbuf *sb );
 LDAP_F (int) ldap_is_write_ready( LDAP *ld, Sockbuf *sb );

--- a/libraries/libldap/open.c
+++ b/libraries/libldap/open.c
@@ -344,7 +344,6 @@

/* Add the connection to the *LDAP's select pool */
ldap_mark_select_read( ld, conn-lconn_sb );
-   ldap_mark_select_write( ld, conn-lconn_sb );

*ldp = ld;
return LDAP_SUCCESS;
@@ -502,7 +501,6 @@

/* Add the connection to the *LDAP's select pool */
ldap_mark_select_read( ld, c-lconn_sb );
-   ldap_mark_select_write( ld, c-lconn_sb );

/* Make this connection an LDAP V3 protocol connection */
rc = LDAP_VERSION3;
--- a/libraries/libldap/os-ip.c
+++ b/libraries/libldap/os-ip.c
@@ -966,6 +966,32 @@
 #endif
 }

+void
+ldap_clear_select_write( LDAP *ld, Sockbuf *sb )
+{
+   struct selectinfo   *sip;
+   ber_socket_tsd;
+
+   sip = (struct selectinfo *)ld-ld_selectinfo;
+
+   ber_sockbuf_ctrl( sb, LBER_SB_OPT_GET_FD, sd );
+
+#ifdef HAVE_POLL
+   /* for UNIX poll(2) */
+   {
+   int i;
+   for(i=0; i  sip-si_maxfd; i++) {
+   if( sip-si_fds[i].fd == sd ) {
+   sip-si_fds[i].events = ~POLL_WRITE;
+   }
+   }
+   }
+#else
+   /* for UNIX select(2) */
+   FD_CLR( sd, sip-si_writefds );
+#endif
+}
+

 int
 ldap_is_write_ready( LDAP *ld, Sockbuf *sb )
--- a/libraries/libldap/request.c
+++ b/libraries/libldap/request.c
@@ -202,6 +202,7 @@

/* sent -- waiting for a response */
ldap_mark_select_read( ld, lc-lconn_sb );
+   ldap_clear_select_write( ld, lc-lconn_sb );
}
return 0;
 }
--- a/libraries/libldap/result.c
+++ b/libraries/libldap/result.c
@@ -302,7 +302,7 @@
if ( ber_sockbuf_ctrl( lc-lconn_sb,
LBER_SB_OPT_DATA_READY, NULL ) )
{
-   lc_ready = 1;
+   lc_ready = 2;   /* ready at ber level, 
not socket level */
break;
}
}
@@ -373,8 +373,8 @@
}
}
LDAP_MUTEX_UNLOCK( ld-ld_req_mutex );
-   /* Quit looping if no one handled any events */
-   if (!serviced)
+   /* Quit looping if no one handled any socket 
events */
+   if (!serviced  lc_ready == 1)
rc = -1;
}
LDAP_MUTEX_UNLOCK( ld-ld_conn_mutex );



This email (including any attachments) is confidential and may be privileged. 
If you have received it in error, please notify the sender by return email and 
delete this message from your system. Any unauthorised use or dissemination of 
this message in whole or in part is strictly prohibited. Please note that 
emails are susceptible to change and we will not be liable for the improper or 
incomplete transmission of the information contained in this communication nor 
for any delay in its receipt or damage to your system. We do not guarantee that 
the integrity of this communication has been maintained nor that this 
communication is free of viruses, interceptions or interference.


Bug#668242: isc-dhcp-server-ldap: creates invalid config for dhcpHost without dhcpHWAddress

2012-04-09 Thread Dave Whitla
Package: isc-dhcp-server-ldap
Version: 4.2.2.dfsg.1-4
Severity: important

For example, the following LDAP config:

dn: cn=xenmaster,cn=reservations,cn=config,ou=dhcp,dc=hive
objectClass: dhcpHost
objectClass: top
objectClass: dhcpOptions
cn: xenmaster
dhcpOption: dhcp-client-identifier xenmaster
dhcpStatements: fixed-address 10.0.0.100

yields in the generated config:

host xenmasterfixed-address 10.0.0.100;
option dhcp-client-identifier xenmaster;
}

while the following LDAP config:

dn: cn=xenmaster,cn=reservations,cn=config,ou=dhcp,dc=hive
objectClass: dhcpHost
objectClass: top
objectClass: dhcpOptions
cn: xenmaster
dhcpHWAddress: ethernet ff:ff:ff:ff:ff:ff
dhcpOption: dhcp-client-identifier xenmaster
dhcpStatements: fixed-address 10.0.0.100

yields in the generated config:

host xenmaster {
hardware ethernet ff:ff:ff:ff:ff:ff;
fixed-address 10.0.0.100;
option dhcp-client-identifier xenmaster;
}


- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages isc-dhcp-server-ldap depends on:
ii  debianutils  4.2.1
ii  isc-dhcp-common  4.2.2.dfsg.1-4
ii  isc-dhcp-server  4.2.2.dfsg.1-4
ii  libc62.13-27
ii  libldap-2.4-22.4.28-1.2

isc-dhcp-server-ldap recommends no packages.

isc-dhcp-server-ldap suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#644876: initramfs-tools: Boot failure from software RAID1 + LVM2 by timing of mdadm + lvm initiation

2012-03-13 Thread Dave Whitla
I believe this might be the culprit:

In /usr/share/initramfs-tools/scripts/local-top/mdadm:


if [ -x $(command -v udevsettle) ]; then
  verbose  log_begin_msg Waiting for udev to process events
  udevsettle 10
  verbose  log_end_msg
fi

The condition will never be true because udevsettle was a symlink to 
/sbin/udevadm which has been absent from Debian since Lenny.

Try editing this file to replace the above with:

if [ -x $(command -v udevadm) ]; then
  verbose  log_begin_msg Waiting for udev to process events
  udevadm settle --timeout=10
  verbose  log_end_msg
fi


Dave


This email (including any attachments) is confidential and may be privileged. 
If you have received it in error, please notify the sender by return email and 
delete this message from your system. Any unauthorised use or dissemination of 
this message in whole or in part is strictly prohibited. Please note that 
emails are susceptible to change and we will not be liable for the improper or 
incomplete transmission of the information contained in this communication nor 
for any delay in its receipt or damage to your system. We do not guarantee that 
the integrity of this communication has been maintained nor that this 
communication is free of viruses, interceptions or interference.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#512679: initramfs-tools: 'more' pager is broken in initramfs shell

2011-11-06 Thread Dave Whitla
Wow. Almost 3 years later and this is still broken.

Dave



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#597713: A Debian tested clvmd RA script

2011-07-13 Thread Dave Whitla
The script linked to by the OP is loaded with bugs and will not run on Debian.

Below is one I have developed on Debian Squeeze based loosely on the SUSE 
script.
I'd like to see this make it into our distro also, as to this point building a 
fully functional Pacemaker cluster on Squeeze has been much more difficult that 
it need be.
I hope this helps others.

Dave


#!/bin/bash

# OCF initialization
. ${OCF_ROOT}/resource.d/heartbeat/.ocf-shellfuncs
. /lib/lsb/init-functions

# Parameter defaults
: ${OCF_RESKEY_CRM_meta_globally_unique:=false}
: ${OCF_RESKEY_daemon_timeout:=80}
: ${OCF_RESKEY_daemon_options:=-d 0}

exec=/usr/sbin/clvmd

function check_status() {
local pid=$(pidofproc $exec)
[ -n $pid ] || return $OCF_NOT_RUNNING
return $OCF_SUCCESS
}

clvmd_start() {
local elapsed=0 base=$(basename $exec)
ocf_log info Starting $OCF_RESOURCE_INSTANCE
if [ ! -e $exec ]; then
ocf_log err Required binary not found: $exec
return $OCF_ERR_INSTALLED
fi
/sbin/start-stop-daemon --start --nicelevel 0 --quiet --chdir $PWD --exec 
$exec -- $OCF_RESKEY_daemon_options
case $? in
1)
ocf_log warn $base already running with pid $(pidof $exec).
return $OCF_SUCCESS
;;
3)
ocf_log err Unable to start $base.
return $OCF_ERR_GENERIC
;;
esac

# wait for the daemon to start
while ! check_status; do
if (( ++elapsed  OCF_RESKEY_daemon_timeout )); then
ocf_log err $base invocation returned without error but is still 
not started after $OCF_RESKEY_daemon_timeout seconds.
return $OCF_ERR_GENERIC
fi
sleep 1
done

ocf_log info $base started.
return $OCF_SUCCESS
}

clvmd_stop() {
ocf_log info Stopping $OCF_RESOURCE_INSTANCE
local elapsed=0 base=$(basename $exec)
/sbin/start-stop-daemon --stop --quiet --exec $exec
case $? in
1)
ocf_log info No need to stop $base as it isn't running.
return $OCF_NOT_RUNNING
;;
3)
ocf_log err Stopping $base with SIG$signal returned an error. 
Fail.
return $OCF_ERR_GENERIC
;;
esac

# wait for the daemon to stop
while check_status; do
if (( ++elapsed  OCF_RESKEY_daemon_timeout )); then
ocf_log err $base is still not stopped after 
$OCF_RESKEY_daemon_timeout seconds. Killing it.
if ! /sbin/start-stop-daemon --stop --oknodo --signal KILL --exec 
$exec ; then
ocf_log err Unable to kill $base: $output
return $OCF_ERR_GENERIC
fi
ocf_log warn $base killed. Yep - killed it dead.
fi
sleep 1
done

ocf_log info $base stopped.
return $OCF_SUCCESS
}

clvmd_monitor() {
clvmd_validate
check_status
}

clvmd_usage() {
echo usage: $0 {start|stop|monitor|validate-all|meta-data}
echo   Expects to have a fully populated OCF RA-compliant environment set.
echo   In particular, a value for OCF_ROOT.
}

clvmd_validate() {
case ${OCF_RESKEY_CRM_meta_globally_unique} in
yes|Yes|true|True|1) 
ocf_log err $OCF_RESOURCE_INSTANCE must be configured with the 
gloablly_unique=false meta attribute
exit $OCF_ERR_CONFIGURED
;;
esac
return $OCF_SUCCESS
}

meta_data() {
cat END
?xml version=1.0?
!DOCTYPE resource-agent SYSTEM ra-api-1.dtd
resource-agent name=clvmd
version1.0/version
longdesc lang=en
This is a clvmd Resource Agent.
It starts clvmd as anonymous clones.
/longdesc
shortdesc lang=enclvmd resource agent/shortdesc

parameters
parameter name=daemon_timeout unique=0
longdesc lang=en
Number of seconds to allow the control daemon to come up and 
down
/longdesc
shortdesc lang=enDaemon Timeout/shortdesc
content type=string default=80/
/parameter
parameter name=daemon_options unique=0
longdesc lang=en
Options to clvmd. Refer to clvmd.8 for detailed descriptions.
/longdesc
shortdesc lang=enDaemon Options/shortdesc
content type=string default=-d0/
/parameter
/parameters

actions
action name=start timeout=90 /
action name=stop  timeout=100 /
action name=monitor   timeout=20 depth=0/
action name=meta-data timeout=5 /
action name=validate-all  timeout=30 /
/actions
/resource-agent
END
return $OCF_SUCCESS
}

case $__OCF_ACTION in
meta-data)
meta_data
;;
start)
clvmd_start
;;
stop)
clvmd_stop
;;
monitor)
clvmd_monitor
;;
validate-all)
clvmd_validate
;;
usage|help)
clvmd_usage
exit $OCF_SUCCESS
;;
*)
clvmd_usage 2

Bug#248043: ftp.debian.org: Request for new architecture: amd64

2005-03-21 Thread Dave Whitla
Jeroen van Wolffelaar wrote:
This will happen post-sarge, amd64 will not get released with sarge, and
adding it to sid now would only cause more work that can better be spent
elsewhere (read: releasing sarge).
--Jeroen
 

(read: I don't own an AMD64)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]