-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Only accept MM/DD/YYYY for windows_task start_day #6434
Conversation
37ab5f6
to
4097d64
Compare
DateTime.parse is not really that well defined. It accepts a lot of different dates, however not `MM/DD/YYYY`. It does `DD/MM/YYYY`. We should be very specific in the format we accept, and continue to support `MM/DD/YYYY` as it was in the cookbook Signed-off-by: Jay Mundrawala <jmundrawala@chef.io>
Signed-off-by: Jay Mundrawala <jmundrawala@chef.io>
Signed-off-by: Jay Mundrawala <jmundrawala@chef.io>
Signed-off-by: Jay Mundrawala <jmundrawala@chef.io>
Signed-off-by: Jay Mundrawala <jmundrawala@chef.io>
87d7731
to
5e13fe6
Compare
@jaym If we fix the |
Please note that |
If |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this might break users that were using the previous undocumented behavior, but that's the least bad end result.
I have some nodes affected by this. Will there be a new chef-client installer released? |
If you want to give it a try checkout a build from our |
it works, thanks! |
ETA is most likely early next month for a release (we have a monthly release tempo for everything other than high severity security issues) |
Any chance this gets released earlier? That was already the third major problem I had with chef within the last 2 days. The chef_client cookbook also is based on the windows cookbook. Due to that date format change, I could not bootstrap my Win2012R2 nodes in such a way that they make use of the chef-client recipe in my role which should have configured them in such a way that they would run chef-client every 5 minutes. At the moment, I need to install the prerelease (13.5.22) version of chef-client manually on every bootstrapped node and run chef-client manually once more to make it work again. This just takes too much time. |
@CodingSpiderFox how are you installing Chef? You could use The cadence for Chef releases is monthly. 13.5 was released 16 days ago, a bit late. The next 13 release should be happening soon. |
Ah, I was missing the --prerelease, that's why it didn't work with specifying the 13.5.22 version. |
@btm: It did not help to bootstrap with specifying v. 13.5.22.
The windows task for chef-client run is created but when it executes the first time after 5 minutes (and every further time), I get the following error: (see attached client.log and stacktrace.out) System language is English but date/time/currency etc. is German. OS ist Windows Server 2012 R2 This has become a major issue for us. Bootstrapping with the version 13.4 (resolved to 13.4.24) worked for us but the newer versions need to be fixed. |
@CodingSpiderFox Can you please open a separate issue up and include a client log with |
So simply run the chef client manually with |
@CodingSpiderFox yup! |
What kind of confidential data do I need to wipe out in the logs? What about the X-Ops-Authorization-1 etc. headers? Should I remove them? |
Opened issue: #6513 |
DateTime.parse is not really that well defined. It accepts a lot
of different dates, however not
MM/DD/YYYY
. It doesDD/MM/YYYY
.We should be very specific in the format we accept, and continue
to support
MM/DD/YYYY
as it was in the cookbookFixes chef-boneyard/chef-client#523