Updating the software catalog to include new versions

Use this procedure to update your software catalog when new versions of operating systems are supported for use in fabrics.
Note: Do not remove existing versions in the catalog as they may be in use by existing operational fabrics. Deleting a version in the catalog that is in use causes ZTP process failure. If you must remove a version that exists in the catalog, ensure that no fabrics are using it.
Ensure that the new software version you are adding to the catalog is fully qualified by Nokia, otherwise the Fabric Services System does not work as expected.
  1. On the master node, back up the existing software catalog.

    kubectl get configmaps prod-fss-catalog-data -o jsonpath='{.data.catalog\.yaml}' > my_old_catalog.yaml

  2. Edit the catalog configmap file.
    Use the following command:
    kubectl edit configmap prod-fss-catalog-data
    Under softwareCatalog, add the following entries. Note that latest must be set to false.
    - softwareVersion: 21.11.3-70
            operatingSystem: SRLinux
            vendor: Nokia
            latest: false                                
            capability:
              supportedTemplates:
              - BACKBONE
              - LEAFSPINE
              - MANUAL
    
    
  3. Restart the catalog micro-service for the new addition to take effect.
    kubectl delete pod `kubectl get pods | awk '{print $1}' | grep -e "fss-catalog"`
    When the catalog micro-service is back up, the new catalog should now be available.