nathwill / chef-systemd

resource-driven chef cookbook for managing linux systems via systemd
Apache License 2.0
44 stars 33 forks source link

Deprecation warnings for Chef Infra 18 #148

Closed rveznaver closed 5 months ago

rveznaver commented 3 years ago

Hello,

I have recently upgraded my Chef client and have noticed deprecation warnings related to unified_mode (more info at https://docs.chef.io/deprecations_unified_mode/). Nothing major, but reporting for posterity.

Chef Infra: 17.4.38 systemd cookbook: 3.2.5

Full log:

Deprecation warnings that must be addressed before upgrading to Chef Infra 18:
  The systemd_automount resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/automount.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_automount_drop_in resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/automount_drop_in.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_binfmt resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/binfmt.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_bootchart resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/bootchart.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_coredump resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/coredump.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_journal_remote resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/journal_remote.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_journal_upload resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/journal_upload.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_journald resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/journald.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_link resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/link.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_logind resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/logind.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_machine resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/machine.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_machine_image resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/machine_image.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_modules resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/modules.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_mount resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/mount.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_mount_drop_in resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/mount_drop_in.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_netdev resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/netdev.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_network resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/network.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_nspawn resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/nspawn.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_path resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/path.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_path_drop_in resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/path_drop_in.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_resolved resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/resolved.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_service resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/service.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_service_drop_in resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/service_drop_in.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_sleep resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/sleep.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_slice resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/slice.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_slice_drop_in resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/slice_drop_in.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_socket resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/socket.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_socket_drop_in resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/socket_drop_in.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_swap resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/swap.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_swap_drop_in resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/swap_drop_in.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_sysctl resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/sysctl.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_system resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/system.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_sysuser resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/sysuser.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_target resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/target.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_target_drop_in resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/target_drop_in.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_timer resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/timer.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_timer_drop_in resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/timer_drop_in.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_timesyncd resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/timesyncd.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_tmpfile resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/tmpfile.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
  The systemd_user resource in the systemd cookbook should declare `unified_mode true` at 1 location:
    - /opt/chef/cache/cookbooks/systemd/resources/user.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
nathwill commented 3 years ago

thanks @rveznaver!

aisachenka commented 2 years ago

@nathwill Did you have a change to work on it?

nathwill commented 2 years ago

@aisachenka not to date, i have been out on sabbatical and enjoying some outdoor time, but will try to get something started this week as i will have some more down time at home with the change in the weather :smile:

aisachenka commented 2 years ago

@nathwill On the one hand I am sorry to hear that the weather does not allow for a holiday, on the other hand, the longer the bad weather, the better the chance that the problem will be solved :) Thank you in advance

BhanupriyaH commented 2 years ago

Hi @nathwill, we are also facing same deprecation warnings while upgrading from chef 16.x to 17.x. chef - 17.0.242 systemd cookbook: 3.2.4 Is there any ETA for this fix? Any help appreciated.

Thank you in Advance.

achamo commented 6 months ago

@nathwill if you ever read that (your activity on github is low in the past months), would you agree to handover the project to https://github.com/sous-chefs? The project is great, it would be sad to let it unmaintained 🙂

nathwill commented 5 months ago

hey @achamo et al, yes, sorry i have not been very active on github the last few years. my work keeps me occupied and i no longer use Chef professionally so the few times i have revisited this has been more of a lift than i could justify as a use of my personal time; if the sous-chefs have an interest in taking over the project, they certainly have my blessing and support, as i would love to see the cookbook brought up to date with what i am sure are a number of changes to best practices in the chef ecosystem.

achamo commented 5 months ago

Thanks for your answer! Would you mind to transfer the ownership to @criteo-cookbooks first? We develop and support a few cookbooks there, @stevendanna sorry to invoke you here as well, you're still the owner of the cookbook on https://supermarket.chef.io/cookbooks/systemd and @nathwill is a collaborator. Our cookbooks are under https://supermarket.chef.io/users/criteo if you don't mind to transfer the ownership.

We'll manage the hand over to sous-chefs if they agree, in the meantime we can support the cookbook.

Thanks again!

nathwill commented 5 months ago

yes that's perfectly fine by me, you're welcome to take over maintenance and if you have already forked it i will add a deprecation notice pointing to your repo as the place to make further changes, or if you prefer i can grant you maintainer status on this repo