API Connect

 View Only
  • 1.  Unable to modify the config file.

    Posted Fri February 12, 2021 12:49 AM
    Hello All,

       I need an help in updating the config file for API Connect for one of subsystem. Issue was that i have created an empty extra config file for backup and later i have upgraded the environment to the latest version 10.0.1.1 so that i can backup my files on to SFTP server. When i am trying to upgrade my existing Image to the latest version i am getting below error. Your help is really appreciated.

    (ManagementCluster.management.apiconnect.ibm.com "mgmt" is invalid: [spec.databaseBackup.credentials: Required value, spec.databaseBackup.credentials: Internal error: resource name may not be empty]): error when applying patch:

    Thanks and Regards,
    Janakiram.


    ------------------------------
    JanakiramSudhakar Kota
    ------------------------------


  • 2.  RE: Unable to modify the config file.

    Posted Mon April 12, 2021 10:55 AM
    What commands have you tried when you say you are unable to modify the config file?

    What do you see when you describe or get your deployment config (using kubectl)? If spec.databaseBackup is not required (seems so as you mentioned you have created an empty config file for backup), then you can kubectl edit your deployment and remove spec.databaseBackup. 

    You have not provided enough information on how you added this empty config and how this ended up against "spec.databaseBackup.credentials". Was the empty config file added to a directory and a ConfigMap was created from this directory? You can edit ConfigMap and put in the required values in the relevant ConfigMap using kubectl edit command.

    ------------------------------
    Parveen Kumar
    ------------------------------



  • 3.  RE: Unable to modify the config file.

    Posted Tue April 13, 2021 04:19 AM
    Hello Parveen Kumar,

      Thank you for the response.

       when i am issued the below command i got couple of details but i am not which config map contains this spec.databaseBackup.credentials

      kubectl get configmap

      I couldn't able to list the corresponding yaml file. Can you please help to let me know how to get the corresponding file.

    Thanks,
    Janakiram.


    ------------------------------
    JanakiramSudhakarKota
    ------------------------------



  • 4.  RE: Unable to modify the config file.

    IBM Champion
    Posted Wed April 14, 2021 02:59 AM
    Hello

    kubectl can be used to get the yaml related to pretty much any object.

    The option is "-o yaml".

    So try adding this to your kubectl get command...

    kubectl get configmap -o yaml

    Although I would recommend selecting the specific configmap you are interested in, rather than getting all of them.

    Assuming your namespace is 'devel' and the configmap is called apiKeys, your command would be...

    kubectl get configmap apiKeys -n devel -o yaml

    I don't have a cluster up at the moment, so I couldn't check that syntax, but I think it is right.

    Regards,

    ------------------------------
    Neil Casey
    Senior Consultant
    Syntegrity Solutions
    Melbourne, Victoria
    IBM Champion (Cloud) 2019-21
    +61 (0) 414 615 334
    ------------------------------



  • 5.  RE: Unable to modify the config file.

    Posted Thu April 15, 2021 03:11 AM
    Hello Neil Casey,

      Thank you I have generated the yaml file based on your inputs but i still don't see the details which has caused the issue. It suspect that i have taken the previous VM copy and then i have done the setup but i still dont understand even if i want to check my configuration why i cannot able to do that strange. Stuck with that looking all the possibility how to retrieve those details (i.e., my intention was to get the details using the commands) because I have already the project file. If you have any insight about it please do let me know.

    Thanks,
    Janakiram.

    ------------------------------
    JanakiramSudhakarKota
    ------------------------------



  • 6.  RE: Unable to modify the config file.

    IBM Champion
    Posted Sun April 18, 2021 10:03 PM
    Hello,

    I'm glad you were able to get the yaml back. Sorry I don't have any insight into how to fix your actual issue.

    Regards,

    ------------------------------
    Neil Casey
    Senior Consultant
    Syntegrity Solutions
    Melbourne, Victoria
    IBM Champion (Cloud) 2019-21
    +61 (0) 414 615 334
    ------------------------------