← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1131590] Re: migration 17: user_project_membership has no column 'project_id'

 

This migration is no longer supported.

** Changed in: keystone
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1131590

Title:
  migration 17: user_project_membership has no column 'project_id'

Status in OpenStack Identity (Keystone):
  Invalid

Bug description:
  yaguang@yaguang-ThinkPad-X230:~/working/openstack/keystone# keystone-manage db_sync
  /usr/lib/python2.7/dist-packages/migrate/versioning/repository.py:9: UserWarning: Module keystone was already imported from /home/yaguang/working/openstack/keystone/keystone/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
    from pkg_resources import resource_filename
  Traceback (most recent call last):
    File "/usr/bin/keystone-manage", line 28, in <module>
      cli.main(argv=sys.argv, config_files=config_files)
    File "/home/yaguang/working/openstack/keystone/keystone/cli.py", line 172, in main
      CONF.command.cmd_class.main()
    File "/home/yaguang/working/openstack/keystone/keystone/cli.py", line 53, in main
      driver.db_sync()
    File "/home/yaguang/working/openstack/keystone/keystone/identity/backends/sql.py", line 171, in db_sync
      migration.db_sync()
    File "/home/yaguang/working/openstack/keystone/keystone/common/sql/migration.py", line 52, in db_sync
      return versioning_api.upgrade(CONF.sql.connection, repo_path, version)
    File "/usr/lib/python2.7/dist-packages/migrate/versioning/api.py", line 186, in upgrade
      return _migrate(url, repository, version, upgrade=True, err=err, **opts)
    File "<string>", line 2, in _migrate
    File "/usr/lib/python2.7/dist-packages/migrate/versioning/util/__init__.py", line 159, in with_engine
      return f(*a, **kw)
    File "/usr/lib/python2.7/dist-packages/migrate/versioning/api.py", line 366, in _migrate
      schema.runchange(ver, change, changeset.step)
    File "/usr/lib/python2.7/dist-packages/migrate/versioning/schema.py", line 91, in runchange
      change.run(self.engine, step)
    File "/usr/lib/python2.7/dist-packages/migrate/versioning/script/py.py", line 145, in run
      script_func(engine)
    File "/home/yaguang/working/openstack/keystone/keystone/common/sql/migrate_repo/versions/017_membership_role.py", line 51, in upgrade
      project_id=membership.project_id,
  AttributeError: 'NamedTuple' object has no attribute 'project_id'

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1131590/+subscriptions