Why Is My Ansible Tower Upgrade Failing at TASK[preflight : Preflight check - check Tower license type] with SECRET_KEY = file('/etc/tower/SECRET_KEY', 'rb').read().strip()", "NameError: name 'file' is not defined" ?

Solution Verified - Updated -

Issue

When upgrading Ansible Tower 3.4 to later version, you may run into the following issue:

" SECRET_KEY = file('/etc/tower/SECRET_KEY', 'rb').read().strip()", "NameError: name 'file' is not defined"], "stdout": "

Environment

  • Upgrading from Ansible Tower 3.4 to a later version

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