Bug#661397: iscsitarget: prompting due to modified conffiles which where not modified by the user

2012-03-29 Thread Ritesh Raj Sarraf
Package: iscsitarget
Version: 1.4.20.2-10
Followup-For: Bug #661397

I did an update of iscsitarget on my box and did not see the prompt. I will 
still try with older versions if time permits. But this stands low on priority 
on my list.



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

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages iscsitarget depends on:
ii  libc6 2.13-27
ii  lsb-base  4.1+Debian0
ii  procps1:3.3.2-3

Versions of packages iscsitarget recommends:
pn  iscsitarget-module  none

Versions of packages iscsitarget suggests:
ii  iscsitarget-dkms  1.4.20.2-10

-- Configuration Files:
/etc/iet/ietd.conf changed:
Target iqn.2001-04.com.example:storage.debian-sanboot
Lun 0 Path=/dev/vdl,Type=fileio,ScsiId=vdl,ScsiSN=vdl
Alias Debian-SANBooot
Target iqn.2001-04.com.example:storage.debian
# CHAP Users
#
# The same rules as for discovery users apply here.
#
# Don't set them if you don't want to use CHAP authentication.
#
#IncomingUser joe secret
#OutgoingUser jim 12charpasswd
#
# Logical Unit definition
#
# Block devices, regular files (fileio only), LVM, and RAID
# can be offered to the initiators as a block device.
#
# Lun numbers MUST start with zero (each target needs a Lun 0)
#
Lun 0 Path=/dev/vdg,Type=fileio,ScsiId=vdb,ScsiSN=vdb
Lun 1 Path=/dev/vdh,Type=fileio,ScsiId=vdc,ScsiSN=vdc
Lun 2 Path=/dev/vdi,Type=fileio,ScsiId=vdd,ScsiSN=vdd
Lun 3 Path=/dev/vdj,Type=fileio,ScsiId=vde,ScsiSN=vde
Lun 4 Path=/dev/vdk,Type=fileio,ScsiId=vdf,ScsiSN=vdf
#
# Alias name for this target (Not Used)
#
Alias Debian
Target iqn.2001-04.com.example:storage.disk2.sys1.xyz
# CHAP Users
#
# The same rules as for discovery users apply here.
#
# Don't set them if you don't want to use CHAP authentication.
#
#IncomingUser joe secret
#OutgoingUser jim 12charpasswd
#
# Logical Unit definition
#
# Block devices, regular files (fileio only), LVM, and RAID
# can be offered to the initiators as a block device.
#
# Lun numbers MUST start with zero (each target needs a Lun 0)
#
Lun 0 Path=/dev/vdb,Type=fileio,ScsiId=vdb,ScsiSN=vdb
Lun 1 Path=/dev/vdc,Type=fileio,ScsiId=vdc,ScsiSN=vdc
Lun 2 Path=/dev/vdd,Type=fileio,ScsiId=vdd,ScsiSN=vdd
Lun 3 Path=/dev/vde,Type=fileio,ScsiId=vde,ScsiSN=vde
Lun 4 Path=/dev/vdf,Type=fileio,ScsiId=vdf,ScsiSN=vdf
#
# Alias name for this target (Not Used)
#
Alias Fedora
#
# Various iSCSI parameters
# (not all are used right now, see also iSCSI spec for details)
#
# Outgoing SCSI data (initiator to target user data or command
# parameters) is sent as either solicited data or unsolicited data.
# Solicited data is sent in response to R2T PDUs.  Unsolicited data
# can be sent as part of an iSCSI command PDU sequence
# (Immediate Data) or as a separate iSCSI data PDU sequence.
#
#MaxConnections 1   # Number of connections/session
# We only support 1
#MaxSessions0   # Number of sessions/target
# 0 = no explicit limit
#InitialR2T Yes # Wait first for R2T
# Yes = no unsolicited data
#ImmediateData  Yes # Data can accompany command
# Yes = cmnd/data in same PDU
#MaxRecvDataSegmentLength 8192  # Max data per PDU to receive
#MaxXmitDataSegmentLength 8192  # Max data per PDU to transmit
#MaxBurstLength 262144  # Max data per sequence (R2T)
#FirstBurstLength   65536   # Max unsolicited data sequence
#DefaultTime2Wait   2   # Secs wait for ini to log out
# Not used
#DefaultTime2Retain 20  # Secs keep cmnds after log out
# Not used
#MaxOutstandingR2T  1   # Max outstanding R2Ts per cmnd
#DataPDUInOrder Yes # Data in PDUs is ordered
# We only support ordered
#DataSequenceInOrderYes # PDUs in sequence are ordered
# We 

