postinst package error: landscape-config: error: option --exchange-interval: invalid integer value: ''
Bug #932677 reported by
Andreas Hasenack
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Invalid
|
High
|
Jerry Seutter |
Bug Description
Setting up landscape-client (11.11~
Usage: landscape-config [options]
landscape-config: error: option --exchange-
dpkg: error processing landscape-client (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
landscape-client
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@nsn7:~#
Related branches
lp:~jseutter/landscape-client/invalid-integer
Rejected
for merging
into
lp:~landscape/landscape-client/trunk
- Geoff Teale (community): Approve
- Landscape: Pending requested
-
Diff: 164 lines (+101/-7)3 files modifiedlandscape/broker/config.py (+21/-5)
landscape/deployment.py (+20/-2)
landscape/tests/test_configuration.py (+60/-0)
Changed in landscape-client: | |
assignee: | nobody → Jerry Seutter (jseutter) |
Changed in landscape-client: | |
status: | New → In Progress |
milestone: | later → 12.02.2 |
To post a comment you must log in.
After some investigation, I believe the problem is that we added some new entries to landscape- client. templates, which are not there in the released version of landscape-client. Apparently when you upgrade the released version to this new one, these new entries don't really get picked by landscape- client. postinst, in particular there won't be the default "900" value for exchange_interval, hence breaking landscape-config.
After looking at:
http:// www.debian. org/doc/ debian- policy/ ap-pkg- conffiles. html
and
http:// www.debian. org/doc/ debian- policy/ ch-binary. html#s- maintscriptprom pt
I think what we are doing is basically good, however I'd suggest to make it so that we don't always blindly re-write an existing landscape.conf file in landscape- client. postinst, but we just do it if we actually notice that there are some changes. So that means either we are shipping in the new version some new conf values that *must* be in the landscape.conf file (very rare situation, probably never happened), or the user is running dpkg-reconfigure (the common use case).
We might also consider adding something like:
####### ####### ####### ####### ####### ####### ####### ## ####### ####### ####### ####### ####### ####### ##
# This file is managed by debconf, DO NOT EDIT IT MANUALLY, please run
# dpkg-reconfigure landscape-client instead
#######
to the auto-generated landscape.conf, as it seems to be an established practice.