[Openstack] keystone-manage db_sync failures

Wyllys Ingersoll Wyllys.Ingersoll at evault.com
Wed Mar 6 02:49:15 UTC 2013



I saw that bug, but that was not the problem because I had the right versions of all of those pieces.

The problem arose when I had to change the IP addr of my host.  I updated all of the config files and the endpoints in the keystone DB, but still nova was pulling the old IP addr from somewhere, but I could not figure out where it was coming from.  It wasn't in the DB and it wasn't in any of the config files.  I finally gave up and re-installed the whole thing from scratch.  Luckily, it was in a VM that I was using for testing so I didn't lose any real data or anything and the re-install was quick and smooth.

I still have no idea what went wrong and my lasting impression is that the whole thing is a house of cards that is still very fragile to the slightest inconsistencies.

-Wyllys


On Mar 5, 2013, at 9:42 PM, Lei Zhang <zhang.lei.fly at gmail.com<mailto:zhang.lei.fly at gmail.com>> wrote:

see https://bugs.launchpad.net/keystone/+bug/1073569 bug


On Wed, Mar 6, 2013 at 2:18 AM, Miller, Mark M (EB SW Cloud - R&D - Corvallis) <mark.m.miller at hp.com<mailto:mark.m.miller at hp.com>> wrote:
Try adding the config file name to the command line:

        > keystone-manage --config-file /etc/keystone/keystone.conf db_sync

Mark

-----Original Message-----
From: openstack-bounces+mark.m.miller=hp.com at lists.launchpad.net<mailto:hp.com at lists.launchpad.net> [mailto:openstack-bounces+mark.m.miller<mailto:openstack-bounces%2Bmark.m.miller>=hp.com at lists.launchpad.net<mailto:hp.com at lists.launchpad.net>] On Behalf Of Wyllys Ingersoll
Sent: Tuesday, March 05, 2013 8:27 AM
To: openstack at lists.launchpad.net<mailto:openstack at lists.launchpad.net>
Subject: [Openstack] keystone-manage db_sync failures

I keep getting a failure when trying to configure keystone.  keystone-manage seems to have issues with sqlalchemy.

Here are my versions:

python-keystoneclient: 1:0.1.3-0ubuntu1.1~cloud0
python-sqlalchemy:  0.7.8-1ubuntu1~cloud0
python-migrate:  0.7.2-1ubuntu1

Any ideas??

$ keystone-manage db_sync
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 164, in main
    return run(cmd, (args[:1] + args[2:]))
  File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 147, in run
    return CMDS[cmd](argv=args).run()
  File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 35, in run
    return self.main()
  File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 54, in main
    driver = importutils.import_object(getattr(CONF, k).driver)
  File "/usr/lib/python2.7/dist-packages/keystone/openstack/common/importutils.py", line 40, in import_object
    return import_class(import_str)(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystone/openstack/common/importutils.py", line 30, in import_class
    __import__(mod_str)
  File "/usr/lib/python2.7/dist-packages/keystone/identity/backends/sql.py", line 22, in <module>
    from keystone.common.sql import migration
  File "/usr/lib/python2.7/dist-packages/keystone/common/sql/migration.py", line 23, in <module>
    from migrate.versioning import api as versioning_api
  File "/usr/lib/python2.7/dist-packages/migrate/versioning/api.py", line 33, in <module>
    from migrate.versioning import (repository, schema, version,
  File "/usr/lib/python2.7/dist-packages/migrate/versioning/schema.py", line 10, in <module>
    from sqlalchemy import exceptions as sa_exceptions
ImportError: cannot import name exceptions


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack at lists.launchpad.net<mailto:openstack at lists.launchpad.net>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack at lists.launchpad.net<mailto:openstack at lists.launchpad.net>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp



--
Lei Zhang

Blog: http://jeffrey4l.github.com<http://jeffrey4l.github.com/>
twitter/weibo: @jeffrey4l

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130305/16d44878/attachment.html>


More information about the Openstack mailing list