<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 23, 2023 at 6:15 PM Takashi Kajinami <<a href="mailto:tkajinam@redhat.com">tkajinam@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Thank you for the heads up, Stephen.</div><div><br></div><div>Today I spent some time attempting to remove the dependency on sqlalchemy-migrate from heat.</div><div>I've pushed current patch sets but so far these seem to be working (according to CI).<br></div><div> <a href="https://review.opendev.org/q/topic:alembic+project:openstack/heat" target="_blank">https://review.opendev.org/q/topic:alembic+project:openstack/heat</a></div><div><br></div><div>We'll try to get these merged ASAP so that we can bump oslo.db timely after the new version without</div><div>sqlalchemy support is released. If you have time to help reviewing these, that would be much appreciated.<br></div></div></blockquote><div><br></div><div>tiny but important correction</div><div><br></div><div>the new version without "sqlalchemy-migrate" support<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div><br></div><div>Thank you,</div><div>Takashi<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 23, 2023 at 1:43 AM Stephen Finucane <<a href="mailto:stephenfin@redhat.com" target="_blank">stephenfin@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">tl;dr: Projects still relying on sqlalchemy-migrate for migrations need to start<br>
their switch to alembic immediately. Projects with "legacy" sqlalchemy-migrated<br>
based migrations need to drop them.<br>
<br>
A quick heads up that oslo.db 13.0.0 will be release in the next month or so and<br>
will remove sqlalchemy-migrate support and formally add support for sqlalchemy<br>
2.x. The removal of sqlalchemy-migrate support should only affect projects using<br>
oslo.db's sqlalchemy-migrate wrappers, as opposed to using sqlalchemy-migrate<br>
directly. For any projects that rely on this functionality, a short-term fix is<br>
to vendor the removed code [1] in your project. However, I must emphasise that<br>
we're not removing sqlalchemy-migrate integration for the fun of it: it's not<br>
compatible with sqlalchemy 2.x and is no longer maintained. If your project uses<br>
sqlalchemy-migrate and you haven't migrated to alembic yet, you need to start<br>
doing so immediately. If you have migrated to alembic but still have sqlalchemy-<br>
migrate "legacy" migrations in-tree, you need to look at dropping these asap.<br>
Anything less will result in broken master when we bump upper-constraints to<br>
allow sqlalchemy 2.x in Bobcat. I've listed projects in $subject that appear to<br>
be using the removed modules.<br>
<br>
For more advice on migrating to sqlalchemy 2.x and alembic, please look at my<br>
previous post on the matter [2].<br>
<br>
Cheers,<br>
Stephen<br>
<br>
[1] <a href="https://review.opendev.org/c/openstack/oslo.db/+/853025" rel="noreferrer" target="_blank">https://review.opendev.org/c/openstack/oslo.db/+/853025</a><br>
[2] <a href="https://lists.openstack.org/pipermail/openstack-discuss/2021-August/024122.html" rel="noreferrer" target="_blank">https://lists.openstack.org/pipermail/openstack-discuss/2021-August/024122.html</a><br>
<br>
<br>
</blockquote></div>
</blockquote></div></div>