Nodegrid upgrade through Redhat server
Ansible can be used to upgrade Nodegrid device to newer version from server ( Redhat in this case ).
Make sure ISO file has been copied to /etc/ansible/Firmware/ folder.
First, one needs to create template to be copied on remote Nodegrid device.
nodegrid_upgrade.j2
- software_upgrade
- set image_location=local_system
- set filename={{ ng_filename }}
- upgrade
Next, one needs to create playbook : nodegrid_upgrade.yml
- ---
- - name: Upgrade the Nodegrid
- hosts: "{{ ipaddress }}"
- gather_facts: no
- vars_prompt:
- - name: ipaddress
- prompt: Enter the ip address or group name
- private: no
- vars:
- ng_filename: Nodegrid_Platform_v4.2.1_20200626.iso
- ng_full: /etc/ansible/Firmware/{{ ng_filename }}
- ng_dest: /var/sw/{{ ng_filename }}
- file_name_upgrade: upgrade.cli
- file_name_backup: backup.cli
- become: true
- tasks:
- - name: Copy ISO to Nodegrid
- copy:
- src: "{{ ng_full }}"
- dest: "{{ ng_dest }}"
- - name: Copy firmware update script
- template:
- src: templates/nodegrid_upgrade.j2
- dest: /tmp/{{ file_name_upgrade }}
- - name: Run Firmware update
- command : cli -f /tmp/{{ file_name_upgrade }}
- - name: Wait 300 seconds for target connection to become reachable/usable
- wait_for_connection:
- delay: 60
- timeout: 300
- - name: Current Version
- command : grep ^VERSION= /software
- register: ng_version_after
- - name: Upgrade Successful
- debug:
- msg: "Upgrade successful new version: {{ ng_version_after['stdout'] }}"
- - name: Deleting Cache
- wait_for_connection:
- delay: 5
- timeout: 10
- - name: Find and Delete
- shell: sudo rm -rf /var/sw/*
- - name: ACK
- debug:
- msg: " Nodegrid is up and running "
Now, run the playbook with the command: ansible-playbook nodegrid_upgrade.yml
Note: One can change the timeout value in playbook based on the network connection.
Related Articles
Creating a DHCP server on Interface BACKPLANE0 in Nodegrid
To configure and enable the DHCP server in Nodegrid Manager: 1. Add a subnet From the Web UI: Click on the Network icon and select DHCP from the menu bar Click Add to create a DHCP range Click on Add and fill in the Subnet, Network and Router IP ...
DHCP Server Lease Management
Nodegrid version 5.10.x provides better visibility into your DHCP network and offers a new feature ease management of your DHCP network. You can find these improvements under Tracking-->Network-->DHCP. The DHCP section here is now split between ...
Upgrade the Nodegrid OS via API
API endpoint can be used to upgarde the Nodegrid ISO. Endpoint - /system/toolkit/upgrade Request - POST If you are upgrading locally by copying an ISO image file in /var/sw/ then use this payload information, "image-location": "upgrade-local", ...
How Do I Upgrade the Software of My Nodegrid?
Note: Be sure to follow the recommended upgrade paths: Nodegrid OS Upgrade Path To download the required ISOs: Downloading Firmware Update Steps for the Nodegrid software upgrade via WebUI From browsers, log into NodeGrid unit Click on "System" Click ...
Nodegrid OS Upgrade Path
Due to the increased size of newer Nodegrid OS images, older systems may be required to go through an intermediate version when upgrading to ensure normal operation. The Nodegrid OS versions that can adjust the existing partition size to meet these ...