chef / chef

Chef Infra, a powerful automation platform that transforms infrastructure into code automating how infrastructure is configured, deployed and managed across any environment, at any scale
http://www.chef.io/chef/
Apache License 2.0
7.53k stars 2.51k forks source link

chef-client runs with version 18.x get a EOL warning #14365

Open Ladybiss opened 1 month ago

Ladybiss commented 1 month ago

Description

on 18.4.12, the last published version, chef-client run gives a EOL warning:

[2024-05-01T11:47:05+00:00] WARN: This release of Chef Infra Client became end of life (EOL) on May 1st 2024. Please update to a supported release to receive new features, bug fixes, and security updates.

Chef Version

18.4.12 or 18.4.2

Platform Version

Ubuntu 22.04

Replication Case

See: https://github.com/chef/chef/blob/main/lib/chef/client.rb#L339

    def warn_if_eol
      require_relative "version"

      # We make a release every year so take the version you're on + 2006 and you get
      # the year it goes EOL
      eol_year = 2006 + Gem::Version.new(Chef::VERSION).segments.first

      if Time.now > Time.new(eol_year, 5, 01)
        logger.warn("This release of #{ChefUtils::Dist::Infra::PRODUCT} became end of life (EOL) on May 1st #{eol_year}. Please update to a supported release to receive new features, bug fixes, and security updates.")
      end
    end

Client Output

[2024-05-01T11:47:05+00:00] WARN: This release of Chef Infra Client became end of life (EOL) on May 1st 2024. Please update to a supported release to receive new features, bug fixes, and security updates.

Stacktrace

YorithTheDreamer commented 1 month ago

Can confirm, this is happening on every run on my end as well.

the6thBook commented 1 month ago

RHEL9 as well

nareshsukhija commented 1 month ago

This happens on every run for all current RHEL versions (7/8/9), kindly treat this as an urgent issue.

breisig commented 1 month ago

This is a HUGE issue on RHEL 9...

blackknight36 commented 1 month ago

Seeing the same message on Ubuntu 20.04.

breisig commented 1 month ago

This should be simple remove and a quick release needs to happen.

tpowell-progress commented 1 month ago

This should be in our next 18 release. Release date still pending.