A gcp-vpc-move-vip resource logs ModuleNotFoundError and ImportError exceptions, as well as oauth2client warnings

Solution In Progress - Updated -

Issue

  • The start, monitor, and stop operations for a gcp-vpc-move-vip resource log warnings and errors like the following, but the operations still complete successfully.
[root@node1 ~]# pcs resource debug-start alias_ip1 
Operation start for alias_ip1 (ocf:heartbeat:gcp-vpc-move-vip) returned: 'ok' (0)
 >  stderr: WARNING:googleapiclient.discovery_cache:file_cache is unavailable when using oauth2client >= 4.0.0
 >  stderr: Traceback (most recent call last):
 >  stderr:   File "/usr/lib/python3.6/site-packages/googleapiclient/discovery_cache/__init__.py", line 36, in autodetect
 >  stderr:     from google.appengine.api import memcache
 >  stderr: ModuleNotFoundError: No module named 'google'
 >  stderr: 
 >  stderr: During handling of the above exception, another exception occurred:
 >  stderr: 
 >  stderr: Traceback (most recent call last):
 >  stderr:   File "/usr/lib/python3.6/site-packages/googleapiclient/discovery_cache/file_cache.py", line 33, in <module>
 >  stderr:     from oauth2client.contrib.locked_file import LockedFile
 >  stderr: ModuleNotFoundError: No module named 'oauth2client.contrib.locked_file'
 >  stderr: 
 >  stderr: During handling of the above exception, another exception occurred:
 >  stderr: 
 >  stderr: Traceback (most recent call last):
 >  stderr:   File "/usr/lib/python3.6/site-packages/googleapiclient/discovery_cache/file_cache.py", line 37, in <module>
 >  stderr:     from oauth2client.locked_file import LockedFile
 >  stderr: ModuleNotFoundError: No module named 'oauth2client.locked_file'
 >  stderr: 
 >  stderr: During handling of the above exception, another exception occurred:
 >  stderr: 
 >  stderr: Traceback (most recent call last):
 >  stderr:   File "/usr/lib/python3.6/site-packages/googleapiclient/discovery_cache/__init__.py", line 41, in autodetect
 >  stderr:     from . import file_cache
 >  stderr:   File "/usr/lib/python3.6/site-packages/googleapiclient/discovery_cache/file_cache.py", line 41, in <module>
 >  stderr:     'file_cache is unavailable when using oauth2client >= 4.0.0')
 >  stderr: ImportError: file_cache is unavailable when using oauth2client >= 4.0.0
 >  stderr: INFO:gcp-vpc-move-vip:Finished adding 10.138.0.31/32 to node1

Environment

  • Red Hat Enterprise Linux 8 (with the High Availability Add-on)
  • Google Cloud Platform virtual machines

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