| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Python 3.10 has been tested since 2023.1[1].
[1] https://governance.openstack.org/tc/reference/runtimes/2023.1.html
Change-Id: Ib723898169c465ace05381219a51b79e51eadf70
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We don't have another ORM to content with here. Simplify
'heat.db.sqlalchemy' to 'heat.db'.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Id1db6c0ff126859f436c6c9b1187c250f38ebb62
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Well, sort of. We enable them but immediately filter out the ones we're
actually seeing, the rationale being that we can address these in a
piecemeal fashion without the risk of introducing new issues.
There's a lot more to be done here. However, the work done in oslo.db
[1], nova [2], cinder [2] etc. should provide a guide for how to resolve
the outstanding issues.
[1] https://review.opendev.org/q/topic:sqlalchemy-20+project:openstack/oslo.db
[2] https://review.opendev.org/q/topic:sqlalchemy-20+project:openstack/nova
[3] https://review.opendev.org/q/topic:sqlalchemy-20+project:openstack/cinder
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I5877aa495486ba28519b51d800c0474fd72859a5
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Unlike Cinder, Nova etc., we haven't had any sqlalchemy-migrate-based
migrations in Heat for some time. That means we don't need a transition
period to handle users that may not have the latest
sqlalchemy-migrate-based migration and we can remove these migrations
immediately. Doing so also means we can also remove sqlalchemy-migrate
from our dependencies. Hurrah!
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I825c58a42e9d430c9d660dae9bb70d1cb6f91079
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Previously, this was provided by oslo.db. However, the oslo.db variant
only works with sqlalchemy-migrate. We have to provide our own one here.
Fortunately, this has already been done in Cinder, Nova etc. and we can
duplicate the effort from there.
We also add some sanity check logic, while we're here.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I1ab3fd46d6564b71f4c9c81940943d11e944eb68
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is significantly easier than Cinder, Nova etc. as Heat hasn't had
any database migrations in multiple cycles, meaning we don't need to
worry about having to apply any older sqlalchemy-migrate migrations
before switching to alembic. Instead, we simply need to determine we're
upgrading a deployment that was previously using sqlalchemy-migrate,
upgrading a deployment that has already migrated to alembic, or
deploying a new deployment, adjusting accordingly.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I808af9cb21ba21808209b1daddac7426f4cad310
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Neutron LBaaS v2 was retired a long ago and users are no longer able
to use these resource types.
Story: 2010678
Task: 47759
Change-Id: I9c9cdcbe6cb1019714dbb4cfc05c0c68ac2ff934
|
|\ \ \ \
| | |/ /
| |/| | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Alembic's auto-generate functionality doesn't preserve index names or
column order. This causes comparisons between databases to fail. Update
the initial alembic migration to match the schema's generated by
sqlalchemy-migrate.
Change-Id: Ie8d98731c61434e85896062fe05137cbadf0eaa5
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This was generated using a different method to the one I've used
previously [1][2]. Instead of manually converting sqlalchemy-migrate
calls to alembic equivalents, we generate it automatically based on our
models using alembic's auto-generate functionality:
alembic --config heat/db/sqlalchemy/alembic.ini \
revision -m 'Initial revision 2'
alembic --config heat/db/sqlalchemy/alembic.ini \
upgrade head
alembic --config heat/db/sqlalchemy/alembic.ini \
revision -m 'Initial revision 2' --autogenerate
The two files were then combined, formatting and imports adjusted, and
schema of this and the sqlalchemy-migrate migrations compared. The
latter step was done by comparing the schemas of a database created by
the sqlalchemy-migrate tool to the one created by alembic:
python heat/db/sqlalchemy/migrate_repo/manage.py version_control \
sqlite:///heat-old.db heat/db/sqlalchemy/migrate_repo/ 072
python heat/db/sqlalchemy/migrate_repo/manage.py upgrade \
sqlite:///heat-old.db heat/db/sqlalchemy/migrate_repo
With the two databases created, we can compare them using the
methodologies described in [3].
[1] https://review.opendev.org/c/openstack/nova/+/799527
[2] https://review.opendev.org/c/openstack/cinder/+/786931
[3] https://that.guru/blog/comparing-nova-db-migrations/
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ie32fbb42576760f2c4a52d8305823b99df2b41ba
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ic1544f3c5af482c8931b77a7faea059cc3c497dc
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
No migrations yet: this is simply the output of 'alembic init' with some
minor tweaks.
A note about ordering of requirements is removed from requirements.txt:
it is no longer true with the new dependency resolver introduced in pip
20.3.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I7790222ab5eaf6c47dd386fe472275a3037a9898
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
These are unused since change Icdab0db3f3371cd4eb8a8fb11cbc2328c0a830e7
way back in 2016.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I2e337ff0fbbded0c0cd42060aa35b4e0787d0d5f
|
|\ \ \ \
| |/ / /
| | | /
| |_|/
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Makes my life easier wrt testing.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I5a79494eb81622be5e56686a1995eb2f0bddb085
|
|\ \ \
| |/ /
|/| | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Some test have been unstable in Ubuntu Jammy because of the known
libvirt bug, and we have disabled these in functional jobs.
Let's disable the test case in grenade jobs, because these test cases
now cause frequent job failures.
Related-Bug: #1998274
Change-Id: I7038ce3ec2840b133e9ae5eb09a96dc8a5f3abc2
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Heat has been using the deprecated interfaces of openstacksdk for some
Senlin APIs but these interfaces were already removed. This fixes that
problem and replace the removed interfaces by the new ones.
story: 2010635
task: 47602
Change-Id: I3b18de721949f3c15c776f90720f3e994f7d6670
|
| |
| |
| |
| |
| |
| |
| | |
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html
Change-Id: I7eaf3a7f75d0eff695ae6cfb13e986bdadf13f2d
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The new release of bandit just came out which introduced the new rule,
with which unfortunately heat is not compliant now.
This disables the rule temporally so that we can avoid adapting our
stable branches to new lint rules by backporting this.
Change-Id: I4a27049d40760ad8da6fda24e1195e26ef9c6c17
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add file to the reno documentation build to show release notes for
stable/2023.1.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.
Sem-Ver: feature
Change-Id: I66c13d91cee78725f6cf856f66382c7391ed5c26
|
|/
|
|
|
|
|
|
|
| |
python-novaclient 18.3.0 replaced usage of kwargs by explicit arguments
and that broke some assertions of arguments.
story: 2010638
task: 47613
Change-Id: I039d1e672611b7b523ce61df072c60d161851eed
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We don't map the CircularDependencyException to
a 400 Bad Request in the fault middleware so users
can never get an understand of what is wrong in
their template. They are today instead present
with a 500 internal server error without details
which doesn't help them.
Change-Id: Idc8713b4c29e2534dd7059e4566ac3b777f418e5
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Moves the exception from inside the engine code
to the common code so that we can use it in the
API fault middleware.
Change-Id: I017b95153c358829501f6a5740918cdb005fb32f
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
story: 2010578
task: 47331
Change-Id: I3706d662ec56e3548eb991556be7bd0f82f49e05
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
depending on compute API version, flavor in the instance representation
may not have "id" field, but "original_name" instead.
Story: 2009753
Task: 44211
Change-Id: Ieeae2f36f5e59e01f57a2f8e66a983ec3d99ec63
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This test is very frequently failing now. The test case creates a stack
with an instance but the stack can't be deleted within timeout because
of the known libvirt bug in Ubuntu Jammy. Because the release deadline
is already over, we'll disable this test so that we can merge some
changes now. We'll revisit this (and the other test cases we disabled)
later.
Related-Bug: #1998274
Story: 2010631
Task: 47589
Change-Id: I87c4b1e7a911fd78e327393b1af200667e89c999
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
A unit test for verifying that hidden parameters should
be masked in the get stack environment API
Story: 2010555
Task: 47229
Change-Id: I44ef26849ebb450a5643907a0ef47166cfd9b1cb
|
|\ \ \ \
| |_|_|/
|/| | | |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
The previous content is not very accurate because the fix is made in
API layer instead of the CLI command.
Change-Id: I0abbd535aacc03446ada0fa806dfdfdaa4522afe
|