From 05304b5c73d613f459218d910eef089a4c4f4972 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Wed, 21 Sep 2016 09:07:43 -0700 Subject: [PATCH] Add placeholder DB migrations for Ocata This adds placeholder migrations for potential backports of database migrations to newton. Change-Id: I3ead9c09fb033592f752b26cac7482cefaa5d12b --- .../migrate_repo/versions/021_placeholder.py | 23 +++++++++++++++++++ .../migrate_repo/versions/022_placeholder.py | 23 +++++++++++++++++++ .../migrate_repo/versions/023_placeholder.py | 23 +++++++++++++++++++ .../migrate_repo/versions/024_placeholder.py | 23 +++++++++++++++++++ .../migrate_repo/versions/025_placeholder.py | 23 +++++++++++++++++++ .../migrate_repo/versions/335_placeholder.py | 23 +++++++++++++++++++ .../migrate_repo/versions/336_placeholder.py | 23 +++++++++++++++++++ .../migrate_repo/versions/337_placeholder.py | 23 +++++++++++++++++++ .../migrate_repo/versions/338_placeholder.py | 23 +++++++++++++++++++ .../migrate_repo/versions/339_placeholder.py | 23 +++++++++++++++++++ .../migrate_repo/versions/340_placeholder.py | 23 +++++++++++++++++++ .../migrate_repo/versions/341_placeholder.py | 23 +++++++++++++++++++ .../migrate_repo/versions/342_placeholder.py | 23 +++++++++++++++++++ .../migrate_repo/versions/343_placeholder.py | 23 +++++++++++++++++++ .../migrate_repo/versions/344_placeholder.py | 23 +++++++++++++++++++ .../functional/db/api/test_migrations.py | 3 ++- nova/tests/unit/db/test_migrations.py | 4 +++- 17 files changed, 350 insertions(+), 2 deletions(-) create mode 100644 nova/db/sqlalchemy/api_migrations/migrate_repo/versions/021_placeholder.py create mode 100644 nova/db/sqlalchemy/api_migrations/migrate_repo/versions/022_placeholder.py create mode 100644 nova/db/sqlalchemy/api_migrations/migrate_repo/versions/023_placeholder.py create mode 100644 nova/db/sqlalchemy/api_migrations/migrate_repo/versions/024_placeholder.py create mode 100644 nova/db/sqlalchemy/api_migrations/migrate_repo/versions/025_placeholder.py create mode 100644 nova/db/sqlalchemy/migrate_repo/versions/335_placeholder.py create mode 100644 nova/db/sqlalchemy/migrate_repo/versions/336_placeholder.py create mode 100644 nova/db/sqlalchemy/migrate_repo/versions/337_placeholder.py create mode 100644 nova/db/sqlalchemy/migrate_repo/versions/338_placeholder.py create mode 100644 nova/db/sqlalchemy/migrate_repo/versions/339_placeholder.py create mode 100644 nova/db/sqlalchemy/migrate_repo/versions/340_placeholder.py create mode 100644 nova/db/sqlalchemy/migrate_repo/versions/341_placeholder.py create mode 100644 nova/db/sqlalchemy/migrate_repo/versions/342_placeholder.py create mode 100644 nova/db/sqlalchemy/migrate_repo/versions/343_placeholder.py create mode 100644 nova/db/sqlalchemy/migrate_repo/versions/344_placeholder.py diff --git a/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/021_placeholder.py b/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/021_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/021_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/022_placeholder.py b/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/022_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/022_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/023_placeholder.py b/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/023_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/023_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/024_placeholder.py b/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/024_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/024_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/025_placeholder.py b/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/025_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/api_migrations/migrate_repo/versions/025_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/db/sqlalchemy/migrate_repo/versions/335_placeholder.py b/nova/db/sqlalchemy/migrate_repo/versions/335_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/migrate_repo/versions/335_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/db/sqlalchemy/migrate_repo/versions/336_placeholder.py b/nova/db/sqlalchemy/migrate_repo/versions/336_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/migrate_repo/versions/336_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/db/sqlalchemy/migrate_repo/versions/337_placeholder.py b/nova/db/sqlalchemy/migrate_repo/versions/337_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/migrate_repo/versions/337_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/db/sqlalchemy/migrate_repo/versions/338_placeholder.py b/nova/db/sqlalchemy/migrate_repo/versions/338_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/migrate_repo/versions/338_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/db/sqlalchemy/migrate_repo/versions/339_placeholder.py b/nova/db/sqlalchemy/migrate_repo/versions/339_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/migrate_repo/versions/339_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/db/sqlalchemy/migrate_repo/versions/340_placeholder.py b/nova/db/sqlalchemy/migrate_repo/versions/340_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/migrate_repo/versions/340_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/db/sqlalchemy/migrate_repo/versions/341_placeholder.py b/nova/db/sqlalchemy/migrate_repo/versions/341_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/migrate_repo/versions/341_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/db/sqlalchemy/migrate_repo/versions/342_placeholder.py b/nova/db/sqlalchemy/migrate_repo/versions/342_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/migrate_repo/versions/342_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/db/sqlalchemy/migrate_repo/versions/343_placeholder.py b/nova/db/sqlalchemy/migrate_repo/versions/343_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/migrate_repo/versions/343_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/db/sqlalchemy/migrate_repo/versions/344_placeholder.py b/nova/db/sqlalchemy/migrate_repo/versions/344_placeholder.py new file mode 100644 index 000000000000..a5d6ecd3add5 --- /dev/null +++ b/nova/db/sqlalchemy/migrate_repo/versions/344_placeholder.py @@ -0,0 +1,23 @@ + +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This is a placeholder for backports. +# Do not use this number for new work. New work starts after +# all the placeholders. +# +# See this for more information: +# http://lists.openstack.org/pipermail/openstack-dev/2013-March/006827.html + + +def upgrade(migrate_engine): + pass diff --git a/nova/tests/functional/db/api/test_migrations.py b/nova/tests/functional/db/api/test_migrations.py index 968f1f2f42a5..484bcc209f7b 100644 --- a/nova/tests/functional/db/api/test_migrations.py +++ b/nova/tests/functional/db/api/test_migrations.py @@ -164,7 +164,8 @@ class NovaAPIMigrationsWalk(test_migrations.WalkVersionsMixin): def _skippable_migrations(self): mitaka_placeholders = range(8, 13) - return mitaka_placeholders + newton_placeholders = range(21, 26) + return mitaka_placeholders + newton_placeholders def migrate_up(self, version, with_data=False): if with_data: diff --git a/nova/tests/unit/db/test_migrations.py b/nova/tests/unit/db/test_migrations.py index 7c47f4cedda6..200ac324d1b6 100644 --- a/nova/tests/unit/db/test_migrations.py +++ b/nova/tests/unit/db/test_migrations.py @@ -172,6 +172,7 @@ class NovaMigrationsCheckers(test_migrations.ModelsMigrationsSync, kilo_placeholders = range(281, 291) liberty_placeholders = range(303, 313) mitaka_placeholders = range(320, 330) + newton_placeholders = range(335, 345) return (special + havana_placeholders + @@ -179,7 +180,8 @@ class NovaMigrationsCheckers(test_migrations.ModelsMigrationsSync, juno_placeholders + kilo_placeholders + liberty_placeholders + - mitaka_placeholders) + mitaka_placeholders + + newton_placeholders) def migrate_up(self, version, with_data=False): if with_data: