yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #29590
[Bug 1432508] Re: 1005, "Can't create table 'neutron.nuage_routerroutes_mapping' (errno: -1)
unable to startup openstack-neutron service on SLES 11 SP3
** Project changed: openstack-manuals => neutron
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1432508
Title:
1005, "Can't create table 'neutron.nuage_routerroutes_mapping' (errno:
-1)
Status in OpenStack Neutron (virtual network service):
Incomplete
Bug description:
Hi,
I'm installing Openstack on SLES 11 SP3, during the neutron-controller installation phase
when service openstack-neutron start, return error unable to create table neutron.nuage_routerroutes_mapping, i tried drop db neutron , reboot server and manually execute create table command but still could not solve the problem. any advice ? thanks
controller:~ # service openstack-neutron restart
Stopping neutron server done
Checking for DB MigrationsINFO [alembic.migration] Context impl MySQLImpl.
INFO [alembic.migration] Will assume non-transactional DDL.
INFO [alembic.migration] Running upgrade 5446f2a45467 -> db_healing, Include all tables and make migrations unconditional.
INFO [alembic.migration] Context impl MySQLImpl.
INFO [alembic.migration] Will assume non-transactional DDL.
INFO [alembic.autogenerate.compare] Detected added table 'nuage_routerroutes_mapping'
INFO [alembic.autogenerate.compare] Detected server default on column 'cisco_network_profiles.multicast_ip_index'
INFO [alembic.autogenerate.compare] Detected server default on column 'poolmonitorassociations.status'
INFO [alembic.autogenerate.compare] Detected added index 'ix_quotas_tenant_id' on '['tenant_id']'
INFO [alembic.autogenerate.compare] Detected NULL on column 'tz_network_bindings.phy_uuid'
INFO [alembic.autogenerate.compare] Detected NULL on column 'tz_network_bindings.vlan_id'
Traceback (most recent call last):
File "/usr/bin/neutron-db-manage", line 10, in <module>
sys.exit(main())
File "/usr/lib64/python2.6/site-packages/neutron/db/migration/cli.py", line 173, in main
CONF.command.func(config, CONF.command.name)
File "/usr/lib64/python2.6/site-packages/neutron/db/migration/cli.py", line 83, in do_upgrade_downgrade
do_alembic_command(config, cmd, revision, sql=CONF.command.sql)
File "/usr/lib64/python2.6/site-packages/neutron/db/migration/cli.py", line 61, in do_alembic_command
getattr(alembic_command, cmd)(config, *args, **kwargs)
File "/usr/lib64/python2.6/site-packages/alembic/command.py", line 129, in upgrade
script.run_env()
File "/usr/lib64/python2.6/site-packages/alembic/script.py", line 208, in run_env
util.load_python_file(self.dir, 'env.py')
File "/usr/lib64/python2.6/site-packages/alembic/util.py", line 230, in load_python_file
module = load_module_py(module_id, path)
File "/usr/lib64/python2.6/site-packages/alembic/compat.py", line 63, in load_module_py
mod = imp.load_source(module_id, path, fp)
File "/usr/lib64/python2.6/site-packages/neutron/db/migration/alembic_migrations/env.py", line 108, in <module>
run_migrations_online()
File "/usr/lib64/python2.6/site-packages/neutron/db/migration/alembic_migrations/env.py", line 100, in run_migrations_online
context.run_migrations()
File "<string>", line 7, in run_migrations
File "/usr/lib64/python2.6/site-packages/alembic/environment.py", line 696, in run_migrations
self.get_context().run_migrations(**kw)
File "/usr/lib64/python2.6/site-packages/alembic/migration.py", line 266, in run_migrations
change(**kw)
File "/usr/lib64/python2.6/site-packages/neutron/db/migration/alembic_migrations/versions/1d6ee1ae5da5_db_healing.py", line 32, in upgrade
heal_script.heal()
File "/usr/lib64/python2.6/site-packages/neutron/db/migration/alembic_migrations/heal_script.py", line 80, in heal
execute_alembic_command(el)
File "/usr/lib64/python2.6/site-packages/neutron/db/migration/alembic_migrations/heal_script.py", line 92, in execute_alembic_command
METHODS[command[0]](*command[1:])
File "/usr/lib64/python2.6/site-packages/neutron/db/migration/alembic_migrations/heal_script.py", line 140, in add_table
table.create(bind=op.get_bind(), checkfirst=True)
File "/usr/lib64/python2.6/site-packages/sqlalchemy/sql/schema.py", line 707, in create
checkfirst=checkfirst)
File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/base.py", line 1245, in _run_visitor
**kwargs).traverse_single(element)
File "/usr/lib64/python2.6/site-packages/sqlalchemy/sql/visitors.py", line 120, in traverse_single
return meth(obj, **kw)
File "/usr/lib64/python2.6/site-packages/sqlalchemy/sql/ddl.py", line 732, in visit_table
self.connection.execute(CreateTable(table))
File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/base.py", line 729, in execute
return meth(self, multiparams, params)
File "/usr/lib64/python2.6/site-packages/sqlalchemy/sql/ddl.py", line 69, in _execute_on_connection
return connection._execute_ddl(self, multiparams, params)
File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/base.py", line 783, in _execute_ddl
compiled
File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/base.py", line 958, in _execute_context
context)
File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/base.py", line 1155, in _handle_dbapi_exception
util.raise_from_cause(newraise, exc_info)
File "/usr/lib64/python2.6/site-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/base.py", line 951, in _execute_context
context)
File "/usr/lib64/python2.6/site-packages/sqlalchemy/engine/default.py", line 436, in do_execute
cursor.execute(statement, parameters)
File "/usr/lib64/python2.6/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
sqlalchemy.exc.OperationalError: (OperationalError) (1005, "Can't create table 'neutron.nuage_routerroutes_mapping' (errno: -1)") '\nCREATE TABLE nuage_routerroutes_mapping (\n\tdestination VARCHAR(64) NOT NULL, \n\tnexthop VARCHAR(64) NOT NULL, \n\trouter_id VARCHAR(36) NOT NULL, \n\tnuage_route_id VARCHAR(36), \n\tPRIMARY KEY (destination, nexthop, router_id), \n\tFOREIGN KEY(router_id) REFERENCES routers (id) ON DELETE CASCADE\n)ENGINE=InnoDB\n\n' ()
failed
Starting neutron server done
-----------------------------------
Built: 2015-02-26T08:12:00 00:00
git SHA: f4b8c7519d7bcd7d03316ccd31f7557afb92f0aa
URL: http://docs.openstack.org/juno/install-guide/install/zypper/content/neutron-controller-node.html
source File: file:/home/jenkins/workspace/openstack-manuals-tox-doc-publishdocs/doc/install-guide/section_neutron-controller-node.xml
xml:id: neutron-controller-node
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1432508/+subscriptions