~hopem/charms/trusty/nova-cloud-controller/grizzly

« back to all changes in this revision

Viewing changes to hooks/nova_cc_hooks.py

[gnuoy,r=james-page] Conditional migration of neutron db in neutron-api for >=kilo

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
 
208
208
def conditional_neutron_migration():
209
209
    if os_release('nova-common') <= 'icehouse':
210
 
        log('Not running neutron database migration as migrations are handled'
 
210
        log('Not running neutron database migration as migrations are handled '
211
211
            'by the neutron-server process.')
 
212
    elif os_release('nova-common') >= 'kilo':
 
213
        log('Not running neutron database migration as migrations are by '
 
214
            'the neutron-api charm.')
212
215
    else:
213
216
        migrate_neutron_database()
214
217
        # neutron-api service may have appeared while the migration was