Ask Your Question
0

Error installing neutron on Ubuntu 13.04

asked 2013-08-10 20:27:08 -0500

dushyant gravatar image

updated 2013-08-10 20:30:16 -0500

I am trying to install devstack on 64 bit Ubuntu 13.04. Here is my localrc file on the controller node in a multi-node setup:

DATABASE_PASSWORD=password
ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
RABBIT_PASSWORD=password

Q_PLUGIN=ml2

# Compute Service
NOVA_BRANCH=stable/grizzly
# Volume Service
CINDER_BRANCH=stable/grizzly
# Image Service
GLANCE_BRANCH=stable/grizzly
# Web UI (Dashboard)
HORIZON_BRANCH=stable/grizzly
# Auth Services
KEYSTONE_BRANCH=stable/grizzly
# Quantum (Network) service
QUANTUM_BRANCH=stable/grizzly
SWIFT_BRANCH=stable/grizzly

#Enable Logging
LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=False
SCREEN_LOGDIR=/opt/stack/logs

disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron

SCHEDULER=nova.scheduler.simple.SimpleScheduler

HOST_IP=172.17.14.170
PUBLIC_INTERFACE=eth1
FLAT_INTERFACE=eth1
MULTI_HOST=1

When I run ./stack.sh I get the following error:

2013-08-10 18:20:55 Traceback (most recent call last):
2013-08-10 18:20:55   File "/usr/local/bin/neutron-db-manage", line 10, in <module>
2013-08-10 18:20:55     sys.exit(main())
2013-08-10 18:20:55   File "/opt/stack/neutron/neutron/db/migration/cli.py", line 140, in main
2013-08-10 18:20:55     CONF.command.func(config, CONF.command.name)
2013-08-10 18:20:55   File "/opt/stack/neutron/neutron/db/migration/cli.py", line 77, in do_upgrade_downgrade
2013-08-10 18:20:55     do_alembic_command(config, cmd, revision, sql=CONF.command.sql)
2013-08-10 18:20:55   File "/opt/stack/neutron/neutron/db/migration/cli.py", line 56, in do_alembic_command
2013-08-10 18:20:55     getattr(alembic_command, cmd)(config, *args, **kwargs)
2013-08-10 18:20:55   File "/usr/local/lib/python2.7/dist-packages/alembic/command.py", line 124, in upgrade
2013-08-10 18:20:55     script.run_env()
2013-08-10 18:20:55   File "/usr/local/lib/python2.7/dist-packages/alembic/script.py", line 193, in run_env
2013-08-10 18:20:55     util.load_python_file(self.dir, 'env.py')
2013-08-10 18:20:55   File "/usr/local/lib/python2.7/dist-packages/alembic/util.py", line 177, in load_python_file
2013-08-10 18:20:55     module = load_module(module_id, path)
2013-08-10 18:20:55   File "/usr/local/lib/python2.7/dist-packages/alembic/compat.py", line 39, in load_module
2013-08-10 18:20:55     return imp.load_source(module_id, path, fp)
2013-08-10 18:20:55   File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/env.py", line 102, in <module>
2013-08-10 18:20:55     run_migrations_online()
2013-08-10 18:20:55   File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/env.py", line 86, in run_migrations_online
2013-08-10 18:20:55     options=build_options())
2013-08-10 18:20:55   File "<string>", line 7, in run_migrations
2013-08-10 18:20:55   File "/usr/local/lib/python2.7/dist-packages/alembic/environment.py", line 652, in run_migrations
2013-08-10 18:20:55     self.get_context().run_migrations(**kw)
2013-08-10 18:20:55   File "/usr/local/lib/python2.7/dist-packages/alembic/migration.py", line 224, in run_migrations
2013-08-10 18:20:55     change(**kw)
2013-08-10 18:20:55   File "/opt/stack/neutron/neutron/db/migration/alembic_migrations/versions/52c5e4a18807_lbaas_pool_scheduler.py", line 45, in upgrade
2013-08-10 18:20:55     sa.PrimaryKeyConstraint('pool_id')
2013-08-10 18:20:55   File "<string>", line 7, in create_table
2013-08-10 18:20:55   File "/usr/local ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-24 23:06:24 -0500

If you do not have anything important, did you try dropping the neutron database and trying the script again?

Error Number 150 in mysql represents that it failed to conform to the foreign key references in the table. There could be multiple reasons for that failure, including the difference in the encoding (UTF-8 or others) of the database.

-Prasoon

edit flag offensive delete link more

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: 2013-08-10 20:27:08 -0500

Seen: 271 times

Last updated: Aug 24 '14