After Upgrade to GitOps v1.14 Applications are failing with repository connectivity issues

Solution Verified - Updated -

Issue

  • After Upgrade to GitOps v1.14, the Application/ApplicationSet are failing with repository connectivity issues:
  • On ArgoCD Dashboard Application page we getting errors like:

    Unable to load data: error acquiring repo lock: failed to initialize repository resources: rpc error: code = Internal desc = Failed to fetch default: `git fetch origin --tags --force --prune` failed exit status 128: Could not create directory '/.ssh'. Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
    
    # OR
    
    Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = failed to initialize repository resources: rpc error: code = Internal desc = Failed to fetch default: `git fetch origin --tags --force --prune` failed exit status 128: Could not create directory '/.ssh'.
    
    # OR
    
    Unable to load data: error acquiring repo lock: failed to initialize repository resources: rpc error: code = Internal desc = Failed to fetch default: `git fetch origin --tags --force --prune` failed exit status 128: fatal: could not read Username for '<url>': terminal prompts disabled
    
    # OR
    
    error generating params from git: error retrieving Git files: rpc error: code = Internal desc = unable to resolve git revision: Get "<url>": tls: failed to verify certificate x509: certificate signed by unknown authority
    
  • In repo-server pod logs we are getting errors like:

    Failed to add the ECDSA host key for IP address '<ip>' to the list of known hosts (/.ssh/known_hosts).
    <url>: Permission denied (publickey).
    fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
    
  • Applications stuck in Unknown State:

    NAME                SYNC STATUS   HEALTH STATUS   REVISION    PROJECT
    <Application-Name>  Unknown       Healthy                     <AppProject-Name>
    

Environment

  • Red Hat OpenShift Container Platform
    • 4.12+
  • Red Hat OpenShift GitOps
    • 1.14.0

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