Note:
On 7.X, issue fixed on 7.0.3-p09 recently.
On 8.X, starts from 8.0.2, the issue is fixed.
Workaround:
To avoid any re-occurrence of the issue, the UserValue has to be modified to "enabled"=true by following the steps below:
1. Connect to the esxi host through ssh.
2. Create a script file "workaround.py" with the following content:
import libconfigstorepy as cslib
import json
cs = cslib.ConfigStore.GetStore()
csoId = cslib.ConfigStoreObjectId('firewall_rule_sets', 'network', 'esx')
csoId.instanceId = 'iSCSI'
iSCSICso = cs.Get(csoId)
if iSCSICso is not None:
iSCSICso.SetValue("enabled", True)
print("Update iSCSI cso with: %s" % json.dumps(json.loads(iSCSICso.GetData()), indent=4))
cs.Set(iSCSICso)
3. Run the script using the command below:
python workaround.py
Applying the workaround doesn't impact the production.