Quantcast
Viewing latest article 14
Browse Latest Browse All 35

Nutanix TechTip 2: Trigger Automatic NOS download instantly in Prism web console.


Scenario:


- When you click on Upgrade Software in Nutanix web console under Gear Wheel icon, there is an option Enable Automatic Download for NOS.




- If we check it, it wont start the NOS binary download instantly. Wonder why??

- Reason being when you enable it, it triggers a cron job that runs once every 24 hours.

- The other reason might be Automatic download wont work if http proxies is not configured on the cluster or dns is not set.

- Now lets say we have a scenario where customer enables it and wants the download to happen instantly.


Solution:

- ssh into the CVM which is the current Zeus Leader with nutanix credentials.

- You can find the zeus leader by running "cluster status" command.

- Run the below command:

   ~/cluster/bin/automatic_download_support --skip_random_wait

- The above command will initiate the download of NOS which are upgradable versions of current NOS version.

- You can check the automatic_download_support.log located at /home/nutanix/data/logs.

- Below is the excerpt of automatic_download_support.log:

 2015-02-05 19:23:44 INFO automatic_download_support:226 Finding upgradable versions for 4.0.1
2015-02-05 19:23:44 INFO automatic_download_support:386 Proto updated with information about queued downloaded package with version 4.1.1
2015-02-05 19:23:44 INFO automatic_download_support:713 Downloading version 4.1.1
2015-02-05 19:23:44 INFO automatic_download_support:497 Request for version 4.1.1
2015-02-05 19:23:44 INFO automatic_download_support:352 Proto updated with information for downloaded package with version 4.1.1
2015-02-05 19:27:36 INFO automatic_download_support:352 Proto updated with information for downloaded package with version 4.1.1
2015-02-05 19:27:36 INFO automatic_download_support:738 Successfully downloaded 4.1.1

- You can check the status of the download by doing a tail on automatic_download_wget.log at /home/nutanix/data/logs/.

 tail -f automatic_download_wget.log 

- You can check the task status in Nutanix web console.




- During the download, PRISM will perform some checks on the download URL, MD5SUM or SHA1SUM, and the Size in the metadata JSON.

- If there are connectivity issues or mismatches, the download can fail. When a download fails at this stage a <Retry> button is displayed so the user can try again after correcting the issue. Alternatively, users can remove partially downloaded images and try the entire download again.

- After the download is completed, the <Download> button transitions into an <Upgrade> button as seen below.



- There are 3 options here:

    a. Click the <Upgrade> control and a pre-upgrade check followed by an upgrade is performed. 

    b. Hold  the <Ctrl> key and click the <Upgrade> control, performs a pre-upgrade check only. 

    c. Hold the <Shift><Alt> keys and click the <Upgrade> control, skips the pre-upgrade check               and performs the upgrade directly. 
        
- As the pre-upgrade and upgrades start, a set of progress monitors are started and appear in both the Upgrade-Software page and on the main-menu bar.

- As each task is completed the associated progress monitor reaches 100%.
    
- When the overall progress monitor is 100%, the upgrade is complete and the current version would show the upgraded NOS version.




Viewing latest article 14
Browse Latest Browse All 35

Trending Articles