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
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 db-relation- changed self.get_ context( ).run_migration s(**kw) db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ alembic/ migration. py", line 258, in run_migrations db-relation- changed change(**kw) db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ neutron/ db/migration/ alembic_ migrations/ versions/ 1d6ee1ae5da5_ db_healing. py", line 32, in upgrade db-relation- changed heal_script.heal() db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ neutron/ db/migration/ alembic_ migrations/ heal_script. py", line 80, in heal db-relation- changed execute_ alembic_ command( el) db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ neutron/ db/migration/ alembic_ migrations/ heal_script. py", line 91, in execute_ alembic_ command db-relation- changed METHODS[ command[ 0]](*command[ 1:]) db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ neutron/ db/migration/ alembic_ migrations/ heal_script. py", line 174, in add_column db-relation- changed op.add_ column( table_name, column.copy(), schema=schema) db-relation- changed File "<string>", line 7, in add_column db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ alembic/ operations. py", line 428, in add_column db-relation- changed schema=schema db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ alembic/ ddl/impl. py", line 127, in add_column db-relation- changed self._exec( base.AddColumn( table_name, column, schema=schema)) db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ alembic/ ddl/impl. py", line 76, in _exec db-relation- changed conn.execute( construct, *multiparams, **params) db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 729, in execute db-relation- changed return meth(self, multiparams, params) db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ sql/ddl. py", line 69, in _execute_ on_connection db-relation- changed return connection. _execute_ ddl(self, multiparams, params) db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 783, in _execute_ddl db-relation- changed compiled db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 958, in _execute_context db-relation- changed context) db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 1156, in _handle_ dbapi_exception db-relation- changed util.raise_ from_cause( newraise, exc_info) db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ util/compat. py", line 199, in raise_from_cause db-relation- changed reraise( type(exception) , exception, tb=exc_tb) db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 951, in _execute_context db-relation- changed context) db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ engine/ default. py", line 436, in do_execute db-relation- changed cursor. execute( statement, parameters) db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ MySQLdb/ cursors. py", line 174, in execute db-relation- changed self.errorhandl er(self, exc, value) db-relation- changed File "/usr/lib/ python2. 7/dist- packages/ MySQLdb/ connections. py", line 36, in defaulterrorhandler db-relation- changed raise errorclass, errorvalue db-relation- changed oslo.db. exception. DBConnectionErr or: (OperationalError) (2013, 'Lost connection to MySQL server during query') 'ALTER TABLE nuage_routerrou tes_mapping ADD COLUMN destination VARCHAR(64) NOT NULL' () db-relation- changed Traceback (most recent call last): db-relation- changed File "/var/lib/ juju/agents/ unit-neutron- api-0/charm/ hooks/shared- db-relation- changed" , line 400, in <module> db-relation- changed main() db-relation- changed File "/var/lib/ juju/agents/ unit-neutron- api-0/charm/ hooks/shared- db-relation- changed" , line 394, in main db-relation- changed hooks.execute( sys.argv) db-relation- changed File "/var/lib/ juju/agents/ unit-neutron- api-0/charm/ hooks/charmhelp ers/core/ hookenv. py", line 502, in execute db-relation- changed self._hooks[ hook_name] () db-relation- changed File "/var/lib/ juju/agents/ unit-neutron- api-0/charm/ hooks/charmhelp ers/core/ host.py" , line 268, in wrapped_f db-relation- changed f(*args) db-relation- changed File "/var/lib/ juju/agents/ unit-neutron- api-0/charm/ hooks/shared- db-relation- changed" , line 217, in db_changed db-relation- changed conditional_ neutron_ migration( ) db-relation- changed File "/var/lib/ juju/agents/ unit-neutron- api-0/charm/ hooks/shared- db-relation- changed" , line 175, in conditional_ neutron_ migration db-relation- changed migrate_ neutron_ database( ) db-relation- changed File "/var/lib/ juju/agents/ unit-neutron- api-0/charm/ hooks/neutron_ api_utils. py", line 226, in migrate_ neutron_ database db-relation- changed subprocess. check_output( cmd) db-relation- changed File "/usr/lib/ python2. 7/subprocess. py", line 573, in check_output db-relation- changed raise CalledProcessEr ror(retcode, cmd, output=output) db-relation- changed subprocess. CalledProcessEr ror: 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 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 INFO shared-
unit-neutron-api-0: 2014-10-07 13:30:26 ERROR juju.worker.uniter uniter.go:486 hook failed: exit status 1