Skip to content

Instantly share code, notes, and snippets.

all:
children:
calico-rr:
hosts: {}
etcd:
hosts:
foobar1.org:
kube-master:
hosts:
foobar1.org:
TASK [etcd : Configure | Wait for etcd cluster to be healthy] **********************************************************************************************************
fatal: [foobar1.org]: FAILED! => {"attempts": 4, "changed": false, "cmd": "set -o pipefail && /usr/local/bin/etcdctl endpoint --cluster status && /usr/local/bin/etcdctl endpoint --cluster health 2>&1 | grep -v 'Error: unhealthy cluster' >/dev/null", "delta": "0:00:05.026996", "end": "2020-11-19 15:13:35.094710", "msg": "non-zero return code", "rc": 1, "start": "2020-11-19 15:13:30.067714", "stderr": "{\"level\":\"warn\",\"ts\":\"2020-11-19T15:13:35.093-0600\",\"caller\":\"clientv3/retry_interceptor.go:61\",\"msg\":\"retrying of unary invoker failed\",\"target\":\"endpoint://client-dae834aa-7d04-4b91-aab1-b95ce781dd3c/XXX.XXX.XXX.177:2379\",\"attempt\":0,\"error\":\"rpc error: code = DeadlineExceeded desc = latest connection error: connection error: desc = \\\"transport: Error while dialing dial tcp XXX.XXX.XXX.177:2379: connect: connection ref
@emersonford
emersonford / change_gdrive_smb_port.py
Last active July 13, 2022 11:13
Python script to rewrite the `mac_smb_port` setting for Google Drive to a stable port number, thereby allowing the Spotlight index for it to be stable.
#!/usr/bin/env python3
# see https://apple.stackexchange.com/questions/420959/spotlight-indexing-of-google-drive-file-stream-disabled-on-restart/424445#424445 for an explanation
import os
from copy import deepcopy
from math import log
from pathlib import Path
DEBUG = 0
DRIVEFS_PATH = os.environ["HOME"] + "/Library/Application Support/Google/DriveFS"