chef icon indicating copy to clipboard operation
chef copied to clipboard

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

Open Ladybiss opened this issue 1 year ago • 7 comments

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

Ladybiss avatar May 01 '24 12:05 Ladybiss

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

YorithTheDreamer avatar May 01 '24 13:05 YorithTheDreamer

RHEL9 as well

the6thBook avatar May 07 '24 12:05 the6thBook

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

nareshsukhija avatar May 08 '24 08:05 nareshsukhija

This is a HUGE issue on RHEL 9...

breisig avatar May 10 '24 20:05 breisig

Seeing the same message on Ubuntu 20.04.

blackknight36 avatar May 13 '24 23:05 blackknight36

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

breisig avatar May 14 '24 01:05 breisig

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

tpowell-progress avatar May 21 '24 15:05 tpowell-progress

Any updates on an 18.5 release date?

randyrue avatar Jul 08 '24 15:07 randyrue

I think this can be closed, the fix is included in 18.5.0: https://discourse.chef.io/t/chef-infra-client-18-5-0-released/23188

fern4lvarez avatar Jul 23 '24 08:07 fern4lvarez

Confirmed it's working as expected, no more warnings once chef-client is updated to 18.5

Ladybiss avatar Jul 23 '24 15:07 Ladybiss