Thank you very much, Chad Smith! I'm so sorry for not realizing earlier that DataSourceUI.py is a custom file.
The server is hosted as a virtual private server at IONOS. I installed it years ago using an image from IONOS that had Ubuntu 18.04, and I have upgraded it since then. In fact, the file was created by IONOS (which is a part of United Internet): root@vps:/usr/lib/python3/dist-packages/cloudinit/sources# head -15 DataSourceUI.py # vi: ts=4 expandtab # # Author: Jorge Jimenez (United Internet) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3, as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. I changed the file according to your hint: #from cloudinit import log as logging import logging Now it works fine, and I am happy with this solution! :) Thank you! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055770 Title: AttributeError: module 'cloudinit.log' has no attribute 'getLogger' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2055770/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs