We have a script which does the onboarding of the devices (SNMP/pingable) in the spectrum via rest API calls.
After the upgrade to 21.2.8 we see the issue in the inserting of the devices (discovery of the devices) via rest api call
We can delete the device without an issue in the same script but insertion is giving us an error.
Error:
#######
2022-03-10T13:42:49 UTC DEBUG [Create Model By IP]
<<<
IP Address : xx.xx.x.x
Hostname : HostName
Status :
Message : --- ERROR By Moddeling ModelByIp ---
>>>
2022-03-10T13:42:49 UTC INFO [host] --- ERROR By Moddeling ModelByIp ---
2022-03-10T13:42:49 UTC INFO [insertModels] RUN Simple DB query to test connection with DB, to ignore time outs!
2022-03-10T13:42:49 UTC ERROR [POSTrequest()]
<<<
'Invalid mtypeid parameter : null'
>>>
2022-03-10T13:42:49 UTC ERROR [POSTrequest()]
<<<
We see same error in the catalina.out file:
#####################
REST Client passed invalid mtypeid parameter : null
REST Client passed invalid mtypeid parameter : null
REST Client passed invalid mtypeid parameter : null
REST Client passed invalid mtypeid parameter : null
######################
Release : 21.2.8
Component : SPCAPP - Spectrum Applications / Web API
This issue has been addressed on 21.02.08.PTF_21.2.805 patch for Spectrum 21.2.8 which is also included in 21.02.08.PTF_21.2.806a and 21.02.08.PTF_21.2.810a.
This will also be addressed in Spectrum 21.2.10.
Symptom: REST API call throws an error while creating a device model.
Resolution: Code changes are made to allow the device model creation through the REST API. (DE530688, 33052749, 33049958, 33052231, 33060885, 33056881, 21.2.10)