Bug 1350302
Summary: | beaker-init --check on an empty database creates alembic_version table, database cannot be populated | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Dan Callaghan <dcallagh> |
Component: | general | Assignee: | Jon Orris <jorris> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 23 | CC: | dcallagh, dowang, jorris, mjia, rjoost |
Target Milestone: | 23.3 | Keywords: | Patch, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-07 06:44:34 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dan Callaghan
2016-06-27 05:21:04 UTC
(In reply to Dan Callaghan from comment #0) > So we either need to make beaker-init ignore the presence of alembic_version > when considering whether the database is empty, or we need to make > beaker-init --check not silently create the alembic_version table. > > I would prefer the latter since beaker-init --check promises to make no > changes to the database, although we are clearly violating that promise > right now. Unfortunately the second option is not possible, as alembic itself auto-creates this table as soon as you call get_current_revision(). This is, however, fixed in newer versions of alembic, so it will be possible to remove this workaround if and when alembic is upgraded. https://gerrit.beaker-project.org/#/c/5161/ This bug fix is included in beaker-server-23.3-0.git.10.a898f12 which is currently available for download here: https://beaker-project.org/nightlies/release-23/ Beaker 23.3 has been released. |