landscape-client package fails to install when run from the installer

Bug #274573 reported by Mathias Gug
38
This bug affects 2 people
Affects Status Importance Assigned to Milestone
landscape-client (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: landscape-client

When the option to configure landscape client is chosen during a -server installation, the landscape-client package fails to install correctly. Although the install proceeds, the following messages are found in the logs:

Sep 24 13:11:51 useradd[4372]: new user: name=landscape, UID=106, GID=65534, home=/var/lib/landscape, shell=/bin/false
Sep 24 13:11:51 usermod[4377]: change user `landscape' password
Sep 24 13:11:51 chage[4382]: changed password expiry for landscape
Sep 24 13:11:52 chfn[4385]: changed user `landscape' information
Sep 24 17:11:52 in-target: ^M
Sep 24 17:11:52 in-target: SETTING UP LANDSCAPE-CLIENT (1.0.21-0UBUNTU2) ...^M
Sep 24 17:11:52 debconf: Obsolete command TITLE Configuring landscape-client called
Sep 24 17:11:54 in-target: * STOPPING LANDSCAPE-CLIENT DAEMON^M
Sep 24 17:11:54 in-target: ^M
Sep 24 17:11:54 in-target: WARNING: FAKE START-STOP-DAEMON CALLED, DOING NOTHING.^M
Sep 24 17:11:54 in-target: ...DONE.^M
Sep 24 17:11:54 in-target: * STARTING THE LANDSCAPE-CLIENT DAEMON^M
Sep 24 17:11:54 in-target: ^M
Sep 24 17:11:54 in-target: WARNING: FAKE START-STOP-DAEMON CALLED, DOING NOTHING.^M
Sep 24 17:11:54 in-target: ...DONE.^M
Sep 24 17:11:54 in-target: PLEASE WAIT...
Sep 24 17:11:56 in-target: TRACEBACK (MOST RECENT CALL LAST):^M
Sep 24 17:11:56 in-target: FILE "/USR/BIN/LANDSCAPE-CONFIG", LINE 10, IN <MODULE>^M
Sep 24 17:11:56 in-target:
Sep 24 17:11:56 in-target: MAIN(SYS.ARGV[1:])^M
Sep 24 17:11:56 in-target: FILE "/USR/LIB/PYTHON2.5/SITE-PACKAGES/LANDSCAPE/CONFIGURATION.PY", LINE 417, IN MAIN^M
Sep 24 17:11:56 in-target:
Sep 24 17:11:56 in-target: REGISTER(CONFIG)^M
Sep 24 17:11:56 in-target: FILE "/USR/LIB/PYTHON2.5/SITE-PACKAGES/LANDSCAPE/CONFIGURATION.PY", LINE 380, IN REGISTER^M
Sep 24 17:11:56 in-target:
Sep 24 17:11:56 in-target: REMOTE = REMOTEBROKER(GET_BUS(CONFIG.BUS), RETRY_TIMEOUT=0)^M
Sep 24 17:11:56 in-target: FILE "/USR/LIB/PYTHON2.5/SITE-PACKAGES/LANDSCAPE/LIB/DBUS_UTIL.PY", LINE 296, IN GET_BUS^M
Sep 24 17:11:56 in-target:
Sep 24 17:11:56 in-target: RETURN BUS_CLASS()^M
Sep 24 17:11:56 in-target: FILE "/VAR/LIB/PYTHON-SUPPORT/PYTHON2.5/DBUS/_DBUS.PY", LINE 200, IN __NEW__^M
Sep 24 17:11:56 in-target:
Sep 24 17:11:56 in-target: PRIVATE=PRIVATE)^M
Sep 24 17:11:56 in-target: FILE "/VAR/LIB/PYTHON-SUPPORT/PYTHON2.5/DBUS/_DBUS.PY", LINE 106, IN __NEW__^M
Sep 24 17:11:56 in-target:
Sep 24 17:11:56 in-target: BUS = BUSCONNECTION.__NEW__(SUBCLASS, BUS_TYPE, MAINLOOP=MAINLOOP)^M
Sep 24 17:11:56 in-target: FILE "/VAR/LIB/PYTHON-SUPPORT/PYTHON2.5/DBUS/BUS.PY", LINE 125, IN __NEW__^M
Sep 24 17:11:56 in-target:
Sep 24 17:11:56 in-target: BUS = CLS._NEW_FOR_BUS(ADDRESS_OR_TYPE, MAINLOOP=MAINLOOP)^M
Sep 24 17:11:56 in-target: DBUS.EXCEPTIONS
Sep 24 17:11:56 in-target: .
Sep 24 17:11:56 in-target: DBUSEXCEPTION
Sep 24 17:11:56 in-target: :
Sep 24 17:11:56 in-target: ORG.FREEDESKTOP.DBUS.ERROR.FILENOTFOUND: FAILED TO CONNECT TO SOCKET /VAR/RUN/DBUS/SYSTEM_BUS_SOCKET: NO SUCH FILE OR DIRECTORY
Sep 24 17:11:56 in-target: ^M
Sep 24 17:11:56 in-target: DPKG: ERROR PROCESSING LANDSCAPE-CLIENT (--CONFIGURE):^M
Sep 24 17:11:56 in-target: SUBPROCESS POST-INSTALLATION SCRIPT RETURNED ERROR EXIT STATUS 1^M

This is due to the fact that landscape-config uses dbus to ask the landscape-client to register. However dbus doesn't run during the installation process. Thus the failure.

Revision history for this message
Mathias Gug (mathiaz) wrote :

The landscape team provided a fix in a new release, 1.0.21.1.

An option - ok-no-register - has been added to the landscape-config script so that it doesn't fail with an exit code of 2 when dbus is not available. It prints an error message instead and exits with a code of 0.

The new upstream release also lowers a timeout related to package management.

I've attached a complete debdiff between the current version in the archive and the proposed upload.

Changed in landscape-client:
importance: Undecided → High
milestone: none → ubuntu-8.10-beta
Revision history for this message
Steve Langasek (vorlon) wrote :

ok for the freeze, please upload.

Changed in landscape-client:
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package landscape-client - 1.0.21.1-0ubuntu1

---------------
landscape-client (1.0.21.1-0ubuntu1) intrepid; urgency=low

  * New upstream version:
    * Add ok-no-register option to landscape-config script to not fail if
      dbus isn't started or landscape-client isn't running.
    * lower timeout related to package management in landscape.
  * debian/control: Depend on cron.
  * debian/landscape-client.postinst: use ok-no-register option so that the
    postinst script doesn't fail when run from the installer. (LP: #274573).

 -- Mathias Gug <email address hidden> Thu, 25 Sep 2008 17:54:00 -0400

Changed in landscape-client:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.