102 if config.has_section('database'): |
102 if config.has_section('database'): |
103 db_connection = config.get('database', 'connection') |
103 db_connection = config.get('database', 'connection') |
104 engine = sqlalchemy.create_engine(db_connection) |
104 engine = sqlalchemy.create_engine(db_connection) |
105 if engine.url.username != '%SERVICE_USER%': |
105 if engine.url.username != '%SERVICE_USER%': |
106 check_call(['/usr/bin/neutron-db-manage', '--config-file', |
106 check_call(['/usr/bin/neutron-db-manage', '--config-file', |
|
107 '/etc/neutron/neutron.conf', 'stamp', 'havana']) |
|
108 check_call(['/usr/bin/neutron-db-manage', '--config-file', |
107 '/etc/neutron/neutron.conf', 'upgrade', 'juno']) |
109 '/etc/neutron/neutron.conf', 'upgrade', 'juno']) |
108 check_call(['/usr/bin/neutron-db-manage', '--config-file', |
110 check_call(['/usr/bin/neutron-db-manage', '--config-file', |
109 '/etc/neutron/neutron.conf', 'upgrade', 'kilo']) |
111 '/etc/neutron/neutron.conf', 'upgrade', 'kilo']) |
110 |
112 |
111 |
113 |