Scaleup of node failed with "global name 'get_file_content' is not defined"

Solution In Progress - Updated -

Issue

  • When trying to add a new node to a cluster it fails with the following error:
FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to node.example.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_x21RuH/ansible_module_openshift_facts.py\", line 2152, in \r\n    main()\r\n  File \"/tmp/ansible_x21RuH/ansible_module_openshift_facts.py\", line 2133, in main\r\n    protected_facts_to_overwrite)\r\n  File \"/tmp/ansible_x21RuH/ansible_module_openshift_facts.py\", line 1625, in __init__\r\n    protected_facts_to_overwrite)\r\n  File \"/tmp/ansible_x21RuH/ansible_module_openshift_facts.py\", line 1659, in generate_facts\r\n    provider_facts = self.init_provider_facts()\r\n  File \"/tmp/ansible_x21RuH/ansible_module_openshift_facts.py\", line 1883, in init_provider_facts\r\n    provider_info = self.guess_host_provider()\r\n  File \"/tmp/ansible_x21RuH/ansible_module_openshift_facts.py\", line 1831, in guess_host_provider\r\n    bios_vendor = get_file_content(\r\nNameError: global name 'get_file_content' is not defined\r\n", "msg": "MODULE FAILURE", "rc": 0}
fatal: [node.example.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to node.example.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_fiQGKx/ansible_module_openshift_facts.py\", line 2152, in \r\n    main()\r\n  File \"/tmp/ansible_fiQGKx/ansible_module_openshift_facts.py\", line 2133, in main\r\n    protected_facts_to_overwrite)\r\n  File \"/tmp/ansible_fiQGKx/ansible_module_openshift_facts.py\", line 1625, in __init__\r\n    protected_facts_to_overwrite)\r\n  File \"/tmp/ansible_fiQGKx/ansible_module_openshift_facts.py\", line 1659, in generate_facts\r\n    provider_facts = self.init_provider_facts()\r\n  File \"/tmp/ansible_fiQGKx/ansible_module_openshift_facts.py\", line 1883, in init_provider_facts\r\n    provider_info = self.guess_host_provider()\r\n  File \"/tmp/ansible_fiQGKx/ansible_module_openshift_facts.py\", line 1831, in guess_host_provider\r\n    bios_vendor = get_file_content(\r\nNameError: global name 'get_file_content' is not defined\r\n", "msg": "MODULE FAILURE", "rc": 0}
    to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-node/scaleup.retry

Environment

  • OpenShift Container Platform 3.5, 3.6

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