Uploaded image for project: 'Application Authorization Framework'
  1. Application Authorization Framework
  2. AAF-1087

AAF init containers init with exit 0 even if failing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: High High
    • Honolulu Release
    • Frankfurt Release

      when an AAF init container tries to retrieve its certificates, if, for unknown reason, AAF is not able to give it, the init container exit with status 0:

       

      cadi_prop_files=/opt/app/osaaf/local/org.onap.dmaap-dr.location.props:/opt/app/osaaf/local/org.onap.dmaap-dr.cred.props
      
      #### Certificate Authorization Artifact
      2020-02-20T11:06:59.682+0000 INIT [cadi] cadi_keyfile points to /opt/app/osaaf/local/org.onap.dmaap-dr.keyfile
      2020-02-20T11:06:59.692+0000 INIT [cadi] https.protocols set by cadi_protocols in CADI Properties
      2020-02-20T11:06:59.692+0000 INIT [cadi] jdk.tls.client.protocols set from Default Protocols
      2020-02-20T11:07:03.461+0000: Trans Info
               Read Artifact 3285.6936ms
       
      org.onap.aaf.cadi.CadiException: org.onap.aaf.cadi.LocatorException: No Entries found for 'https://aaf-locate.onap:8095/locate/onap.org.osaaf.aaf.cm:2.1'
      	at org.onap.aaf.cadi.aaf.v2_0.AAFConHttp.rclient(AAFConHttp.java:135)
      	at org.onap.aaf.cadi.aaf.v2_0.AAFCon.client(AAFCon.java:223)
      	at org.onap.aaf.cadi.configure.Agent.readArtifact(Agent.java:542)
      	at org.onap.aaf.cadi.configure.Agent.main(Agent.java:313)
      Caused by: org.onap.aaf.cadi.LocatorException: No Entries found for 'https://aaf-locate.onap:8095/locate/onap.org.osaaf.aaf.cm:2.1'
      	at org.onap.aaf.cadi.aaf.v2_0.AbsAAFLocator.best(AbsAAFLocator.java:240)
      	at org.onap.aaf.cadi.aaf.v2_0.AAFConHttp.rclient(AAFConHttp.java:133)
      	... 3 more
      #### Certificate Authorization Artifact must be valid to continue
      Initialization complete
      

      And so, Kubernetes continues the init process and it shouldn't be as without certificate, service will not work.

       

            sdesbure sdesbure
            sdesbure sdesbure
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: