~niedbalski/ubuntu/vivid/neutron/fixes-1447803

« back to all changes in this revision

Viewing changes to neutron/db/migration/alembic_migrations/versions/icehouse_release.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-10-03 18:45:23 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20141003184523-4mt6dy1q3j8n30c9
Tags: 1:2014.2~rc1-0ubuntu1
* New upstream release candidate:
  - d/p/*: Refreshed.
  - d/control: Add python-requests-mock to BD's.
  - d/control: Align versioned requirements with upstream.
* Transition linuxbridge and openvswitch plugin users to modular
  layer 2 plugin (LP: #1323729):
  - d/control: Mark removed plugin packages as transitional, depend
    on neutron-plugin-ml2, mark oldlibs/extra.
  - d/neutron-plugin-{linuxbridge,openvswitch}.install: Drop.
  - d/control: Depend on neutron-plugin-ml2 for linuxbridge
    agent package.
  - d/neutron-plugin-linuxbridge-agent.upstart: Use ml2 plugin
    configuration files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
revision = 'icehouse'
26
26
down_revision = '5ac1c354a051'
27
27
 
28
 
# Change to ['*'] if this migration applies to all plugins
29
 
 
30
 
migration_for_plugins = ['*']
31
 
 
32
 
 
33
 
def upgrade(active_plugins=None, options=None):
 
28
 
 
29
def upgrade():
34
30
    """A no-op migration for marking the Icehouse release."""
35
31
    pass
36
32
 
37
33
 
38
 
def downgrade(active_plugins=None, options=None):
 
34
def downgrade():
39
35
    # We are purging all downgrade methods from icehouse to havana because:
40
36
    # 1) havana is going to become unsupported during Kilo cycle.
41
37
    # 2) most people will upgrade from icehouse, while a minor percentage
44
40
    # See discussion in https://review.openstack.org/109952 for details
45
41
 
46
42
    raise NotImplementedError("Downgrade from icehouse to havana not "
47
 
                              "supported")
 
 
b'\\ No newline at end of file'
 
43
                              "supported")