Known Issues in v15.0.0 to v15.1.0 upgrade

We are aware of a known issue in the v15.0.0 NextGen gateway. Few customers encountered difficulties upgrading their gateways from v15.0.0 to v15.1.0 through the OpsRamp UI. However, we have successfully addressed this issue in v15.1.0. To perform the upgrade from v15.0.0 to v15.1.0, customers are advised to manually upgrade their gateways using any one of the following solutions:

Solution 1:

  1. Login to OpsRamp portal and navigate to Automation > scripts section.

  2. Create a category (global or specific partner/client based on the required scope).

    bootstrap

  3. Create a script by selecting the below mentioned drop-down:

    • Select Script Type > Global Script / Partner or Client Script (Based on the required scope of the script).

    • Execution Type > SHELL

    • Platform > Supported on Linux and provide other required details.

      bootstrap

  4. Add the following script in the Script field:

#!/usr/bin/sh 

logFileName="/tmp/ondemand-job.log" 

echo "$(date) : Creating yaml file" >> $logFileName 

kubectl get cm vprobe-updater-cm -n $1 -o jsonpath='{.data.ondemand-job\.yaml}' > /tmp/ondemand-job.yaml 

  

if [ $? -eq 0 ]; then 

        echo "$(date) : Successfully created yaml file" >> $logFileName 

        echo "$(date) : Creating  on-demand job" >> $logFileName 

        kubectl apply -f /tmp/ondemand-job.yaml -n $1 

        if [ $? -eq 0 ]; then 

                 echo "$(date) : Successfully created on-demand job" >> $logFileName 

        else 

                 echo "$(date) : Failed to  created on-demand job" >> $logFileName 

        fi 

else 

       echo "$(date) : Failed to create yaml file" >> $logFileName 

fi
  1. Add the following parameters to the script
FunctionalityDescription
NameEnter the name for the configuration.
DescriptionProvide a description for the configuration.
Default ValueEnter a default value for the configuration.
TypeSelect the type from the drop-down list box.
Data TypeSelect the data type from the drop-down listbox.
bootstrap
  1. Go to your script and click the Apply scripts to devices option.
bootstrap
  1. Select following data:
FunctionalityDescription
Client NameYour client name
Group NameGateway
DevicesSelect your gateway profile name.
ParametersPlease pass your gateway namespace(by default it will be default).
  1. Click Run Now.
bootstrap
  1. To check the successful execution of script verify /tmp/ondemand-job.log file.
tail -f /tmp/ondemand-job.log

bootstrap

  1. Verify ondemand pod status

    podname: nextgen-gw-updater-ondemand-jon-*

kubectl get pods
bootstrap

Solution 2:

If the gateway is not having an OpsRamp agent. Run the upgrade-gateway.sh script to upgrade gateways from v15.0.0 to v15.1.0.

  1. Launch the gateway SSH console.

  2. Create upgrade-gateway.sh file, add following content:

#!/usr/bin/sh 

logFileName="/tmp/ondemand-job.log" 

echo "$(date) : Creating yaml file" >> $logFileName 

kubectl get cm vprobe-updater-cm -n $1 -o jsonpath='{.data.ondemand-job\.yaml}' > /tmp/ondemand-job.yaml 

  

if [ $? -eq 0 ]; then 

        echo "$(date) : Successfully created yaml file" >> $logFileName 

        echo "$(date) : Creating  on-demand job" >> $logFileName 

        kubectl apply -f /tmp/ondemand-job.yaml -n $1 

        if [ $? -eq 0 ]; then 

                 echo "$(date) : Successfully created on-demand job" >> $logFileName 

        else 

                 echo "$(date) : Failed to  created on-demand job" >> $logFileName 

        fi 

else 

       echo "$(date) : Failed to create yaml file" >> $logFileName 

fi
  1. Save the script and click Run.
sh upgrade-gateway.sh default
sh upgrade-gateway.sh {NAME SPACE} 
  1. Verify /tmp/ondemand-job.log file, to check the successful execution of script.
tail -f /tmp/ondemand-job.log
bootstrap
  1. Verify the ondemand pod status.
    podname: nextgen-gw-updater-ondemand-jon-*
kubectl get pods
bootstrap