Score:0

systemd-resolved.service not working in Ubuntu 22.04 LTS VM created in DevStack (OpenStack)

tg flag

Recently I installed DevStack (OpenStack distro) on my servers. I uploaded there Ubuntu server 20.04 LTS cloud image as well as Ubuntu Server 22.04 LTS cloud image. The images came from https://cloud-images.ubuntu.com/. Now when I run Ubuntu Server 20.04 VM everything works fine and systemd-resolved.service is running properly. I can ping www.google.com and so on. But when I run Ubuntu 22.04 LTS the systemd-resolved.service fails to start with the following message:

ubuntu@test:~$ sudo systemctl status systemd-resolved.service
× systemd-resolved.service - Network Name Resolution
     Loaded: loaded (/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2023-04-05 14:53:46 UTC; 47s ago
       Docs: man:systemd-resolved.service(8)
             man:org.freedesktop.resolve1(5)
             https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
             https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
    Process: 569 ExecStart=/lib/systemd/systemd-resolved (code=exited, status=1/FAILURE)
   Main PID: 569 (code=exited, status=1/FAILURE)
      Error: 99 (Cannot assign requested address)
        CPU: 79ms

Apr 05 14:53:46 test systemd[1]: systemd-resolved.service: Main process exited, code=exited, status=1/FAILURE
Apr 05 14:53:46 test systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Apr 05 14:53:46 test systemd[1]: Failed to start Network Name Resolution.
Apr 05 14:53:46 test systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 5.
Apr 05 14:53:46 test systemd[1]: Stopped Network Name Resolution.
Apr 05 14:53:46 test systemd[1]: systemd-resolved.service: Start request repeated too quickly.
Apr 05 14:53:46 test systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Apr 05 14:53:46 test systemd[1]: Failed to start Network Name Resolution.

I even created a VM with Ubuntu 22.04 LTS on the host machine using multipass and the systemd-resolved.service started properly. Then I uploaded the multipass Ubuntu 22.04 LTS image to the OpenStack and the same error appeard.

I also tried to run Ubuntu 20.04 LTS VM in OpenStack to check if systemd-resolved.service is running fine. It was correct so then I decided to upgrade Ubuntu to 22.04 using sudo do-release-upgrade -d. After the upgrade systemd-resolved.service once again failed to start.

I don't have any idea how to fix that and where to look for any hint. I feel like I lack of DevStack knowledge as well as systemd knowledge to troubleshoot this. Any help will be very appreciated!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.