FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
bboudjema
Staff
Staff
Article Id 197051

Description

 

This article describes how to upgrade an ADOM on FortiManager and how to perform basic troubleshooting in case of an ADOM upgrade failure.

 

Scope

 

FortiManager versions between 5.4.x and 6.4.x

Solution

 

Prerequisites and Notes:

 

ADOM upgrade requires system level administrator permissions and access to the respective ADOM/s (eg., Super_User admin profile).

 

In the firmware versions within the scope of this article (5.4.x to 6.4.x), an ADOM can only be upgraded after all the devices within this ADOM have been upgraded.

Starting in FortiManager 7.0.1, the ADOM version can be upgraded without first updating all devices.

 

When a FortiManager unit is upgraded, ADOMs are not upgraded automatically.

The ADOM upgrade operations have to be done separately after the FortiManager upgrade.

 
When upgrading FortiManager, check if the new firmware is compatible with all existing ADOM versions. If not, make sure to upgrade the ADOMs to a supported version before proceeding with the FortiManager upgrade.
Otherwise, ADOMs in unsupported versions will become unavailable after the FortiManager upgrade.

 

Although possible to manage FortiGates with different versions within the same ADOM, there are few limitations:

- 'Import Policy' is not supported if the FortiGate version is different than the ADOM version.

- Configuration features implemented in newer FortiGate version may not be available in older ADOM version.

- There might be mismatch in the CLI syntax of some ADOM objects, causing installation or verification errors (eg., new syntax implemented in FortiOS which is not available the database of older ADOM version).

 

To upgrade an ADOM:
 
1) Go to System Settings -> All ADOMs.
 
 

 

The same view in CLI:

 

brice-7.jpg
 
Note:
It is not possible to upgrade an ADOM using the CLI.
This operation has to be done on the GUI.
 
2) Select  an ADOM and select 'Upgrade', or select an ADOM, select 'More' and then 'Upgrade' from the toolbar.
 
 
 
 

If the ADOM has already been upgraded to the latest version, this option will not be available.

 


 

 

3) Select 'OK' in the confirmation dialog box to upgrade the device.

 

 

brice-4.jpg

 

 

In that above/below picture the ADOM has been successfully upgraded.

The new ADOM version is then displayed into 'Firmware Version' column.

Vito_0-1668674755545.png

Under version 6.4 and above please select the ADOM that will be upgraded and go to More - > Upgrade

 


 
Synthetic diagram when ADOM upgrade is successful.

 

If all units within the ADOM are not already upgraded, the upgrade will be stopped and an error message will be shown.

 

 

The example below illustrates the failed ADOM upgrade: 'Please upgrade all devices to 5.6 before upgrading the ADOM'.

 

brice-1.jpg

 

 
In a such case, upgrade the remaining devices within the ADOM, then return to step 1 to try upgrading the ADOM again.
 
 
brice-5.jpg
 
Synthetic diagram when ADOM upgrade is failing.
 
 


 
Troubleshooting ADOM Upgrade:

In some cases, (if all the FortiGate into the ADOM are upgraded), the ADOM procedure may fail for many reason.
Find below the different reasons preventing a customer to upgrade an ADOM (Non exhaustive list):
 
a) Name conflicts in wildcard FQDN address on ssl/ssh profile (for ADOM 5.6, 6.0 and 6.2).
b) Different CLI syntax on objects/profiles.
c) Miscellaneous inconsistencies on firewall objects.
d) FortiGate object table size limitation changes.

All of these errors mentioned above are known fixed bugs and still exist in the customer environment because the ADOM has never been upgraded by the past even though the FortiManager is using the latest firmware version. Different firmware versions have different features, and therefore different CLI syntax. That is the reason why ADOM upgrade might not be successful.

FortiManager Debug commands.

In a such case, Fortinet recommends to use the below CLI troubleshooting commands:
# diagnose debug enable
# diagnose debug service cdb 255

These CLI commands will help to localize and identify the root cause of the problem that prevent to upgrade the ADOM.

In most of cases, removing the concerned object/profile/interface allows to fix the issue and successfully upgrade the ADOM.

Another scenario can happen: many errors are preventing to upgrade the ADOM.

Find the first error, then fix it and try to upgrade the ADOM: without success. In a such case, use the same method and CLI commands to identify the object/profile/interface causing the problem.

If the concerned object is used and/or important in the configuration (cannot be modified), contact the Fortinet support for further assistance.

The ADOM upgrade debugging will always stop on the concerned error.
Below some examples of FMG debug after a failed ADOM upgrade:

Example 1:

--> commit copy firewall address.autoupdate.opera.com(soid=149) to dparent=1227, fail: err=-2, Name conflicts with an entry in wildcard FQDN address
name: autoupdate.opera.com ---> autoupdate.opera.com
subnet: 0.0.0.0 0.0.0.0 ---> 0.0.0.0 0.0.0.0
type: fqdn ---> fqdn
start-ip: 0.0.0.0 ---> 0.0.0.0
end-ip: 0.0.0.0 ---> 0.0.0.0
fqdn: autoupdate.opera.com ---> autoupdate.opera.com
associated-interface: any ---> any
wildcard: 0.0.0.0 0.0.0.0 ---> 0.0.0.0 0.0.0.0
cache-ttl: 0 ---> 0
color: 0 ---> 0
visibility: enable ---> enable
uuid: 2fe03af0-43b8-51ea-1233-d6844b291acd ---> 2fe03af0-43b8-51ea-1233-d6844b291acd
allow-routing: disable ---> disable
obj-id: 0 --->

 

Explanations of the previous error: By default, in 6.0 ADOM some firewall addresses have same name than wildcard FQDN i.e: 'autoupdate.opera.com', 'google-play', etc.

When upgrading to 6.2, it will hit the newly added check of not allowing firewall address to have same name as a wildcard FQDN.

 

brice 16.jpg 

Example 2:
copy firewall address.autoupdate.opera.com(soid=149) to dparent=1227,: fail.
-> commit copy ssh.(soid=12315) to dparent=13106, fail: err=-2,Must set at least one port or enable ssh inspect-all.
======= Dump sentry and dentry======
       12315 ---> 13113
status: deep-inspection ---> deep-inspection
inspect-all: disable ---> disable
unsupported-version: bypass ---> bypass
ssh-policy-check: disable --->
ssh-tun-policy-check: disable ---> disable
ssh-algorithm: compatible ---> compatible
===================================
copy ssh.(soid=12315) to dparent=13106, :fail.
copy firewall ssl-ssh-profile.custom-deep-inspection(soid=11436) to dparent=12315, :fail.
Explanations of the previous error: ADOM upgrade failed because the configuration of ssh (set ports 22) is not set in "custom-deep-inspection" profile.

Global Database Specifics:

 

Only the 'Upgrade' option should be used for upgrading the Global Database to a higher version.

If the Global Database version is edited (modified) by selecting 'Edit' and then selecting either higher or lower version, all data is deleted.
 
To upgrade the Global Database:

1) Go to System Settings -> All ADOMs
2) Select Global Database -> 'More' from the top menu bar -> Upgrade

* If the ADOM has already been upgraded to the latest version, this option will not be available.
3) Select 'OK' in the Upgrade ADOM dialog box.
4) After the upgrade finishes, select 'Close' to close the dialog box.