canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
2.91k stars 869 forks source link

dpkg-reconfigure cloud-init-base always reports: Removing cloud-init/datasources in favor of cloud-init-base/datasources #5780

Open blackboxsw opened 4 days ago

blackboxsw commented 4 days ago

Bug report

debian/cloud-init-base.postinst has a migrate_debconf_to_cloud_init_base that attempts to migrate old package debconf values from cloud-init/datasources to cloud-init-base/datasources. It attempts to perform a db_unregister of the old debconf setting once the migration and db_set of cloud-init-base/datsources is performed. Yet, no matter how many times you run dpkg-reconfigure, that message is printed, leading me to believe the db_unregister cloud-init/datasources wasn't enough or persisted.

Steps to reproduce the problem

git checkout upstream/ubuntu/devel change d/changelog from UNRELEASED to oracular git commit -am 'pkg build test' build-package; sbuild ....oracular ... ./out/dsc lxc launch ubuntu-daily:oracular test-o lxc file push cloud-initdeb test-o/ lxc exec test-o -- dpkg -i /cloud-init*deb /cloud-init-base*deb dpkg-reconfigure cloud-init-base

Environment details

cloud-init logs

root@aciba-o-new-deb:~# dpkg-reconfigure cloud-init-base -f noninteractive
Removing cloud-init/datasources in favor of cloud-init-base/datasources
root@aciba-o-new-deb:~# dpkg-reconfigure cloud-init-base -f noninteractive
Removing cloud-init/datasources in favor of cloud-init-base/datasources
aciba90 commented 14 hours ago

Tracking in SC-1967.