Serial file /etc/origin/master/ca.serial.txt out of sync

Solution Unverified - Updated -


  • Trying to add nodes to the environment in parallel (for example using the -f or --forks flag) in Ansible. Get the following error:
2019-02-26T22:16:57.910400657Z TASK [Generate API client config] **********************************************
2019-02-26T22:16:59.133895144Z changed: [ -> localhost]
2019-02-26T22:16:59.286206096Z fatal: [ -> localhost]: FAILED! => {"changed": true, "cmd": ["oc", "adm", "create-api-client-config", "--certificate-authority=/etc/origin/master/ca-bundle.crt", "--client-dir=/etc/origin/generated-configs/", "--groups=system:nodes", "--master=", "--signer-cert=/etc/origin/master/ca.crt", "--signer-key=/etc/origin/master/ca.key", "--signer-serial=/etc/origin/master/ca.serial.txt", "", "--expire-days=730"], "delta": "0:00:00.968377", "end": "2019-02-26 16:16:59.249825", "msg": "non-zero return code", "rc": 1, "start": "2019-02-26 16:16:58.281448", "stderr": "error: serial file /etc/origin/master/ca.serial.txt out of sync ram=1000 disk=1001", "stderr_lines": ["error: serial file /etc/origin/master/ca.serial.txt out of sync ram=1000 disk=1001"], "stdout": "", "stdout_lines": []}
  • Same error happens when executing it manually
# oc adm create-api-client-config


  • OpenShift Container Platform (OCP) 3.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In