vLCM based upgrade : "Upgrade failed: Failed to apply Component nsx-lcp-bundle(3.1.3.7.4-7.0.19746859): an error occurred while enabling service nsx-datapath-dl"
non-VLCM based upgrade: "Unloading module nsxt-ipfix-19068435 failed: Busy (bad0004)\nCannot remove module nsxt-ipfix-19068435: module symbols in use\n\n') vibs = ['VMware_bootbank_nsx-esx-datapath_3.1.3.7.0-7.0.19380480'] Please refer to the log file for more details..
This issue is resolved in:
NSX-T version in 3.1.3.7.4 and in releases 3.2.1 forward.
Workaround:
Scenario 1:
During the NSX-T upgrade from 3.0.x and 3.1.x (until 3.1.3.7) AND if the version of the ESXi is 7.0.3.x.
Scenario 2:
If the user had used IPFIX (DVS/Switch) after the last reboot of the ESXi host, the NSX-T host upgrade may fail and the user has to reboot the ESXi host to get out of the error state and retry the upgrade.
Scenario 3:
During the NSX-T upgrade to 3.2.1 or later releases AND if the version of the ESXi is 7.0.3.x.,
NSX-T introduced a pre-check to alert the user about the IPFIX config and the hosts may be automatically rebooted during the upgrade without user intervention.
Note:
In case VRNI or the third-party flow collectors is/are unavailable to unconfigure IPFIX follow the manual steps below.
Steps to remove Netflow manually from vCenter
Steps to remove SWITCH IPFIX Profiles
On the NSX-T UI, an error similar to the following is displayed.
Install of offline bundle failed on host 0b830eb1-####-####-####-##########09 with error : [LiveInstallationError] VMware_bootbank_nsx-esx-datapath_3.1.3.7.0-7.0.19380480: Error in running [/etc/init.d/nsx-datapath-dl start upgrade]: Return code: 1 Output: /usr/lib/vmware/nsx-esx-datapath/lib/python3.5/nsxesxutils.py:352: SyntaxWarning: "is not" with a literal. Did you mean "!="? if DEV_BUILDTYPE is not "beta": start upgrade begin Exception: Traceback (most recent call last): File "/etc/init.d/nsx-datapath-dl", line 1154, in <module> DualLoadUpgrade() File "/etc/init.d/nsx-datapath-dl", line 953, in DualLoadUpgrade PreUpgrade() File "/etc/init.d/nsx-datapath-dl", line 794, in PreUpgrade UnloadNonDLModules() File "/etc/init.d/nsx-datapath-dl", line 146, in UnloadNonDLModules nsxesxutils.unloadModule(modName, False) File "/usr/lib/vmware/nsx-esx-datapath/lib/python3.5/nsxesxutils.py", line 446, in unloadModule raise Exception('Failed to unload module %s: %s' % Exception: Failed to unload module nsxt-ipfix-19068435: vmkmod: VMKMod_UnloadModule: Unloading module nsxt-ipfix-19068435 failed: Busy (bad0004) Cannot remove module nsxt-ipfix-19068435: module symbols in use It is not safe to continue. Please reboot the host immediately to discard the unfinished update. cause = ('nsx-lcp-bundle(3.1.3.7.0-7.0.19380480)', 'nsx-datapath-dl', 'Error in running [/etc/init.d/nsx-datapath-dl start upgrade]:\nReturn code: 1\nOutput: /usr/lib/vmware/nsx-esx-datapath/lib/python3.5/nsxesxutils.py:352: SyntaxWarning: "is not" with a literal. Did you mean "!="?\n if DEV_BUILDTYPE is not "beta":\nstart upgrade begin\nException:\nTraceback (most recent call last):\n File "/etc/init.d/nsx-datapath-dl", line 1154, in <module>\n DualLoadUpgrade()\n File "/etc/init.d/nsx-datapath-dl", line 953, in DualLoadUpgrade\n PreUpgrade()\n File "/etc/init.d/nsx-datapath-dl", line 794, in PreUpgrade\n UnloadNonDLModules()\n File "/etc/init.d/nsx-datapath-dl", line 146, in UnloadNonDLModules\n nsxesxutils.unloadModule(modName, False)\n File "/usr/lib/vmware/nsx-esx-datapath/lib/python3.5/nsxesxutils.py", line 446, in unloadModule\n raise Exception(\'Failed to unload module %s: %s\' %\nException: Failed to unload module nsxt-ipfix-19068435: vmkmod: VMKMod_UnloadModule: Unloading module nsxt-ipfix-19068435 failed: Busy (bad0004)\nCannot remove module nsxt-ipfix-19068435: module symbols in use\n\n') vibs = ['VMware_bootbank_nsx-esx-datapath_3.1.3.7.0-7.0.19380480'] Please refer to the log file for more details..
On the ESXi host /var/run/log/esxupdate.log following error is observed:
2022-xx-xxTxx:xx:24Z esxupdate: 2136236: LiveImageInstaller: DEBUG: Output: being upgraded Killed failed to start
2022-xx-xxTxx:xx:31Z esxupdate: 2136236: HostImage: DEBUG: installer LiveImageInstaller failed: VMware_bootbank_nsx-esx-datapath_3.1.3.7.0-7.0.19380480: VMware_bootbank_nsx-esx-datapath_3.1.3.7.0-7.0.19380480: Error in running [/etc/init.d/nsx-datapath-dl start upgrade]: Return code: 1 Output: /usr/lib/vmware/nsx-esx-datapath/lib/python3.5/nsxesxutils.py:352: SyntaxWarning: "is not" with a literal. Did you mean "!="? if DEV_BUILDTYPE is not "beta": start upgrade begin Exception: Traceback (most recent call last): File "/etc/init.d/nsx-datapath-dl", line 1154, in <module> DualLoadUpgrade() File "/etc/init.d/nsx-datapath-dl", line 953, in DualLoadUpgrade PreUpgrade() File "/etc/init.d/nsx-datapath-dl", line 794, in PreUpgrade UnloadNonDLModules() File "/etc/init.d/nsx-datapath-dl", line 146, in UnloadNonDLModules nsxesxutils.unloadModule(modName, False) File "/usr/lib/vmware/nsx-esx-datapath/lib/python3.5/nsxesxutils.py", line 446, in unloadModule raise Exception('Failed to unload module %s: %s'
2022-03-17T04:47:31Z esxupdate: % Exception: Failed to unload module nsxt-ipfix-19068435: vmkmod: VMKMod_UnloadModule: Unloading module nsxt-ipfix-19068435 failed: Busy (bad0004) Cannot remove module nsxt-ipfix-19068435: module symbols in use It is not safe to continue. Please reboot the host immediately to discard the unfinished update.. Clean up the installation.
2022-03-17T04:47:31Z esxupdate: tils.py", line 446, in unloadModule\n raise Exception(\'Failed to unload module %s: %s\' %\nException: Failed to unload module nsxt-ipfix-19068435: vmkmod: VMKMod_UnloadModule: Unloading module nsxt-ipfix-19068435 failed: Busy (bad0004)\nCannot remove module nsxt-ipfix-19068435: module symbols in use\n\n\nIt is not safe to continue. Please reboot the host immediately to discard the unfinished update.']', outfile = 'None', returnoutput = 'True', timeout = '0.0'.
2022-03-17T04:47:31Z esxupdate: 2136236: root: ERROR: raise Exception('Failed to unload module %s: %s' %
2022-03-17T04:47:31Z esxupdate: 2136236: root: ERROR: Exception: Failed to unload module nsxt-ipfix-19068435: vmkmod: VMKMod_UnloadModule: Unloading module nsxt-ipfix-19068435 failed: Busy (bad0004)