Closed blackboxsw closed 1 month ago
The intent of only supporting this subset of functionality was to continue to limit other uses calling into these boot stages directly post-boot. But, per the comment below we probably should leave both approaches intact as they are very nearly the same functionality as --files just adds to the merged config just as adding a new file in /etc/cloud/cloud.cfg.d/*. So it doesn't make sense to allow one path and not the other.
Upon further conversation w/ @holmanb @TheRealFalcon about this limited revert of the deprecation message:
If we only allowing cloud-init init --files
but do not allow admins to add new files into /etc/cloud/cloud.cfg.d/some.cfg
and call cloud-init init
we are disallowing nearly the same behavior that the <cloud_init_boot_stage> --files
parameter provides.
Instead of trying to permit some command line calls to cloud-init boot stages only in certain scenarios, we will leave this feature un-deprecated as a whole until upstream can provide a functional alternative in sub-command cloud-init apply
.
Includes a git revert of bd6cd1fbee12ac81ff6c46cc5f979cfdf76e5e13.
Proposed Commit Message
Additional Context
This fix will be backported to Ubuntu Oracular as a bug fix as well, avoiding exit 2 from cloud-init status and DEPRECATION or INFO level logs for users or tooling which call cloud-init boot stages with the
--file
param.5726
Test Steps
Merge type