Reproducer:
```
lxc launch ubuntu-daily:noble test-n
lxc exec test-n -- apt update
lxc exec test-n -- apt upgrade
lxc exec test-n -- do-release-upgrade -y
lxc exec test-n -- ls -ltr /etc/logrotate.d/
lxc exec test-n -- systemctl restart logrotate
lxc exect test-n -- journalctl -xeu logrotate
...
Jun 02 18:50:53 test-n logrotate[630]: error: cloud-init-base:1 duplicate log
entry for /var/log/cloud-init-output.log
Jun 02 18:50:53 test-n logrotate[630]: error: found error in file
cloud-init-base, skipping
Jun 02 18:50:53 test-n systemd[1]: logrotate.service: Main process exited,
code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit logrotate.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jun 02 18:50:53 test-n systemd[1]: logrotate.service: Failed with result
'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit logrotate.service has entered the 'failed' state with result
'exit-code'.
Jun 02 18:50:53 test-n systemd[1]: Failed to start logrotate.service - Rotate
log files.
░░ Subject: A start job for unit logrotate.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit logrotate.service has finished with a failure.
░░
░░ The job identifier is 1447 and the job result is failed.
```
This can be fixed with an do-release-upgrade quirk which purges cloud-
init package in favor of cloud-init-base due to the renaming of the
original package from cloud-init -> cloud-init-base to avoid this
duplication of logrotate files. It is strange that even after purging
the original cloud-init from noble and re-installing cloud-init from
resolute the conflicting/duplicated logrotate file
/etc/logrotate.d/cloud-init is not re-installed.
** Changed in: cloud-init (Ubuntu)
Status: New => Confirmed
** Changed in: cloud-init (Ubuntu)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2152107
Title:
Cloud-init logrotate config duplicated after Noble to Resolute upgrade
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2152107/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs