cloud-init icon indicating copy to clipboard operation
cloud-init copied to clipboard

Fix snapd growpart and final message warnings

Open blackboxsw opened this issue 1 year ago • 2 comments

rebase merge use individual commits

Proposed Commit Message(s)

  • fix(final_message): do not warn on datasourcenone when single ds

    Avoid warning level log "Used fallback datasource" when base configuration defines datasource_list: [ None ].

    Using DataSourceNone in this case is desired behavior.

    Also drop unused is_disconnected property from DataSource which was only used by DataSourceNone in cc_final_message.

    Instead compare based on dsname property.

    Fixes: GH-5192

  • fix(growpart): correct growpart log message to include value of mode

Additional Context

Affects snapd UC24 which sets `datasource_list: [ None ]' in some configs

Test Steps

Checklist

Merge type

  • [ ] Squash merge using "Proposed Commit Message"
  • [x] Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

blackboxsw avatar Apr 25 '24 19:04 blackboxsw

cc: @Meulengracht for snap-related concerns.

blackboxsw avatar Apr 25 '24 19:04 blackboxsw

Thank you to everyone involved here for getting this ball rolling and fixed so quickly!

Meulengracht avatar Apr 25 '24 19:04 Meulengracht

Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close.

If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging TheRealFalcon, and he will ensure that someone takes a look soon.

(If the pull request is closed and you would like to continue working on it, please do tag TheRealFalcon to reopen it.)

github-actions[bot] avatar May 23 '24 00:05 github-actions[bot]

I have no more updates to make, I'm just setting this to "request changes" to make it more obvious that this is waiting on @blackboxsw right now.

@blackboxsw since this will make DataSourceNone users no longer have a warning message we might want to squeeze this one into 24.2. I'm adding it to the milestone so that it doesn't slip by without a discussion (we can remove it if we decide it's not a priority).

holmanb avatar May 31 '24 23:05 holmanb