Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-7860

[azure] message is unclear when missing clientCertificatePassword in osServicePrincipal.json


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • 4.13, 4.12
    • None
    • Low
    • No
    • False
    • Hide


    • N/A
    • Bug Fix
    • Done

      Description of problem:

      Configure certificate for installer Service Principal with passphrase, when only adding clientCertificate into osServicePrincipal.json, installer give the message which is unclear that what's missing and redirect to ask subscription id.
      $ ./openshift-install create install-config --dir ipi-test
      INFO Could not get an azure authorizer from file: auth file missing client and certificate credentials 
      INFO Asking user to provide authentication info   
      ? azure subscription id [? for help] 

      Version-Release number of selected component (if applicable):


      How reproducible:


      Steps to Reproduce:

      1. generate certs with passphrase and configure it in SP
      2. update osServicePrincipal.json without adding clientCertificatePassword, since this parameter is optional.(Actually, if certs with passphrase, it is required.)
      3. create install-config file

      Actual results:

      The message is unclear what's missing when getting an auth.

      Expected results:

      The message should give more details that client certificate is found, but failed to auth, make sure that path is correct or clientCertificatePassword is required if certs with passphrase, something like that, so that user know how to correct the file.

      Additional info:





            rdossant Rafael Fonseca dos Santos
            jinyunma Jinyun Ma
            Jinyun Ma Jinyun Ma
            0 Vote for this issue
            6 Start watching this issue