<html><body>
<p><font size="2" face="sans-serif">Thiago, </font><br>
<br>
<font size="2" face="sans-serif">Your database might be out of sync with the latest Keystone code if you just performed an update. Try migrating your database [1]. The link gives some information on how to do that, but you'll essentially want to do a `keystone-manage db_sync`, also check the man pages [2]. This should ensure your Keystone database has the proper schema for the Keystone code you're running.</font><br>
<br>
<font size="2" face="sans-serif">[1] <a href="http://docs.openstack.org/developer/keystone/configuration.html#step-2-sync-your-new-empty-database">http://docs.openstack.org/developer/keystone/configuration.html#step-2-sync-your-new-empty-database</a><br>
[2] <a href="http://docs.openstack.org/developer/keystone/man/keystone-manage.html">http://docs.openstack.org/developer/keystone/man/keystone-manage.html</a></font><br>
<font size="2" face="sans-serif"><br>
Best Regards, <br>
<br>
Lance Bragstad <br>
ldbragst@us.ibm.com</font><br>
<br>
<tt><font size="2">Martinx - ジェームズ <thiagocmartinsc@gmail.com> wrote on 03/07/2014 06:50:01 PM:<br>
<br>
> From: Martinx - ジェームズ <thiagocmartinsc@gmail.com></font></tt><br>
<tt><font size="2">> To: "openstack@lists.openstack.org" <openstack@lists.openstack.org>, </font></tt><br>
<tt><font size="2">> Date: 03/07/2014 07:03 PM</font></tt><br>
<tt><font size="2">> Subject: [Openstack] Error on upgrading to latest Keystone - Ubuntu <br>
> 12.04.4 + UCA</font></tt><br>
<tt><font size="2">> <br>
> Guys,</font></tt><br>
<tt><font size="2">> <br>
> I just did:</font></tt><br>
<tt><font size="2">> <br>
> apt-get update</font></tt><br>
<tt><font size="2">> apt-get dist-upgrade</font></tt><br>
<tt><font size="2">> <br>
> And I'm seeing the following error:</font></tt><br>
<tt><font size="2">> <br>
> ---</font></tt><br>
<tt><font size="2">> Setting up keystone (1:2013.2.2-0ubuntu1~cloud0) ...</font></tt><br>
<tt><font size="2">> 2014-03-07 21:45:39.473 15540 CRITICAL keystone [-] <br>
> (OperationalError) (1061, "Duplicate key name <br>
> 'ix_token_expires_valid'") 'CREATE INDEX ix_token_expires_valid ON <br>
> token (expires, valid)' ()</font></tt><br>
<tt><font size="2">> dpkg: error processing keystone (--configure):</font></tt><br>
<tt><font size="2">>  subprocess installed post-installation script returned error exit status 1</font></tt><br>
<tt><font size="2">> Errors were encountered while processing:</font></tt><br>
<tt><font size="2">>  keystone</font></tt><br>
<tt><font size="2">> E: Sub-process /usr/bin/dpkg returned an error code (1)</font></tt><br>
<tt><font size="2">> ---</font></tt><br>
<tt><font size="2">> <br>
> What can I do?!</font></tt><br>
<tt><font size="2">> <br>
> Tks!</font></tt><br>
<tt><font size="2">> Thiago_______________________________________________<br>
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
> Post to     : openstack@lists.openstack.org<br>
> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</font></tt></body></html>