← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1192329] Re: MySQL-python not installed on RHEL6.2, stable/grizzly

 

** Changed in: anvil
       Status: Fix Committed => Fix Released

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

Title:
  MySQL-python not installed on RHEL6.2, stable/grizzly

Status in ANVIL for forging OpenStack.:
  Fix Released

Bug description:
  Using anvil, stable/grizzly branch, in RHEL 6.2.

  When running "sudo ./smithy -a install --no-prompt-passwords -v', I
  get an error because MySQL-python wasn't installed. I fixed it with
  "yum install MySQL-python".

  The error:

  INFO: @anvil.actions.install : Post-installing keystone.
  INFO: @anvil.components.helpers.db : Dropping mysql database: keystone
  DEBUG: @anvil.shell : Running cmd: ['mysql', '--user=root', '--password=0d999e26efabdfb097aa', '-e', 'DROP DATABASE IF EXISTS keystone;']
  INFO: @anvil.components.helpers.db : Creating mysql database: keystone (utf8)
  DEBUG: @anvil.shell : Running cmd: ['mysql', '--user=root', '--password=0d999e26efabdfb097aa', '-e', 'CREATE DATABASE keystone CHARACTER SET utf8;']
  INFO: @anvil.components.keystone : Syncing keystone to database: keystone
  DEBUG: @anvil.shell : Running cmd: ['sudo', '-u', 'keystone', '/usr/bin/keystone-manage', '--debug', '-v', 'db_sync']
  DEBUG: @anvil.shell : In working directory: '/usr/bin'
   _______________________
  < You have been borked. >
   -----------------------
    \         ||       ||
      \    __ ||-----mm||
        \ (  )/_________)//
          (oo)/
          v--v
  Traceback (most recent call last):
    File "/home/rloo/anvil/anvil/__main__.py", line 217, in main
      run(args)
    File "/home/rloo/anvil/anvil/__main__.py", line 121, in run
      runner.run(persona_obj)
    File "/home/rloo/anvil/anvil/actions/base.py", line 341, in run
      self._run(persona, component_order, instances)
    File "/home/rloo/anvil/anvil/actions/install.py", line 132, in _run
      *removals
    File "/home/rloo/anvil/anvil/actions/base.py", line 323, in _run_phase
      result = functors.run(instance)
    File "/home/rloo/anvil/anvil/actions/install.py", line 126, in <lambda>
      run=lambda i: i.post_install(),
    File "/home/rloo/anvil/anvil/components/keystone.py", line 58, in post_install
      self._sync_db()
    File "/home/rloo/anvil/anvil/components/keystone.py", line 66, in _sync_db
      utils.execute_template(*cmds, cwd=self.bin_dir, params=self.config_params(None))
    File "/home/rloo/anvil/anvil/utils.py", line 293, in execute_template
      **kargs)
    File "/home/rloo/anvil/anvil/shell.py", line 164, in execute
      stderr=stderr, cmd=str_cmd)
  ProcessExecutionError: Unexpected error while running command.
  Command: sudo '-u' keystone '/usr/bin/keystone-manage' '--debug' '-v' 'db_sync'
  Exit code: 1
  Stdout: ''
  Stderr: 'Traceback (most recent call last):\n  File "/usr/bin/keystone-manage", line 28, in <module>\n    cli.main(argv=sys.argv, config_files=config_files)\n  File "/usr/lib/python2.6/site-packages/keystone/cli.py", line 175, in main\n    CONF.command.cmd_class.main()\n  File "/usr/lib/python2.6/site-packages/keystone/cli.py", line 54, in main\n    driver.db_sync()\n  File "/usr/lib/python2.6/site-packages/keystone/identity/backends/sql.py", line 156, in db_sync\n    migration.db_sync()\n  File "/usr/lib/python2.6/site-packages/keystone/common/sql/migration.py", line 49, in db_sync\n    current_version = db_version()\n  File "/usr/lib/python2.6/site-packages/keystone/common/sql/migration.py", line 61, in db_version\n    return versioning_api.db_version(CONF.sql.connection, repo_path)\n  File "<string>", line 2, in db_version\n  File "/usr/lib/python2.6/site-packages/migrate/versioning/util/__init__.py", line 155, in with_engine\n    engine = construct_engine(url, **kw)\n  File "/usr/lib/python2.6/site-packages/migrate/versioning/util/__init__.py", line 140, in construct_engine\n    return create_engine(engine, **kwargs)\n  File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/__init__.py", line 338, in create_engine\n    return strategy.create(*args, **kwargs)\n  File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/strategies.py", line 64, in create\n    dbapi = dialect_cls.dbapi(**dbapi_args)\n  File "/usr/lib64/python2.6/site-packages/sqlalchemy/connectors/mysqldb.py", line 52, in dbapi\n    return __import__(\'MySQLdb\')\nImportError: No module named MySQLdb\n'

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