Skip to content

Invalid default value for compute.virt-type as auto that gives unnecessary traceback and errors intermittently #173

Description

@nobuto-m

In Sunbeam deployment, there are some trace back in the initial deployment process.

ERROR nova oslo_config.cfg.ConfigFileValueError: Value for option virt_type from LocationInfo(location=<Locations.user: (4, True)>, detail='/var/snap/openstack-hypervisor/common/etc/nova/nova.conf') is not valid: Valid values are [kvm, lxc, qemu, parallels], but found 'auto'

I think this invalid auto is coming from the snap's default value as:

"compute.virt-type": "auto",

[journalctl -u snap.openstack-hypervisor.nova-api-metadata.service]

Apr 15 02:52:46 machine-1 systemd[1]: Started snap.openstack-hypervisor.nova-api-metadata.service - Service for snap application openstack-hypervisor.nova-api-metadata.
Apr 15 02:52:48 machine-1 openstack-hypervisor.nova-api-metadata[1109910]: 3 RLock(s) were not greened, to fix this error make sure you run eventlet.monkey_patch() before importing any other modules.
Apr 15 02:52:52 machine-1 nova-api-metadata[1109910]: 2026-04-15 02:52:52.948 1109910 WARNING nova.service [-] Running nova-metadata using eventlet is deprecated. Deploy with a WSGI server such as uwsgi or mod_wsgi.
Apr 15 02:52:53 machine-1 nova-api-metadata[1109910]: 2026-04-15 02:52:53.056 1109910 INFO nova.wsgi [-] metadata listening on 0.0.0.0:8775
Apr 15 02:52:53 machine-1 nova-api-metadata[1109910]: 2026-04-15 02:52:53.057 1109910 INFO oslo_service.service [-] Starting 4 workers
Apr 15 02:52:53 machine-1 nova-api-metadata[1111411]: 2026-04-15 02:52:53.078 1111411 ERROR oslo.messaging._drivers.impl_rabbit [None req-a04b829c-406f-42c5-8a04-ddb89c7469ec - - - - - -] Connection failed: [Errno 111] ECONNREFUSED (retrying in 1.0 seconds): ConnectionRefusedError: [Er
rno 111] ECONNREFUSED
Apr 15 02:52:53 machine-1 nova-api-metadata[1111412]: 2026-04-15 02:52:53.083 1111412 ERROR oslo.messaging._drivers.impl_rabbit [None req-92bc6d61-95a3-4e9b-aba1-fcdd2d7bc6d0 - - - - - -] Connection failed: [Errno 111] ECONNREFUSED (retrying in 1.0 seconds): ConnectionRefusedError: [Er
rno 111] ECONNREFUSED
Apr 15 02:52:53 machine-1 nova-api-metadata[1109910]: 2026-04-15 02:52:53.084 1109910 CRITICAL nova [-] Unhandled error: oslo_config.cfg.ConfigFileValueError: Value for option virt_type from LocationInfo(location=<Locations.user: (4, True)>, detail='/var/snap/openstack-hypervisor/common/etc/nova/nova.conf') is not valid: Valid values are [kvm, lxc, qemu, parallels], but found 'auto'
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova Traceback (most recent call last):
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova   File "/snap/openstack-hypervisor/560/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2727, in _do_get
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova     return (convert(val), alt_loc)
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova             ^^^^^^^^^^^^
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova   File "/snap/openstack-hypervisor/560/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2696, in convert
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova     return self._convert_value(
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova            ^^^^^^^^^^^^^^^^^^^^
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova   File "/snap/openstack-hypervisor/560/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2824, in _convert_value
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova     return opt.type(value)
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova            ^^^^^^^^^^^^^^^
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova   File "/snap/openstack-hypervisor/560/usr/lib/python3/dist-packages/oslo_config/types.py", line 167, in __call__
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova     raise ValueError(
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova ValueError: Valid values are [kvm, lxc, qemu, parallels], but found 'auto'
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova 
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova During handling of the above exception, another exception occurred:
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova 
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova Traceback (most recent call last):
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova   File "/snap/openstack-hypervisor/560/usr/bin/nova-api-metadata", line 10, in <module>
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova     sys.exit(main())
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova              ^^^^^^
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova   File "/snap/openstack-hypervisor/560/usr/lib/python3/dist-packages/nova/cmd/api_metadata.py", line 52, in main
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova     service.wait()
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova   File "/snap/openstack-hypervisor/560/usr/lib/python3/dist-packages/nova/service.py", line 493, in wait
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova     _launcher.wait()
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova   File "/snap/openstack-hypervisor/560/usr/lib/python3/dist-packages/oslo_service/service.py", line 654, in wait
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova     self.conf.log_opt_values(LOG, logging.DEBUG)
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova   File "/snap/openstack-hypervisor/560/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2622, in log_opt_values
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova     _sanitize(opt, getattr(group_attr, opt_name)))
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova   File "/snap/openstack-hypervisor/560/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 3172, in __getattr__
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova     return self._conf._get(name, self._group)
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova   File "/snap/openstack-hypervisor/560/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2664, in _get
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova     value, loc = self._do_get(name, group, namespace)
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova   File "/snap/openstack-hypervisor/560/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2743, in _do_get
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova     raise ConfigFileValueError(message)
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova oslo_config.cfg.ConfigFileValueError: Value for option virt_type from LocationInfo(location=<Locations.user: (4, True)>, detail='/var/snap/openstack-hypervisor/common/etc/nova/nova.conf') is not valid: Valid values are [kvm, lxc, qemu, parallels], but found 'auto'
                                                      2026-04-15 02:52:53.084 1109910 ERROR nova 
Apr 15 02:52:53 machine-1 nova-api-metadata[1111414]: 2026-04-15 02:52:53.085 1111414 ERROR oslo.messaging._drivers.impl_rabbit [None req-169303ae-e50f-483a-9e7e-175045edfd1f - - - - - -] Connection failed: [Errno 111] ECONNREFUSED (retrying in 1.0 seconds): ConnectionRefusedError: [Errno 111] ECONNREFUSED
Apr 15 02:52:53 machine-1 nova-api-metadata[1111416]: 2026-04-15 02:52:53.091 1111416 ERROR oslo.messaging._drivers.impl_rabbit [None req-058a02a5-db34-4941-9d67-3837b4259be2 - - - - - -] Connection failed: [Errno 111] ECONNREFUSED (retrying in 1.0 seconds): ConnectionRefusedError: [Errno 111] ECONNREFUSED
Apr 15 02:52:53 machine-1 nova-api-metadata[1111414]: 2026-04-15 02:52:53.174 1111414 INFO oslo_service.service [-] Parent process has died unexpectedly, exiting
Apr 15 02:52:53 machine-1 nova-api-metadata[1111416]: 2026-04-15 02:52:53.175 1111416 INFO oslo_service.service [-] Parent process has died unexpectedly, exiting
Apr 15 02:52:53 machine-1 nova-api-metadata[1111414]: 2026-04-15 02:52:53.175 1111414 INFO nova.wsgi [-] Stopping WSGI server.
Apr 15 02:52:53 machine-1 nova-api-metadata[1111416]: 2026-04-15 02:52:53.175 1111416 INFO nova.wsgi [-] Stopping WSGI server.
Apr 15 02:52:53 machine-1 nova-api-metadata[1111412]: 2026-04-15 02:52:53.175 1111412 INFO oslo_service.service [-] Parent process has died unexpectedly, exiting
Apr 15 02:52:53 machine-1 nova-api-metadata[1111411]: 2026-04-15 02:52:53.175 1111411 INFO oslo_service.service [-] Parent process has died unexpectedly, exiting
Apr 15 02:52:53 machine-1 nova-api-metadata[1111412]: 2026-04-15 02:52:53.176 1111412 INFO nova.wsgi [-] Stopping WSGI server.
Apr 15 02:52:53 machine-1 nova-api-metadata[1111416]: 2026-04-15 02:52:53.176 1111416 INFO nova.wsgi [-] Stopping WSGI server.
Apr 15 02:52:53 machine-1 nova-api-metadata[1111411]: 2026-04-15 02:52:53.176 1111411 INFO nova.wsgi [-] Stopping WSGI server.
Apr 15 02:52:53 machine-1 nova-api-metadata[1111412]: 2026-04-15 02:52:53.176 1111412 INFO nova.wsgi [-] Stopping WSGI server.
Apr 15 02:52:53 machine-1 nova-api-metadata[1111414]: 2026-04-15 02:52:53.176 1111414 INFO nova.wsgi [-] Stopping WSGI server.
Apr 15 02:52:53 machine-1 nova-api-metadata[1111411]: 2026-04-15 02:52:53.177 1111411 INFO nova.wsgi [-] Stopping WSGI server.
Apr 15 02:52:53 machine-1 systemd[1]: snap.openstack-hypervisor.nova-api-metadata.service: Main process exited, code=exited, status=1/FAILURE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions