I can confirm this issue on Ubuntu 26.04.1 LTS after upgrading from
Ubuntu 24.04.

Both packages are installed:

```
ii cloud-init       26.2-0ubuntu1~26.04.1
ii cloud-init-base  26.2-0ubuntu1~26.04.1
```

Both `/etc/logrotate.d/cloud-init` and `/etc/logrotate.d/cloud-init-
base` contained the same configuration for `/var/log/cloud-init*.log`.

On November 14, 2026, the scheduled logrotate run failed with:

```
error: cloud-init-base:1 duplicate log entry for /var/log/cloud-init*.log
error: found error in file cloud-init-base, skipping
logrotate.service: Failed with result 'exit-code'.
```

`dpkg -V cloud-init cloud-init-base` reported no modifications to either
logrotate configuration file.

As a workaround, I moved the obsolete `/etc/logrotate.d/cloud-init` file
outside `/etc/logrotate.d/`. A subsequent `logrotate -d
/etc/logrotate.conf` check no longer reported the duplicate entry.

This issue remains reproducible with cloud-init 26.2 on Ubuntu 26.04.1
LTS, several months after the original report. The package upgrade
should remove the obsolete conffile automatically.

-- 
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

Reply via email to