glance (2011.3-0ubuntu1) fails to install, error in .postinst

Bug #857021 reported by Adam Gandelman
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
glance (Ubuntu)
Fix Released
High
Adam Gandelman
Oneiric
Fix Released
High
Adam Gandelman

Bug Description

Setting up glance (2011.3-0ubuntu1) ...
/var/lib/dpkg/info/glance.postinst: 9: Syntax error: "fi" unexpected (expecting "then")
dpkg: error processing glance (--configure):
 subprocess installed post-installation script returned error exit status 2

Tags: server-o-rs

Related branches

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Also:

- There were typos in redirects to '/dev/null' that created files at '/dev/nul'

- postrm was failing in purge as it tried removing group. It should test for existence of user/group before trying to remove. Apparently 'deluser --system --quiet --backup-to /var/lib glance' also removes the group, so subsequent 'delgroup' exits non-zero and script fails (set -e)

Revision history for this message
Thierry Carrez (ttx) wrote :

Any idea if that applies to the OpenStack PPA as well ?

Revision history for this message
Thierry Carrez (ttx) wrote :

Apparently it was introduced after our PPA generation by fixing the group issue

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

@ttx- It looks like the same errors are present in the Openstack ubuntu packagers branch + what I've got installed in various places from PPA in the last 24 hrs

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glance (Ubuntu):
status: New → Confirmed
Dave Walker (davewalker)
tags: added: server-o-rs
Changed in glance (Ubuntu Oneiric):
milestone: none → ubuntu-11.10
importance: Undecided → High
assignee: nobody → Adam Gandelman (gandelman-a)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package glance - 2011.3-0ubuntu2

---------------
glance (2011.3-0ubuntu2) oneiric; urgency=low

  * debian/glance.{postinst,postrm}: Fix syntax error, /dev/null redirect
    typos. Only remove user/group in .postrm if they exist. (LP: #857021)
 -- Adam Gandelman <email address hidden> Thu, 22 Sep 2011 21:03:26 -0700

Changed in glance (Ubuntu Oneiric):
status: Confirmed → Fix Released
Revision history for this message
Adam Gandelman (gandelman-a) wrote :

@ttx - Ah! Disregard. Looks like this does not exist in the current glance PPAs. Changes introduced to the Ubuntu package branches in response to Bug #851860 only.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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