Bug 1218129

Summary: Tumbleweed cloud image not pingable and no SSH access on DigitalOcean
Product: [openSUSE] openSUSE Tumbleweed Reporter: S. B. <sb56637>
Component: OtherAssignee: E-mail List <jeos-internal>
Status: IN_PROGRESS --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: felix.niederwanger, fvogt, mloviska, sb56637
Version: CurrentFlags: fvogt: needinfo? (sb56637)
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: error?
screenshot 2
screenshot 3

Description S. B. 2023-12-16 18:18:07 UTC
Hi there, I need to create some Tumbleweed VMs on DigitalOcean, which needs cloud-init for assigning the  public IP and gateway. From https://download.opensuse.org/tumbleweed/appliances/ I tried `openSUSE-Tumbleweed-Minimal-VM.x86_64-Cloud.qcow2`, but it doesn't work with `cloud-init`, the VM isn't pingable and requires me to login over the VPS console and manually configure the network. The `openSUSE-MicroOS.x86_64-OpenStack-Cloud.qcow2` image does work as I expect, but I'd prefer to not use MicroOS. It looks like the problem is shown in the console screenshots I'm attaching, but I'm not sure because I don't really understand how cloud-init works.
Comment 1 S. B. 2023-12-16 18:18:25 UTC
Created attachment 871402 [details]
error?
Comment 2 S. B. 2023-12-16 18:18:46 UTC
Created attachment 871403 [details]
screenshot 2
Comment 3 S. B. 2023-12-16 18:19:00 UTC
Created attachment 871404 [details]
screenshot 3
Comment 4 Robert Schweikert 2023-12-17 10:33:45 UTC
The image is missing the "systemd-network" user and/or group. While cloud-init should not generate a traceback that the user is not there has nothing to do with cloud-init.

# grep systemd /etc/passwd
# grep systemd /etc/group

should both return entries and one line in each output should have

systemd-network
Comment 5 S. B. 2023-12-17 13:19:36 UTC
Thanks, so I guess the title of this bug was wrong. However, this bug was improperly marked as "Invalid", as the Tumbleweed cloud image is unusable on DigitalOcean (VM not pingable and no SSH access to the VM and need to boot a rescue image to reset the root password and then login over the VNC console to manually configure the network). This problem does not exist in the MicroOS or Leap images on the same infrastructure.
Comment 6 Fabian Vogt 2023-12-19 11:04:14 UTC
It shouldn't be using systemd-networkd in the first place. I see that cloud-init finally (!) no longer hard requires wicked, so it could be switched to NetworkManager.

Please try https://download.opensuse.org/repositories/home:/favogt:/branches:/Virtualization:/Appliances:/Images:/openSUSE-Tumbleweed/openSUSE_Tumbleweed/openSUSE-Tumbleweed-Minimal-VM.x86_64-Cloud.qcow2.
Comment 7 Martin Loviska 2023-12-19 14:46:21 UTC
(In reply to Fabian Vogt from comment #6)
> It shouldn't be using systemd-networkd in the first place. I see that
> cloud-init finally (!) no longer hard requires wicked, so it could be
> switched to NetworkManager.
> 
> Please try
> https://download.opensuse.org/repositories/home:/favogt:/branches:/
> Virtualization:/Appliances:/Images:/openSUSE-Tumbleweed/openSUSE_Tumbleweed/
> openSUSE-Tumbleweed-Minimal-VM.x86_64-Cloud.qcow2.

I have tested the image in openstack with cloud init. I could reach it with ssh, however the default network manager was set to wicked
Comment 8 Fabian Vogt 2023-12-19 14:56:45 UTC
(In reply to Martin Loviska from comment #7)
> (In reply to Fabian Vogt from comment #6)
> > It shouldn't be using systemd-networkd in the first place. I see that
> > cloud-init finally (!) no longer hard requires wicked, so it could be
> > switched to NetworkManager.
> > 
> > Please try
> > https://download.opensuse.org/repositories/home:/favogt:/branches:/
> > Virtualization:/Appliances:/Images:/openSUSE-Tumbleweed/openSUSE_Tumbleweed/
> > openSUSE-Tumbleweed-Minimal-VM.x86_64-Cloud.qcow2.
> 
> I have tested the image in openstack with cloud init. I could reach it with
> ssh, however the default network manager was set to wicked

"default network manager" in which way? wicked shouldn't even be installed
Comment 9 Martin Loviska 2023-12-21 11:16:45 UTC
> "default network manager" in which way? wicked shouldn't even be installed

Sorry my bad, only NetworkManager 1.44.2 is there.
Comment 10 S. B. 2023-12-21 13:09:52 UTC
(In reply to Fabian Vogt from comment #6)
> Please try
> https://download.opensuse.org/repositories/home:/favogt:/branches:/
> Virtualization:/Appliances:/Images:/openSUSE-Tumbleweed/openSUSE_Tumbleweed/
> openSUSE-Tumbleweed-Minimal-VM.x86_64-Cloud.qcow2.

Hi Fabian, many thanks for looking into this. Sorry I couldn't reply sooner. It looks like your test image no longer exists?
Comment 11 Fabian Vogt 2023-12-21 17:12:54 UTC
(In reply to S. B. from comment #10)
> (In reply to Fabian Vogt from comment #6)
> > Please try
> > https://download.opensuse.org/repositories/home:/favogt:/branches:/
> > Virtualization:/Appliances:/Images:/openSUSE-Tumbleweed/openSUSE_Tumbleweed/
> > openSUSE-Tumbleweed-Minimal-VM.x86_64-Cloud.qcow2.
> 
> Hi Fabian, many thanks for looking into this. Sorry I couldn't reply sooner.
> It looks like your test image no longer exists?

Yep, the submission was accepted and the project cleaned up. The fix is in TW Snapshot 20231220, or you can try https://download.opensuse.org/repositories/Virtualization:/Appliances:/Images:/openSUSE-Tumbleweed/openSUSE_Tumbleweed/openSUSE-Tumbleweed-Minimal-VM.x86_64-Cloud.qcow2