Skip to content

alembic 1.2.0 broke the alembic.command.stamp() revision parameter #601

@toabctl

Description

@toabctl

Trying to use OpenStack services with alembic 1.2.0 (currently 1.1.0 is used) is breaking a lot of services with (Ironic example):

[...]
    b'  File "ronic/ironic/db/sqlalchemy/migration.py", line 99, in stamp'
    b'    return alembic.command.stamp(config, revision=revision)'
    b"TypeError: stamp() got an unexpected keyword argument 'revision'"

Looks like the stamp method does no longer accept the parameter revision (done in commit fdcc5bf).

I wonder if it would be possible (until 2.0.0 comes up) to support revision and revisions as parameter to be backward compatible?

Also oslo.db is affected. It tries to use the revision parameter. See https://opendev.org/openstack/oslo.db/src/branch/master/oslo_db/sqlalchemy/migration_cli/ext_alembic.py#L92

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions