A "fence_gce" agent fails with "file_cache is unavailable when using oauth2client >= 4.0.0" error

Solution Verified - Updated -

Issue

Running the fence_gce resource generates the below warnings and errors:

# fence_gce --project=<project> -n <node> -o status --zone=<region> -v
2022-10-04 08:48:56,002 DEBUG: using application default credentials
2022-10-04 08:48:56,003 WARNING: file_cache is unavailable when using oauth2client >= 4.0.0
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/googleapiclient/discovery_cache/__init__.py", line 36, in autodetect
    from google.appengine.api import memcache
ModuleNotFoundError: No module named 'google'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/googleapiclient/discovery_cache/file_cache.py", line 33, in <module>
    from oauth2client.contrib.locked_file import LockedFile
ModuleNotFoundError: No module named 'oauth2client.contrib.locked_file'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/googleapiclient/discovery_cache/file_cache.py", line 37, in <module>
    from oauth2client.locked_file import LockedFile
ModuleNotFoundError: No module named 'oauth2client.locked_file'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/googleapiclient/discovery_cache/__init__.py", line 41, in autodetect
    from . import file_cache
  File "/usr/lib/python3.6/site-packages/googleapiclient/discovery_cache/file_cache.py", line 41, in <module>
    'file_cache is unavailable when using oauth2client >= 4.0.0')
ImportError: file_cache is unavailable when using oauth2client >= 4.0.0
2022-10-04 08:48:56,004 INFO: URL being requested: GET https://www.googleapis.com/discovery/v1/apis/compute/v1/rest
2022-10-04 08:48:56,017 ERROR: Failed: Create GCE compute v1 connection: [SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:897)

Environment

  • Red Hat Enterprise Linux 8, 9 (with the High Availability Add-on)
  • fence_gce

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