Rest api call giving error for creating a model using the mtypeid parameter in Spectrum
search cancel

Rest api call giving error for creating a model using the mtypeid parameter in Spectrum

book

Article ID: 237151

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

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

######################

Environment

Release : 21.2.8

Component : SPCAPP - Spectrum Applications / Web API

Resolution

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.

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/21-2/release-information/issues-resolved.html

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)