Deployment failing at TASK [openshift_persistent_volumes : Create PersistentVolumes] with latest ansible 2.9

Solution Verified - Updated -

Issue

  • Cluster deployment fails at TASK [openshift_persistent_volumes : Create PersistentVolumes].
  • The deployment fails when the NFS storage variable are used for the registry.
TASK [openshift_persistent_volumes : Create PersistentVolumes] *************************************************************************
task path: /usr/share/ansible/openshift-ansible/roles/openshift_persistent_volumes/tasks/pv.yml:9
fatal: [aygarg-bug-master.example.com]: FAILED! => {
    "changed": false, 
    "cmd": [
        "oc", 
        "create", 
        "-f", 
        "/tmp/openshift-ansible-aLObFLa/persistent-volumes.yml", 
        "--config=/tmp/openshift-ansible-aLObFLa/admin.kubeconfig"
    ], 
    "delta": "0:00:00.242917", 
    "end": "2020-05-15 10:11:38.860266", 
    "failed_when_result": true, 
    "invocation": {
        "module_args": {
            "_raw_params": "oc create -f /tmp/openshift-ansible-aLObFLa/persistent-volumes.yml --config=/tmp/openshift-ansible-aLObFLa/admin.kubeconfig\n", 
            "_uses_shell": false, 
            "argv": null, 
            "chdir": null, 
            "creates": null, 
            "executable": null, 
            "removes": null, 
            "stdin": null, 
            "stdin_add_newline": true, 
            "strip_empty_ends": true, 
            "warn": true
        }
    }, 
    "msg": "non-zero return code", 
    "rc": 1, 
    "start": "2020-05-15 10:11:38.617349", 
    "stderr": "The PersistentVolume \"registry-volume\" is invalid: spec: Required value: must specify a volume type", 
    "stderr_lines": [
        "The PersistentVolume \"registry-volume\" is invalid: spec: Required value: must specify a volume type"
    ], 
    "stdout": "", 
    "stdout_lines": []
}

Environment

  • Red Hat OpenShift Container Platform (OCP)
    • 3.11.219
    • 3.11.216

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