nova-manage db sync --version <version number> command failed with stack trace.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Sagar Waghmare |
Bug Description
nova-manage db sync --version <version number> is failing with stack trace as below,
[stack@hostname ~]$ nova-manage db sync --version 392
.
.
.
ERROR: Could not access cell0.
Has the nova_api database been created?
Has the nova_cell0 database been created?
Has "nova-manage api_db sync" been run?
Has "nova-manage cell_v2 map_cell0" been run?
Is [api_database]
Is the cell0 database connection URL correct?
Error: "Database schema file with version 392 doesn't exist."
An error has occurred:
Traceback (most recent call last):
File "/opt/stack/
ret = fn(*fn_args, **fn_kwargs)
File "/opt/stack/
return migration.
File "/opt/stack/
return IMPL.db_
File "/opt/stack/
repository, version)
File "/usr/lib/
return _migrate(url, repository, version, upgrade=True, err=err, **opts)
File "<decorator-
File "/usr/lib/
return f(*a, **kw)
File "/usr/lib/
changeset = schema.
File "/usr/lib/
changeset = self.repository
File "/usr/lib/
changes = [self.version(
File "/usr/lib/
return self.versions.
File "/usr/lib/
"exist.") % {'args': VerNum(vernum)})
VersionNotFound
As, '--version' parameter was deprecated in the Pike cycle and will not be supported in future versions of nova, the expected error message is as below,
ERROR: Could not access cell0.
Has the nova_api database been created?
Has the nova_cell0 database been created?
Has "nova-manage api_db sync" been run?
Has "nova-manage cell_v2 map_cell0" been run?
Is [api_database]
Is the cell0 database connection URL correct?
Error: "Database schema file with version 392 doesn't exist."
Openstack version: openstack 3.17.0 (Rocky)
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Sagar Waghmare (sagarwaghmare92) |
Changed in nova: | |
status: | Confirmed → In Progress |
tags: | added: nova-manage |
Fix proposed to branch: stable/rocky /review. openstack. org/637491
Review: https:/