Bug#661397: iscsitarget: prompting due to modified conffiles which where not modified by the user

2012-03-28 Thread Ritesh Raj Sarraf
On Tuesday 27 March 2012 02:47 AM, Andreas Beckmann wrote:
 the problem is still reproducible on an upgrade test
 lenny-squeeze-wheezy

   Setting up iscsitarget (1.4.20.2-10) ...
   Installing new version of config file /etc/default/iscsitarget ...
   Installing new version of config file /etc/init.d/iscsitarget ...
   
   Configuration file `/etc/iet/ietd.conf'
== Modified (by you or by a script) since installation.
== Package distributor has shipped an updated version.
  What would you like to do about it ?  Your options are:
   Y or I  : install the package maintainer's version
   N or O  : keep your currently-installed version
 D : show the differences between the versions
 Z : start a shell to examine the situation
The default action is to keep your current version.
   *** ietd.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing 
 iscsitarget (--configure):
EOF on stdin at conffile prompt
Okay!!! This path change was rolled in in Squeeze version I guess. Let
me setup a VM and try to recreate your bug.

-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
Necessity is the mother of invention.




signature.asc
Description: OpenPGP digital signature


Bug#661397: iscsitarget: prompting due to modified conffiles which where not modified by the user

2012-03-26 Thread Andreas Beckmann
Package: iscsitarget
Followup-For: Bug #661397

Hi Ritesh,

the problem is still reproducible on an upgrade test
lenny-squeeze-wheezy

  Setting up iscsitarget (1.4.20.2-10) ...
  Installing new version of config file /etc/default/iscsitarget ...
  Installing new version of config file /etc/init.d/iscsitarget ...
  
  Configuration file `/etc/iet/ietd.conf'
   == Modified (by you or by a script) since installation.
   == Package distributor has shipped an updated version.
 What would you like to do about it ?  Your options are:
  Y or I  : install the package maintainer's version
  N or O  : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
   The default action is to keep your current version.
  *** ietd.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing iscsitarget 
(--configure):
   EOF on stdin at conffile prompt


Andreas


iscsitarget_1.4.20.2-10.log.gz
Description: GNU Zip compressed data


Bug#661397: iscsitarget: prompting due to modified conffiles which where not modified by the user

2012-02-26 Thread Andreas Beckmann
Package: iscsitarget
Version: 1.4.20.2-7
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed the piuparts
upgrade test because dpkg detected a conffile as being modified and then
prompted the user for an action. As there is no user input, this fails.
But this is not the real problem, the real problem is that this prompt
shows up in the first place, as there was nobody modifying this conffile
at all, the package has just been installed and upgraded...

This problem was discovered while testing upgrades from oldstable:
lenny - squeeze - wheezy.

This is a violation of policy 10.7.3, see
http://www.debian.org/doc/debian-policy/ch-files.html#s10.7.3,
which says [These scripts handling conffiles] must not ask unnecessary
questions (particularly during upgrades), and must otherwise be good
citizens.

http://wiki.debian.org/DpkgConffileHandling should help with figuring
out how to do this properly.

In http://lists.debian.org/debian-devel/2009/08/msg00675.html and
followups it has been agreed that these bugs are to be filed with
severity serious.

From the attached log (scroll to the bottom...):

  Setting up iscsitarget (1.4.20.2-7) ...
  Installing new version of config file /etc/default/iscsitarget ...
  Installing new version of config file /etc/init.d/iscsitarget ...
  
  Configuration file `/etc/iet/ietd.conf'
   == Modified (by you or by a script) since installation.
   == Package distributor has shipped an updated version.
 What would you like to do about it ?  Your options are:
  Y or I  : install the package maintainer's version
  N or O  : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
   The default action is to keep your current version.
  *** ietd.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing iscsitarget 
(--configure):
   EOF on stdin at conffile prompt


cheers,

Andreas


iscsitarget_1.4.20.2-7.log.gz
Description: GNU Zip compressed data