Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In a kitchen run, "chef-client" cookbook v12.3.3 failing on Redhat 6.10 while v12.3.2 works OK #738

Open
tas50 opened this issue Jun 23, 2021 · 0 comments

Comments

@tas50
Copy link
Contributor

tas50 commented Jun 23, 2021

In a 'kitchen test' run, a policy using "chef-client" cookbook v12.3.3 or 12.3.4 is failing on Redhat 6.10 while v12.3.2 works OK. All of our cookbooks run to completion with no errors yet with v12.3.3 kitchen throws the following error:

Converge failed on instance .
E, [2021-05-27T21:30:26.001935 #7525] ERROR -- linux-enterprise-rhel-6: ------Exception-------
E, [2021-05-27T21:30:26.001949 #7525] ERROR -- linux-enterprise-rhel-6: Class: Kitchen::ActionFailed
E, [2021-05-27T21:30:26.001960 #7525] ERROR -- linux-enterprise-rhel-6: Message: SSH exited () for command: [sh -c '
TEST_KITCHEN="1"; export TEST_KITCHEN
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json --chef-zero-port 8889
']

To Reproduce

Using chef-infra-client version 16.2.73
Running on a Redhat 6.10 VM

We have a policy with recipes/default.rb containing:
include_recipe 'chef-client::config'
include_recipe 'chef-client'
and a Policyfile.rb file containing:
cookbook 'chef-client', '= 12.3.2'
and things work.

Changing the pinning to 12.3.3 it fails. 12.3.4 (the most recent) also fails

Expected behavior

I expect the kitchen run to finish successfully.

Actual behavior

The .kitchen log file shows:
I, [2021-05-27T21:24:13.590459 #7285] INFO -- linux-enterprise-rhel-6: - start service service[chef-client]
E, [2021-05-27T21:24:16.837070 #7285] ERROR -- linux-enterprise-rhel-6: Converge failed on instance .
E, [2021-05-27T21:24:16.837186 #7285] ERROR -- linux-enterprise-rhel-6: ------Exception-------
E, [2021-05-27T21:24:16.837203 #7285] ERROR -- linux-enterprise-rhel-6: Class: Kitchen::ActionFailed
E, [2021-05-27T21:24:16.837211 #7285] ERROR -- linux-enterprise-rhel-6: Message: SSH exited () for command: [sh -c '
TEST_KITCHEN="1"; export TEST_KITCHEN
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json --chef-zero
-port 8889
']
E, [2021-05-27T21:24:16.837220 #7285] ERROR -- linux-enterprise-rhel-6: ----------------------
with a bunch of trace lines.

From https://github.com/chef/customer-bugs/issues/385

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant