Bug 1222206

Summary: cloud-init cloud.cfg contains wrong system_info in the sles-15.6-RC1202403
Product: [openSUSE] PUBLIC SUSE Linux Enterprise Server 15 SP6 Reporter: vmware gos <vmware-gos-qa>
Component: OtherAssignee: Robert Schweikert <rjschwei>
Status: RESOLVED DUPLICATE QA Contact:
Severity: Major    
Priority: P2 - High CC: frostworm82, jsavanyo, vmware-gos-qa
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: sles cloud-init conf
cc_refresh_rmc_and_interface.py

Description vmware gos 2024-04-01 08:45:13 UTC
Cloud-init GOSC failed on sles-15.6-RC1202403-64bit.

The root cause is /etc/cloud/cloud.cfg contains wrong system_info in the sles-15.6-RC1202403.

system_info:                                                                                              
# This will affect which distro class gets used                                                         
# Unknown/fallback distro.                                                                              
distro: ubuntu 

This distro value is wrong.

Compared with SLES 15 SP6 BETA3202401 and PUBLICBETA202403, its system_info in /etc/cloud/cloud.cfg is:
system_info:
# This will affect which distro class gets used
distro: sles

This distro value is correct, which is sles.

The cloud-init version is 23.3.

Woud you please help to fix it in cloud-init package?

Thanks!
Comment 1 Andrey Savinykh 2024-04-05 04:48:49 UTC
Created attachment 874083 [details]
sles cloud-init conf
Comment 2 Andrey Savinykh 2024-04-05 04:49:31 UTC
Created attachment 874084 [details]
cc_refresh_rmc_and_interface.py
Comment 3 Andrey Savinykh 2024-04-05 04:52:04 UTC
This problem is present in 15.5 as well.
After updating the cloud-init package to Version: 23.3-lp156.2.9. Version : 23.3-150100.8.74.7 is not broken.
What can be done:
1) Prohibit package updates before the first launch, and block cloud-init updates with zypper after launch. In the future, you can update everything else.
2) Roll back the version of the cloud-init package to Version : 23.3-150100.8.74.7 and block it.
3) Replace the /etc/cloud/cloud.cfg file from attachment, add the /usr/lib/python3.6/site-packages/cloudinit/config/ file cc_refresh_rmc_and_interface.py
Comment 4 vmware gos 2024-04-07 03:11:50 UTC
(In reply to Andrey Savinykh from comment #3)
> This problem is present in 15.5 as well.
> After updating the cloud-init package to Version: 23.3-lp156.2.9. Version :
> 23.3-150100.8.74.7 is not broken.
> What can be done:
> 1) Prohibit package updates before the first launch, and block cloud-init
> updates with zypper after launch. In the future, you can update everything
> else.
> 2) Roll back the version of the cloud-init package to Version :
> 23.3-150100.8.74.7 and block it.
> 3) Replace the /etc/cloud/cloud.cfg file from attachment, add the
> /usr/lib/python3.6/site-packages/cloudinit/config/ file
> cc_refresh_rmc_and_interface.py

Thanks Audrey for your reply!

Is it a workaround for sles-15.6-RC1202403-64bit currently? Will the cloud-init fix this problem in the later release of SLE 15SP6?
Comment 5 Robert Schweikert 2024-04-29 18:31:29 UTC
Already fixed

*** This bug has been marked as a duplicate of bug 1220132 ***
Comment 6 vmware gos 2024-05-06 09:52:01 UTC
(In reply to Robert Schweikert from comment #5)
> Already fixed
> 
> *** This bug has been marked as a duplicate of bug 1220132 ***

Thanks! It's OK in our side.