Controlplane fails on task openshift_sdn in OpenShift 3

Solution Verified - Updated -

Issue

  • When executing the update_control_plane.yml throws the following error:
TASK [openshift_sdn : Apply DaemonSet manifest] *********************************************************************************************************************************************************************************************
task path: /usr/share/ansible/openshift-ansible/roles/openshift_sdn/tasks/update_daemonset.yml:31
Tuesday 12 March 2019  12:04:31 +0100 (0:00:00.638)       0:03:09.191 *********
Using module file /usr/share/ansible/openshift-ansible/roles/lib_openshift/library/oc_obj.py
<node1.example.com> ESTABLISH SSH CONNECTION FOR USER: user1
<node1.example.com> SSH: EXEC ssh -vvv -o ControlMaster=auto -o ControlPersist=600s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=user1 -o ConnectTimeout=30 -o ControlPath=/home/user1/.ansible/cp/%h-%r node1.example.com '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-utbbswixqndkgmlkwfhwjeyvdofsrswu; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
<node1.example.com> (1, '\n{"msg": {"returncode": 1, "cmd": "/bin/oc replace -f /tmp/tmp.ZAWTrwjRpe/tmp_ds.yaml -n openshift-sdn", "results": {}, "stderr": "error: error converting YAML to JSON: yaml: line 18: found unexpected \':\'\\n", "stdout": ""}, "failed": true, "invocation": {"module_args": {"files": ["/tmp/tmp.ZAWTrwjRpe/tmp_ds.yaml"], "kind": "DaemonSet", "force": false, "name": "ovs", "field_selector": null, "all_namespaces": null, "namespace": "openshift-sdn", "delete_after": false, "kubeconfig": "/etc/origin/master/admin.kubeconfig", "content": null, "state": "present", "debug": false, "selector": null}}}\n', 'OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 22: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 62: Deprecated option "useroaming"\r\ndebug3: kex names ok: [curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1]\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 1927\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n')
fatal: [node1.example.com]: FAILED! => {
    "changed": false,
    "failed": true,
    "invocation": {
        "module_args": {
            "all_namespaces": null,
            "content": null,
            "debug": false,
            "delete_after": false,
            "field_selector": null,
            "files": [
                "/tmp/tmp.ZAWTrwjRpe/tmp_ds.yaml"
            ],
            "force": false,
            "kind": "DaemonSet",
            "kubeconfig": "/etc/origin/master/admin.kubeconfig",
            "name": "ovs",
            "namespace": "openshift-sdn",
            "selector": null,
            "state": "present"
        }
    },
    "msg": {
        "cmd": "/bin/oc replace -f /tmp/tmp.ZAWTrwjRpe/tmp_ds.yaml -n openshift-sdn",
        "results": {},
        "returncode": 1,
        "stderr": "error: error converting YAML to JSON: yaml: line 18: found unexpected ':'\n",
        "stdout": ""
    }
}

Environment

  • Red Hat OpenShift Container Platform
    • 3.10
    • 3.11

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