Bug ID 758637: Devices in PENDING state causes upgrade failure

Last Modified: Jul 12, 2023

Affected Product(s):
BIG-IQ Platform(all modules)

Opened: Feb 13, 2019

Severity: 3-Major

Symptoms

During upgrade, if a device is PENDING or UNDISCOVERED rather then ACTIVE, device upgrade will fail and throw a TypeError: Cannot call method 'split' of undefined

Impact

Upgrade Failure

Conditions

This issue occurs during an upgrade when there is/are Device(s) that do not have a valid Active Software Version. This can happen when the device is in either a Pending or Undiscovered state. Other conditions may apply.

Workaround

Rollback to previous version, remove the affected device(s), upgrade and then add the device back in as needed. Use the following commands to find the affected IDs and group: 1) mongo bigiqDb 2) at the bigiq0:PRIMARY> prompt, past the following: db.bigiqLiveObjects.find({"_value.kind":"shared:resolver:device-groups:restdeviceresolverdevicestate","_value.version":null}, {"_value.groupName":1, "_value.address":1, "_value.state":1,"_value.uuid":1}).pretty() 3) For each uuid listed, identify all of the device groups that contain that uuid using the following query substituting <uuid> with the appropriate uuid: db.bigiqLiveObjects.find({"_value.kind":"shared:resolver:device-groups:restdeviceresolverdevicestate","_value.uuid":"<uuid>"}, {"_value.groupName":1,"_value.uuid":1}).pretty() 4) quit() From the output in step 3 you should be able to remove all of the offending entries using restcurl: restcurl -X DELETE /shared/resolver/device-groups/<_value.groupName>/devices/<_value.uuid>

Fix Information

None

Behavior Change

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips