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

Converge failure in keep_awake recipe; resources updated in a second chef-client run #63

Closed
americanhanko opened this issue Mar 15, 2018 · 1 comment
Assignees

Comments

@americanhanko
Copy link
Collaborator

americanhanko commented Mar 15, 2018

This failure is actually pretty strange. We haven't seen this one before - thinking it may be a race condition caused by consecutive calls to systemsetup.

2018-03-15T00:14:10.7204340Z          * system_preference[set the time zone] action set
2018-03-15T00:14:10.7222670Z            - set timezone to America/Los_Angeles
2018-03-15T00:14:10.7243320Z            - update set the time zone
2018-03-15T00:14:10.7264620Z            -   set setting to "America/Los_Angeles" (was "US/Pacific")
2018-03-15T00:14:10.7632670Z            * execute[/usr/sbin/systemsetup, -settimezone, America/Los_Angeles] action run
2018-03-15T00:14:10.7654920Z              - execute ["/usr/sbin/systemsetup", "-settimezone", "America/Los_Angeles"]
2018-03-15T00:14:10.7673130Z          
2018-03-15T00:14:10.8070420Z          * system_preference[enable remote login] action set (up to date)
2018-03-15T00:14:10.9046440Z          * defaults[com.apple.screensaver] action run (skipped due to not_if)
2018-03-15T00:14:10.9461160Z        
2018-03-15T00:14:10.9476060Z        Running handlers:
2018-03-15T00:14:10.9491080Z        First chef run should have reached a converged state.
2018-03-15T00:14:10.9509050Z        Resources updated in a second chef-client run:
2018-03-15T00:14:10.9529780Z        - system_preference[set the time zone]
@americanhanko americanhanko changed the title Converge failure in keep_awake recipe due to idempotence Converge failure in keep_awake recipe; resources updated in a second chef-client run Mar 15, 2018
@alex-w-k
Copy link

Is this still an issue?

@jazaval jazaval mentioned this issue Oct 17, 2018
jazaval added a commit that referenced this issue Oct 18, 2018
* refactor screensaver class disabled method

* fix indentation

* delete some unit tests
@jazaval jazaval closed this as completed Oct 18, 2018
jazaval added a commit that referenced this issue Oct 27, 2018
* bump version

* Fix #63 (#152)

* refactor screensaver class disabled method

* fix indentation

* delete some unit tests

* don't smoke test UID when testing user resource (#153)

* remove uid testing

* remove multi-converge, added to idempotency branch

* Add multi-converge testing for all suites, idempotency for select suites (#155)

* remove uid testing

* add multi-converge for all test recipes

* remove sleep

* just see if multi-converges pass

* add idempotency testing for specific suites

* add guard in spotlight test recipe

* guard against last test disk

* add a case if the index is in an unknown state

* add a sleep to allow indexing server to chill out

* add a 3rd converge

* create volume object in guard

* 2 converges for now

* increase sleep to allow indexing state to settle down

* enforce idempotency for spotlight

* add guard to test recipe item

* fix bug

* remove idempotency testing for xcode

* set three times

* Enforce idempotency for default ARD resource actions (#157)

* remove uid testing

* add multi-converge for all test recipes

* remove sleep

* just see if multi-converges pass

* add idempotency testing for specific suites

* add guard in spotlight test recipe

* guard against last test disk

* add a case if the index is in an unknown state

* add a sleep to allow indexing server to chill out

* add a 3rd converge

* create volume object in guard

* 2 converges for now

* increase sleep to allow indexing state to settle down

* enforce idempotency for spotlight

* add guard to test recipe item

* fix bug

* remove idempotency testing for xcode

* set three times

* add guard for ARD activation

* implement very basic guards

* add some unit tests for the ARD module

* remove some whitespace

* fix stub

* demystify magic mask string

* Feature/fix doc links (#158)

* update ard resource documentation

* more updates to ard resource docuemntation

* update certificate resource doccumentation

* update keychain resource doc

* update plist doc

* update spotlight resource doc

* update xcode resource doc

* change link location and fix syntax mistake

* add 2.7 changes to changelog (#159)

* add 2.7 changes to changelog

* add link to broken links issue

* add more details to changelog

* update CL

* Update CHANGELOG.md

Co-Authored-By: jazaval <jazava@microsoft.com>

* Update CHANGELOG.md

Co-Authored-By: jazaval <jazava@microsoft.com>

* remove whitespace

* grammar fix

Co-Authored-By: jazaval <jazava@microsoft.com>

* grammar fix

Co-Authored-By: jazaval <jazava@microsoft.com>

* grammar fix

Co-Authored-By: jazaval <jazava@microsoft.com>

* grammar fix

Co-Authored-By: jazaval <jazava@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants