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

Solution Unverified - Updated -

Issue

  • 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: [ocp1.example.com -> localhost]
2019-02-26T22:16:59.286206096Z fatal: [ocp1.example.com -> 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/ocp1.example.com", "--groups=system:nodes", "--master=https://ocp1.example.com", "--signer-cert=/etc/origin/master/ca.crt", "--signer-key=/etc/origin/master/ca.key", "--signer-serial=/etc/origin/master/ca.serial.txt", "--user=system:node:ocp1.example.com", "--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

Environment

  • OpenShift Container Platform (OCP) 3.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content