Comment 2 for bug 1378359

Revision history for this message
James Page (james-page) wrote :

And from neutron:

unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/alembic/environment.py", line 688, in run_migrations
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed self.get_context().run_migrations(**kw)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/alembic/migration.py", line 258, in run_migrations
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed change(**kw)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/neutron/db/migration/alembic_migrations/versions/1d6ee1ae5da5_db_healing.py", line 32, in upgrade
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed heal_script.heal()
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/neutron/db/migration/alembic_migrations/heal_script.py", line 80, in heal
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed execute_alembic_command(el)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/neutron/db/migration/alembic_migrations/heal_script.py", line 91, in execute_alembic_command
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed METHODS[command[0]](*command[1:])
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/neutron/db/migration/alembic_migrations/heal_script.py", line 174, in add_column
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed op.add_column(table_name, column.copy(), schema=schema)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "<string>", line 7, in add_column
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/alembic/operations.py", line 428, in add_column
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed schema=schema
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/alembic/ddl/impl.py", line 127, in add_column
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed self._exec(base.AddColumn(table_name, column, schema=schema))
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/alembic/ddl/impl.py", line 76, in _exec
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed conn.execute(construct, *multiparams, **params)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 729, in execute
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed return meth(self, multiparams, params)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/ddl.py", line 69, in _execute_on_connection
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed return connection._execute_ddl(self, multiparams, params)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 783, in _execute_ddl
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed compiled
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 958, in _execute_context
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed context)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1156, in _handle_dbapi_exception
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed util.raise_from_cause(newraise, exc_info)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed reraise(type(exception), exception, tb=exc_tb)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 951, in _execute_context
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed context)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 436, in do_execute
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed cursor.execute(statement, parameters)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed self.errorhandler(self, exc, value)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed raise errorclass, errorvalue
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed oslo.db.exception.DBConnectionError: (OperationalError) (2013, 'Lost connection to MySQL server during query') 'ALTER TABLE nuage_routerroutes_mapping ADD COLUMN destination VARCHAR(64) NOT NULL' ()
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed Traceback (most recent call last):
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-neutron-api-0/charm/hooks/shared-db-relation-changed", line 400, in <module>
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed main()
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-neutron-api-0/charm/hooks/shared-db-relation-changed", line 394, in main
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed hooks.execute(sys.argv)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-neutron-api-0/charm/hooks/charmhelpers/core/hookenv.py", line 502, in execute
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed self._hooks[hook_name]()
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-neutron-api-0/charm/hooks/charmhelpers/core/host.py", line 268, in wrapped_f
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed f(*args)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-neutron-api-0/charm/hooks/shared-db-relation-changed", line 217, in db_changed
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed conditional_neutron_migration()
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-neutron-api-0/charm/hooks/shared-db-relation-changed", line 175, in conditional_neutron_migration
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed migrate_neutron_database()
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/var/lib/juju/agents/unit-neutron-api-0/charm/hooks/neutron_api_utils.py", line 226, in migrate_neutron_database
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed subprocess.check_output(cmd)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed raise CalledProcessError(retcode, cmd, output=output)
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-db-relation-changed subprocess.CalledProcessError: Command '['neutron-db-manage', '--config-file', '/etc/neutron/neutron.conf', '--config-file', '/etc/neutron/plugins/ml2/ml2_conf.ini', 'upgrade', 'head']' returned non-zero exit status 1
unit-neutron-api-0: 2014-10-07 13:30:26 ERROR juju.worker.uniter uniter.go:486 hook failed: exit status 1