I have upgraded wallaby to Xena on Ubuntu 21.04 and nova encounter with following error.
Full track of errors: https://paste.opendev.org/
Dec 03 16:32:02 ostack-phx-api-1-1-nova-api-container-163d6129 nova-api-wsgi[44834]: 2022-12-03 16:32:02.852 44834 CRITICAL nova [req-8d50b7db-ba93-46ec-a12a-99e3bb4fc0e2 - - - - -] Unhandled error: nova.exception.TooOldComputeService: Current Nova version does not support computes older than Xena but the minimum compute service level in your system is 56 and the oldest supported service level is 57.
2022-12-03 16:32:02.852 44834 ERROR nova Traceback (most recent call last):
2022-12-03 16:32:02.852 44834 ERROR nova File "/openstack/venvs/nova-25.2.0/bin/nova-api-wsgi", line 52, in <module>
2022-12-03 16:32:02.852 44834 ERROR nova application = init_application()
2022-12-03 16:32:02.852 44834 ERROR nova File "/openstack/venvs/nova-25.2.0/lib/python3.8/site-packages/nova/api/openstack/compute/wsgi.py", line 20, in init_application
2022-12-03 16:32:02.852 44834 ERROR nova return wsgi_app.init_application(NAME)
2022-12-03 16:32:02.852 44834 ERROR nova File "/openstack/venvs/nova-25.2.0/lib/python3.8/site-packages/nova/api/openstack/wsgi_app.py", line 128, in init_application
2022-12-03 16:32:02.852 44834 ERROR nova _setup_service(CONF.host, name)
2022-12-03 16:32:02.852 44834 ERROR nova File "/openstack/venvs/nova-25.2.0/lib/python3.8/site-packages/nova/api/openstack/wsgi_app.py", line 51, in _setup_service
2022-12-03 16:32:02.852 44834 ERROR nova utils.raise_if_old_compute()
2022-12-03 16:32:02.852 44834 ERROR nova File "/openstack/venvs/nova-25.2.0/lib/python3.8/site-packages/nova/utils.py", line 1096, in raise_if_old_compute
2022-12-03 16:32:02.852 44834 ERROR nova raise exception.TooOldComputeService(
2022-12-03 16:32:02.852 44834 ERROR nova nova.exception.TooOldComputeService: Current Nova version does not support computes older than Xena but the minimum compute service level in your system is 56 and the oldest supported service level is 57.
2022-12-03 16:32:02.852 44834 ERROR nova
Dec 03 16:32:02 ostack-phx-api-1-1-nova-api-container-163d6129 uwsgi[44834]: unable to load app 0 (mountpoint='') (callable not found or import error)
Dec 03 16:32:02 ostack-phx-api-1-1-nova-api-container-163d6129 uwsgi[44834]: *** no app loaded. GAME OVER ***
Dec 03 16:32:02 ostack-phx-api-1-1-nova-api-container-163d6129 uwsgi[44829]: SIGINT/SIGTERM received...killing workers...
Dec 03 16:32:02 ostack-phx-api-1-1-nova-api-container-163d6129 uwsgi[44836]: Traceback (most recent call last):
Dec 03 16:32:02 ostack-phx-api-1-1-nova-api-container-163d6129 uwsgi[44836]: File "/openstack/venvs/nova-25.2.0/bin/nova-api-wsgi", line 52, in <module>
Dec 03 16:32:02 ostack-phx-api-1-1-nova-api-container-163d6129 uwsgi[44844]: Traceback (most recent call last):
Dec 03 16:32:02 ostack-phx-api-1-1-nova-api-container-163d6129 uwsgi[44844]: File "/openstack/venvs/nova-25.2.0/bin/nova-api-wsgi", line 6, in <module>
Dec 03 16:32:02 ostack-phx-api-1-1-nova-api-container-163d6129 nova-api-wsgi[44831]: 2022-12-03 16:32:02.853 44831 CRITICAL nova [-] Unhandled error: KeyboardInterrupt
2022-12-03 16:32:02.853 44831 ERROR nova Traceback (most recent call last):
2022-12-03 16:32:02.853 44831 ERROR nova File "/openstack/venvs/nova-25.2.0/bin/nova-api-wsgi", line 52, in <module>
2022-12-03 16:32:02.853 44831 ERROR nova application = init_application()
2022-12-03 16:32:02.853 44831 ERROR nova File "/openstack/venvs/nova-25.2.0/lib/python3.8/site-packages/nova/api/openstack/compute/wsgi.py", line 20, in init_application
2022-12-03 16:32:02.853 44831 ERROR nova return wsgi_app.init_application(NAME)
2022-12-03 16:32:02.853 44831 ERROR nova File "/openstack/venvs/nova-25.2.0/lib/python3.8/site-packages/nova/api/openstack/wsgi_app.py", line 125, in init_application
2022-12-03 16:32:02.853 44831 ERROR nova init_global_data(conf_files, name)
2022-12-03 16:32:02.853 44831 ERROR nova File "/openstack/venvs/nova-25.2.0/lib/python3.8/site-packages/nova/utils.py", line 1123, in wrapper
2022-12-03 16:32:02.853 44831 ERROR nova return func(*args, **kwargs)
2022-12-03 16:32:02.853 44831 ERROR nova File "/openstack/venvs/nova-25.2.0/lib/python3.8/site-packages/nova/api/openstack/wsgi_app.py", line 111, in init_global_data
2022-12-03 16:32:02.853 44831 ERROR nova CONF.log_opt_values(
2022-12-03 16:32:02.853 44831 ERROR nova File "/openstack/venvs/nova-25.2.0/lib/python3.8/site-packages/oslo_config/cfg.py", line 2611, in log_opt_values
2022-12-03 16:32:02.853 44831 ERROR nova _sanitize(opt, getattr(group_attr, opt_name)))
2022-12-03 16:32:02.853 44831 ERROR nova File "/openstack/venvs/nova-25.2.0/lib/python3.8/site-packages/oslo_config/cfg.py", line 3161, in __getattr__
2022-12-03 16:32:02.853 44831 ERROR nova return self._conf._get(name, self._group)
2022-12-03 16:32:02.853 44831 ERROR nova File "/openstack/venvs/nova-25.2.0/lib/python3.8/site-packages/oslo_config/cfg.py", line 2652, in _get
2022-12-03 16:32:02.853 44831 ERROR nova pass
2022-12-03 16:32:02.853 44831 ERROR nova KeyboardInterrupt
2022-12-03 16:32:02.853 44831 ERROR nova
Solution:
mysql -e "update nova.services set version = 57 where deleted = 0;"
Reference patch but for Victoria:
https:/ /bugs.launchpad .net/nova/ +bug/1903545