Cannot uninstall keystone

Bug #961277 reported by Vincent Ladeuil
This bug report is a duplicate of:  Bug #948719: uninstall keystone error. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
keystone (Ubuntu)
New
Undecided
Unassigned

Bug Description

While trying to uninstall keystone (to start from a clean slate), synaptic complains:

(Reading database ... 304179 files and directories currently installed.)
Removing keystone ...
dpkg: error processing keystone (--remove):
 subprocess installed pre-removal script returned error exit status 10
No apport report written because MaxReports is reached already
                                                              postinst called with unknown argument `abort-remove'
Errors were encountered while processing:
 keystone
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:

Trying to force a re-installation instead, it still fails with:

Setting up keystone (2012.1~rc1~20120316.2145-0ubuntu1) ...
Traceback (most recent call last):
  File "/usr/bin/keystone-manage", line 28, in <module>
    cli.main(argv=sys.argv, config_files=config_files)
  File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 148, in main
    return run(cmd, (args[:1] + args[2:]))
  File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 134, in run
    return CMDS[cmd](argv=args).run()
  File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 36, in run
    return self.main()
  File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 55, in main
    driver = utils.import_object(getattr(CONF, k).driver)
  File "/usr/lib/python2.7/dist-packages/keystone/common/utils.py", line 58, in import_object
    __import__(import_str)
TypeError: __import__() argument 1 must be string, not None
dpkg: error processing keystone (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 keystone
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:

Revision history for this message
Soren Hansen (soren) wrote :

Hm, yeah, calling keystone-manage in postrm... That's probably not going to work (hint: *post* removal scripts shouldn't be referencing things in the package)

Revision history for this message
Vincent Ladeuil (vila) wrote :

Forget the re-install part, I renamed /etc/keystone while hammering, restoring its proper name allow the re-installation to complete.

Removing the package is still not possible

Revision history for this message
Vincent Ladeuil (vila) wrote :

@Soren: Sorry for the confusing bug report, keystone-manage is called while re-installing, not while removing.

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.