[Openstack-devel] Bug#706540: keystone: fails to upgrade from 2012.x (essex) to 2013.x (grizzly): post-installation script returned error exit status 1

Andreas Beckmann anbe at debian.org
Sun Jul 14 11:25:59 UTC 2013


On 2013-07-14 05:10, Thomas Goirand wrote:
> I did try to reproduce the error, though I didn't see it (it worked for
> me). Can you give me the puiparts command line that was used?

You can always find it at the beginning of the logfile :-)

adding set -x to keystone.postinst and running in the chroot:

# DEBIAN_FRONTEND=noninteractive dpkg --configure --pending
Setting up keystone (2013.1.2-4) ...
[...]
+ pkgos_dbc_postinst /etc/keystone/keystone.conf sql connection keystone configure 2012.1.1-13+wheezy1
+ local DBC_POST_CONF_PATH CONF_DIR DBC_POST_CONF_FNAME PKG_NAME SUITE
+ [ /etc/keystone/keystone.conf = --suite ]
+ SUITE=keystone
+ DBC_POST_CONF_PATH=/etc/keystone/keystone.conf
+ CONN_SECTION=sql
+ CONN_DIRECTIVE=connection
+ PKG_NAME=keystone
+ shift
+ shift
+ shift
+ shift
+ dirname /etc/keystone/keystone.conf
+ CONF_DIR=/etc/keystone
+ basename /etc/keystone/keystone.conf
+ DBC_POST_CONF_FNAME=keystone.conf
+ [ ! -d /etc/keystone ]
+ chmod 0770 /etc/keystone
+ chown keystone:keystone /etc/keystone
+ [ ! -e /etc/keystone/keystone.conf ]
+ db_get keystone/configure_db
+ _db_cmd GET keystone/configure_db
+ _db_internal_IFS=

+ IFS=
+ printf %s\n GET keystone/configure_db
+ IFS=

+ IFS=
 read -r _db_internal_line
+ RET=false
+ return 0
+ [ false = true ]
+ chown -R keystone:keystone /var/log/keystone
+ db_get keystone/configure_db
+ _db_cmd GET keystone/configure_db
+ _db_internal_IFS=

+ IFS=
+ printf %s\n GET keystone/configure_db
+ IFS=

+ IFS=
 read -r _db_internal_line
+ RET=false
+ return 0
+ [ false = true ]
+ su keystone -c keystone-manage pki_setup
dpkg: error processing keystone (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 keystone

Andreas



More information about the Openstack-devel mailing list