Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ironic container fails to restart with SQLite implementation #562

Closed
blallau opened this issue Sep 16, 2024 · 1 comment · Fixed by #563
Closed

Ironic container fails to restart with SQLite implementation #562

blallau opened this issue Sep 16, 2024 · 1 comment · Fixed by #563
Labels
triage/accepted Indicates an issue is ready to be actively worked on.

Comments

@blallau
Copy link

blallau commented Sep 16, 2024

In case of SQLite usage the Ironic container fails to RESTART cause the SQL schema is already created.

CRITICAL ironic [-] Unhandled error: oslo_db.exception.DBMigrationError: DB schema is already under version control. Use upgrade() instead
ERROR ironic Traceback (most recent call last):
ERROR ironic   File "/usr/bin/ironic-dbsync", line 8, in <module>
ERROR ironic     sys.exit(main())
ERROR ironic   File "/usr/lib/python3.9/site-packages/ironic/cmd/dbsync.py", line 343, in main
ERROR ironic     CONF.command.func()
ERROR ironic   File "/usr/lib/python3.9/site-packages/ironic/cmd/dbsync.py", line 134, in create_schema
ERROR ironic     migration.create_schema()
ERROR ironic   File "/usr/lib/python3.9/site-packages/ironic/db/migration.py", line 52, in create_schema
ERROR ironic     return get_backend().create_schema()
ERROR ironic   File "/usr/lib/python3.9/site-packages/ironic/db/sqlalchemy/migration.py", line 71, in create_schema
ERROR ironic     raise db_exc.DBMigrationError("DB schema is already under version"
ERROR ironic oslo_db.exception.DBMigrationError: DB schema is already under version control. Use upgrade() instead
ERROR ironic 
@metal3-io-bot metal3-io-bot added the needs-triage Indicates an issue lacks a `triage/foo` label and requires one. label Sep 16, 2024
blallau pushed a commit to blallau/ironic-image that referenced this issue Sep 16, 2024
In case of SQLite implementation Ironic container fails to restart.
create_schema will be called only when required.

fix metal3-io#562
blallau pushed a commit to blallau/ironic-image that referenced this issue Sep 16, 2024
In case of SQLite implementation Ironic container fails to restart.
create_schema will be called only when required.

fix metal3-io#562

Signed-off-by: LALLAU Bertrand <blallau@github.com>
@elfosardo
Copy link
Member

/triage accepted

@metal3-io-bot metal3-io-bot added triage/accepted Indicates an issue is ready to be actively worked on. and removed needs-triage Indicates an issue lacks a `triage/foo` label and requires one. labels Sep 20, 2024
metal3-io-bot pushed a commit to metal3-io-bot/ironic-image that referenced this issue Sep 20, 2024
In case of SQLite implementation Ironic container fails to restart.
create_schema will be called only when required.

fix metal3-io#562

Signed-off-by: LALLAU Bertrand <blallau@github.com>
metal3-io-bot pushed a commit to metal3-io-bot/ironic-image that referenced this issue Sep 20, 2024
In case of SQLite implementation Ironic container fails to restart.
create_schema will be called only when required.

fix metal3-io#562

Signed-off-by: LALLAU Bertrand <blallau@github.com>
metal3-io-bot pushed a commit to metal3-io-bot/ironic-image that referenced this issue Sep 20, 2024
In case of SQLite implementation Ironic container fails to restart.
create_schema will be called only when required.

fix metal3-io#562

Signed-off-by: LALLAU Bertrand <blallau@github.com>
metal3-io-bot pushed a commit to metal3-io-bot/ironic-image that referenced this issue Sep 20, 2024
In case of SQLite implementation Ironic container fails to restart.
create_schema will be called only when required.

fix metal3-io#562

Signed-off-by: LALLAU Bertrand <blallau@github.com>
tuminoid pushed a commit to metal3-io-bot/ironic-image that referenced this issue Sep 27, 2024
In case of SQLite implementation Ironic container fails to restart.
create_schema will be called only when required.

fix metal3-io#562

Signed-off-by: LALLAU Bertrand <blallau@github.com>
tuminoid pushed a commit to metal3-io-bot/ironic-image that referenced this issue Sep 27, 2024
In case of SQLite implementation Ironic container fails to restart.
create_schema will be called only when required.

fix metal3-io#562

Signed-off-by: LALLAU Bertrand <blallau@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/accepted Indicates an issue is ready to be actively worked on.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants