View Issue Details

IDProjectCategoryView StatusLast Update
0008713Kali LinuxKali Package Bugpublic2025-03-20 13:02
Reporterdominik.borkowski Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionopen 
Summary0008713: deprecated keys in cloud-init configuration
Description

Hello,

After upgrading to latest Kali 2024.1 we noticed that cloud-init status started to exit with error code 2. Upon closer inspection, and confirming it with cloud-init developers, we found the following problematic keys:

  • /etc/cloud/cloud.cfg:
    • reset_rmc
    • refresh_rmc_and_interface
  • /etc/cloud/cloud.cfg.d/01_debian_cloud.cfg
    • apt_preserve_sources_list
root@kali:~# cloud-init status --long ; echo $?
status: done
extended_status: degraded done
boot_status_code: enabled-by-generator
last_update: Wed, 10 Apr 2024 14:13:52 +0000
detail: DataSourceEc2Local
errors: []
recoverable_errors:
DEPRECATED:
        - The following config key(s): ['apt_preserve_sources_list'] is deprecated in 22.1 and scheduled to be removed in 27.1.
        - Support for combined old and new apt module keys is deprecated in 22.1 and scheduled to be removed in 27.1.
WARNING:
        - Could not find module named cc_refresh_rmc_and_interface (searched ['cc_refresh_rmc_and_interface', 'cloudinit.config.cc_refresh_rmc_and_interface'])
2

Removing the rmc keys from cloud.cfg, and renaming apt_preserve_sources_list in 01_debian_cloud.cfg to preserve_sources_list allows cloud-init schema --system to pass, and cloud-init status to report a success exit code 0.

Activities

g0tmi1k

g0tmi1k

2025-03-20 13:02

administrator   ~0020431

This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity.

Please could you see if you are able to replicate this issue with the latest version of Kali Linux (https://www.kali.org/get-kali/)?

If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing, and also give information about your setup?
For more information, please read: https://www.kali.org/docs/community/submitting-issues-kali-bug-tracker/

Issue History

Date Modified Username Field Change
2024-04-11 11:39 dominik.borkowski New Issue
2025-03-20 13:02 g0tmi1k Note Added: 0020431
2025-03-20 13:02 g0tmi1k Status new => closed