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

Add back check_time #338

Merged
merged 3 commits into from
Nov 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions BACKENDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ These backend classes allow backend-specific configuration of the cluster.
- [Troubleshooting](#troubleshooting)
- [Cleaning Up and Fixing "Out of Space" Errors](#cleaning-up-and-fixing-out-of-space-errors)
- [macOS File Sharing](#macos-file-sharing)
- [Clock sync errors](#clock-sync-errors)
- [Using existing nodes](#using-existing-nodes)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->
Expand Down Expand Up @@ -70,6 +71,12 @@ Docker for Mac must be configured to allow `/private` to be bind mounted into Do
This is the default.
See Docker > Preferences > File Sharing.

#### Clock sync errors

On various platforms, the clock can get out of sync between the host machine and Docker containers.
This is particularly problematic if using `check_time: true` in the DC/OS configuration.
To work around this, run `docker run --rm --privileged alpine hwclock -s`.

## Using existing nodes

It is possible to use existing nodes on any platform with DC/OS E2E.
Expand Down
2 changes: 2 additions & 0 deletions spelling_private_dict.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
adam
admin
args
aufs
Expand All @@ -14,6 +15,7 @@ dict
dir
env
genconf
hwclock
init
ip
mesos
Expand Down
7 changes: 7 additions & 0 deletions src/dcos_e2e/backends/_docker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,13 @@ def ip_list(nodes: Set[Node]) -> List[str]:
config = {
'agent_list': ip_list(nodes=self.agents),
'bootstrap_url': 'file://' + str(self._bootstrap_tmp_path),
# Without this, we see errors like:
# "Time is not synchronized / marked as bad by the kernel.".
# Adam saw this on Docker for Mac 17.09.0-ce-mac35.
#
# In that case this was fixable with:
# $ docker run --rm --privileged alpine hwclock -s
'check_time': 'false',
'cluster_name': 'DCOS',
'exhibitor_storage_backend': 'static',
'master_discovery': 'static',
Expand Down