Bug 1222206 - cloud-init cloud.cfg contains wrong system_info in the sles-15.6-RC1202403
Summary: cloud-init cloud.cfg contains wrong system_info in the sles-15.6-RC1202403
Status: RESOLVED DUPLICATE of bug 1220132
Alias: None
Product: PUBLIC SUSE Linux Enterprise Server 15 SP6
Classification: openSUSE
Component: Other (show other bugs)
Version: unspecified
Hardware: Other Other
: P2 - High : Major
Target Milestone: ---
Assignee: Robert Schweikert
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-01 08:45 UTC by vmware gos
Modified: 2024-05-06 09:52 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
sles cloud-init conf (2.34 KB, text/plain)
2024-04-05 04:48 UTC, Andrey Savinykh
Details
cc_refresh_rmc_and_interface.py (5.45 KB, text/plain)
2024-04-05 04:49 UTC, Andrey Savinykh
Details

Note You need to log in before you can comment on or make changes to this bug.
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.