How to prevent Flex 2.0 upgrade failure due to multiple DNS search domains Configured on Flex Appliance
Problem
The upgrade to Flex 2.0 may fail with "Installation Status: Failed” when multiple DNS search domains are configured on the appliance. To prevent the failure during the upgrade, implement the steps in this article prior to the upgrade.
Error Message
When the system restarts after the upgrade, “Installation Status” is shown as Failed. The Common_Config playbook logs in /log/ansible/PLAYBOOK/ show an 'invalid DNS' error at the end of the file, as follows:
"msg": "Invalid DNS search domain: tulip.local tulip.local,rospol.rosinf.net,ros.net,tulip0.net,ros2100.pnn.met.edu"
}
Task Name: Failed if DNS search domain "tulip.local tulip.local,rospol.rosinf.net,ros.net,tulip0.net,ros2100.pnn.met.edu" is not valid
Error Code:
Error: Invalid DNS search domain: tulip.local tulip.local,rospol.rosinf.net,ros.net,tulip0.net,ros2100.pnn.met.edu
Applies To
This article applies to Flex Appliance versions 1.2 and 1.3.x that are planning to upgrade to version 2.0
Cause
When multiple search domains are configured in DNS search domain, during the upgrade process invalid DNS search entries get added into the central configuration of the Flex Appliance.
Solution
- Log in to the appliance node using SSH and perform the following steps from the Flex Appliance Shell:
- Run the
system set-DNS
command - When prompted, specify the DNS server IP address and a single search domain. Do not specify multiple search domains to prevent failure during the 2.0 upgrade.
- Run the
- (5340 appliances only) Once the operation completes, add a host entry for each Flex node IP address in the environment and their hostnames as follows:
- Run the
system add-host
command - When prompted, specify the node IP address, short name, and domain
- Run the
- If you have a multi-node appliance, repeat the previous steps on the other node before upgrading
- Once the operation has completed successfully, follow the rest of the steps to perform the upgrade. Once the upgrade has completed as "Successful", commit the upgrade and add all search domains which were removed prior to the upgrade, as follows:
- Run the
system set-DNS
command - When prompted, specify the DNS server IP address and re-enter the multiple search domains.
- Run the