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

Incorrect metadata in a cookbook causes all client runs on nodes in that org to fail, irrespective of them using the cookbook in question. #3335

Open
PrajaktaPurohit opened this issue May 27, 2022 · 1 comment
Labels
Type: Bug Does not work as expected.

Comments

@PrajaktaPurohit
Copy link
Contributor

Found a cookbook that had an incorrect format for a dependency made its way into chef, causing the entire service to fail.

It appears the faulty cookbook upload for a single cookbook is taking down an entire chef server

berks -v
7.0.10

knife -v
Chef: 14.15.6

To Reproduce

bundle exec berks upload

Expected behavior

resolution of cookbooks.
A single cookbook to take down an entire chef server seems very dangerous, at the least to improve logging when such events occur so it can be tracked down and resolved.

Actual behavior

08:24:15 [INFO] [2022-04-19T08:24:15-05:00] ERROR: Server returned error 500 for
https://chef.dev.com/organizations/main/environments/cloud_infra_dev_chef16/cookbook_versions, retrying 1/5 in 3s

@PrajaktaPurohit PrajaktaPurohit added the Status: Untriaged An issue that has yet to be triaged. label May 27, 2022
@PrajaktaPurohit PrajaktaPurohit changed the title Incorrect metadata in a cookbook causes server client run to fail. Incorrect metadata in a cookbook causes all client runs on nodes in that org to fail, irrespective of them using the cookbook in question. May 27, 2022
@marcparadise marcparadise added Type: Bug Does not work as expected. and removed Status: Untriaged An issue that has yet to be triaged. labels Jun 7, 2022
@marcparadise
Copy link
Member

Do we have an example of the invalid metadata?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

2 participants