Ask Your Question
1

Sahara install problem

asked 2015-01-18 20:16:23 -0500

learma gravatar image

Hey , bothered again! I have installed juno with rdo-allinone in my own CentOS 7 computer successfully. But when I try to install sahara, I met some problem. Here is the steps I have done:

yum install openstack-sahara

after this installed, I run sahara-db-manage --config-file /etc/sahara/sahara.conf upgrade head' and came out

Traceback (most recent call last):
  File "/usr/bin/sahara-db-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/sahara/db/migration/cli.py", line 110, in main
    CONF.command.func(config, CONF.command.name)
  File "/usr/lib/python2.7/site-packages/sahara/db/migration/cli.py", line 49, in do_upgrade_downgrade
    do_alembic_command(config, cmd, revision, sql=CONF.command.sql)
  File "/usr/lib/python2.7/site-packages/sahara/db/migration/cli.py", line 30, in do_alembic_command
    getattr(alembic_cmd, cmd)(config, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/alembic/command.py", line 125, in upgrade
    script.run_env()
  File "/usr/lib/python2.7/site-packages/alembic/script.py", line 203, in run_env
    util.load_python_file(self.dir, 'env.py')
  File "/usr/lib/python2.7/site-packages/alembic/util.py", line 212, in load_python_file
    module = load_module_py(module_id, path)
  File "/usr/lib/python2.7/site-packages/alembic/compat.py", line 58, in load_module_py
    mod = imp.load_source(module_id, path, fp)
  File "/usr/lib/python2.7/site-packages/sahara/db/migration/alembic_migrations/env.py", line 95, in <module>
    run_migrations_online()
  File "/usr/lib/python2.7/site-packages/sahara/db/migration/alembic_migrations/env.py", line 79, in run_migrations_online
    poolclass=pool.NullPool)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/__init__.py", line 346, in create_engine
    return strategy.create(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 51, in create
    dialect_cls = u.get_dialect()
AttributeError: 'NoneType' object has no attribute 'get_dialect'
`

I don't know what's wrong with my settings. Can you help me?

edit retag flag offensive close merge delete

Comments

paste your /etc/sahara/sahara.conf to paste.openstack.org for us to take a look.

9lives gravatar image9lives ( 2015-01-18 20:45:50 -0500 )edit

OK, i found that I don't know how to modify this file correctly, here is my conf ,http://paste.openstack.org/show/158743/

learma gravatar imagelearma ( 2015-01-18 22:32:49 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-01-18 22:57:42 -0500

9lives gravatar image

checked the sahara.conf per ,http://paste.openstack.org/show/158743, there is seemed no db connection or you might use the sqllib in memory database which is not recommended.

if you are using sqllite change it to mysql in /etc/sahara/sahara.conf like this

connection = mysql://root:password@[contorller_ip]/sahara?charset=utf8

then restart sahara service and try again.

Hope that helps!

Vic

edit flag offensive delete link more

Comments

just one note about sqlite. it is deprecated in juno, i would recommend finding a more permanent solution(e.g. mysql, postgresql).

elmiko gravatar imageelmiko ( 2015-01-19 08:21:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-01-18 20:16:23 -0500

Seen: 489 times

Last updated: Jan 18 '15