Closed simondeziel closed 2 years ago
Could be left over in the local server DB, e.g. lxd sql local 'select * from config'
# lxd sql local 'select * from config'
+----+------------------------+-----------------+
| id | key | value |
+----+------------------------+-----------------+
| 3 | storage.backups_volume | default/backups |
| 5 | core.https_address | 0.0.0.0:8443 |
| 6 | core.metrics_address | 0.0.0.0:9101 |
| 7 | storage.images_volume | default/images |
+----+------------------------+-----------------+
Is this a standalone node?
lxd sql global 'select * from config'
Yes it is standalone:
# lxd sql global 'select * from config'
+----+-----------------------------+-------------+
| id | key | value |
+----+-----------------------------+-------------+
| 2 | storage.lvm_mount_options | discard |
| 3 | storage.lvm_thinpool_name | LXDThinPool |
| 4 | storage.lvm_volume_size | 10GiB |
| 5 | storage.lvm_fstype | ext4 |
| 6 | images.auto_update_interval | 0 |
+----+-----------------------------+-------------+
As far as I remember, I never put those configs except for the images.auto_update_interval
one. Please note that this machine was initially using the Bionic deb IIRC and was migrated at some point.
Ah OK well looks like they got left behind somehow during a migration patch and are no longer catered for in LXD 5.0.
You should be able to delete them individually using this approach:
sudo lxd sql global "delete from config where key = 'storage.lvm_mount_options'"
Thanks for the instructions on how to fix it but maybe LXD could be a bit less aggressive when complaining about it. I have ~2700 such warnings per hour.
It'll likely be warning every time it tries to access the global config.
Since LXD snap's was upgraded:
I'm seeing the following warnings repeated over and over:
Yet there is no such configuration:
Additional information about the machine: