Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-48793

fence_gce: fix discovery_cache and TLS_VERSION_1 errors (RHEL8.4)

    • fence-agents-4.2.1-65.el8_4.19
    • None
    • None
    • rhel-sst-high-availability
    • ssg_filesystems_storage_and_HA
    • 5
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Run fence_gce -o list -vvv to list nodes.

      Please provide the package NVR for which bug is seen:

      How reproducible:

      100%

      Steps to reproduce

      1. Run "fence_gce --zone <zone> -o list -vvv"
      2.  
      3.  

      Expected results

      Lists nodes.

      Actual results

      Fails with the following error:

      [root@rhel8-1 ~]# fence_gce --zone us-east1-b -o list -vvv
      2024-07-16 12:07:52,296 DEBUG: using application default credentials
      2024-07-16 12:07:52,297 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
      2024-07-16 12:07:52,298 INFO: URL being requested: GET https://www.googleapis.com/discovery/v1/apis/compute/v1/rest
      2024-07-16 12:07:52,521 DEBUG: get_metadata
      2024-07-16 12:07:52,537 INFO: URL being requested: GET https://compute.googleapis.com/compute/v1/projects/rhel-ha-oalbrigt/zones/us-east1-b/instances?alt=json
      2024-07-16 12:07:52,538 INFO: Attempting refresh to obtain initial access_token
      2024-07-16 12:07:52,597 WARNING: Encountered 403 Forbidden with reason "forbidden"
      2024-07-16 12:07:52,598 WARNING: Could not execute api call to: https://compute.googleapis.com/compute/v1/projects/rhel-ha-oalbrigt/zones/us-east1-b/instances?alt=json, retry: 0, err: <HttpError 403 when requesting https://compute.googleapis.com/compute/v1/projects/rhel-ha-oalbrigt/zones/us-east1-b/instances?alt=json returned "Request is disallowed by organization's constraints/gcp.restrictTLSVersion constraint for 'projects/rhel-ha-oalbrigt' to use service 'compute.googleapis.com' by violated TLS version TLS_VERSION_1.">
      2024-07-16 12:07:57,632 WARNING: Encountered 403 Forbidden with reason "forbidden"
      2024-07-16 12:07:57,633 WARNING: Could not execute api call to: https://compute.googleapis.com/compute/v1/projects/rhel-ha-oalbrigt/zones/us-east1-b/instances?alt=json, retry: 1, err: <HttpError 403 when requesting https://compute.googleapis.com/compute/v1/projects/rhel-ha-oalbrigt/zones/us-east1-b/instances?alt=json returned "Request is disallowed by organization's constraints/gcp.restrictTLSVersion constraint for 'projects/rhel-ha-oalbrigt' to use service 'compute.googleapis.com' by violated TLS version TLS_VERSION_1.">
      2024-07-16 12:08:02,668 WARNING: Encountered 403 Forbidden with reason "forbidden"
      2024-07-16 12:08:02,669 WARNING: Could not execute api call to: https://compute.googleapis.com/compute/v1/projects/rhel-ha-oalbrigt/zones/us-east1-b/instances?alt=json, retry: 2, err: <HttpError 403 when requesting https://compute.googleapis.com/compute/v1/projects/rhel-ha-oalbrigt/zones/us-east1-b/instances?alt=json returned "Request is disallowed by organization's constraints/gcp.restrictTLSVersion constraint for 'projects/rhel-ha-oalbrigt' to use service 'compute.googleapis.com' by violated TLS version TLS_VERSION_1.">
      2024-07-16 12:08:07,701 WARNING: Encountered 403 Forbidden with reason "forbidden"
      2024-07-16 12:08:07,701 WARNING: Could not execute api call to: https://compute.googleapis.com/compute/v1/projects/rhel-ha-oalbrigt/zones/us-east1-b/instances?alt=json, retry: 3, err: <HttpError 403 when requesting https://compute.googleapis.com/compute/v1/projects/rhel-ha-oalbrigt/zones/us-east1-b/instances?alt=json returned "Request is disallowed by organization's constraints/gcp.restrictTLSVersion constraint for 'projects/rhel-ha-oalbrigt' to use service 'compute.googleapis.com' by violated TLS version TLS_VERSION_1.">
      2024-07-16 12:08:07,701 ERROR: Failed: get_nodes_list: <HttpError 403 when requesting https://compute.googleapis.com/compute/v1/projects/rhel-ha-oalbrigt/zones/us-east1-b/instances?alt=json returned "Request is disallowed by organization's constraints/gcp.restrictTLSVersion constraint for 'projects/rhel-ha-oalbrigt' to use service 'compute.googleapis.com' by violated TLS version TLS_VERSION_1.">2024-07-16 12:08:07,701 ERROR: Please use '-h' for usage 

              rhn-engineering-oalbrigt Oyvind Albrigtsen
              rhn-engineering-oalbrigt Oyvind Albrigtsen
              Oyvind Albrigtsen Oyvind Albrigtsen
              Ilias Romanos Ilias Romanos
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: