We are running dxnetops 25.4.5
Older odata2 queries that we have been consistently running are now failing.
We see this message in the
/opt/IMDataAggreagtor/data/logs/OpenAPI.log
..
<DATE> ERROR | 0.0-8582-exec-51 | ODataRequestProcessor | data2.impl.ODataRequestProcessor 1158 | - - | | Failed to complete request (Thread id 2179014): host: '<IP>' tenant: 'Default Tenant' user: 'ADMIN' url: 'https://DA:8582/odata/api/devices?$format=json&$select=ID,Name,PrimaryIPAddress&$filter=((PrimaryIPAddress eq '<IP>'))' - Execution time 2550 ms. Error: An exception occurred. ('3gwanservicemfs' name pattern not valid.)
DX NetOps 25.4.4 to 25.4.7
Note:: odata2 is deprecated in 26.5.x
Recent updates to the odata libraries enforced an existing naming convention which prohibits names from starting with a number.
Make sure that the customer is not using any 3gwanservice mf metrics in their environment.
ONLY if they are not using it:
To cleanup 3G Wan Service from system... if poll data no longer needed...
cd /opt/vertica/bin
./vsql -Udauser -w
(will prompt for dauser password)
drop table NRM_3G_WAN_SERVICE_rate cascade;
drop table NRM_3G_WAN_SERVICE_ltd cascade;
drop table NRM_3G_WAN_SERVICE_eqd cascade;
drop table NRM_3G_WAN_SERVICE_gtd cascade;
drop table NRM_3G_WAN_SERVICE_hourly_baselines cascade;
drop table NRM_3G_WAN_SERVICE_daily_metrics_base cascade;
create table cleancomponents(item_id int);
insert into cleancomponents select item_id from v_item_facet where facet_qname='{http://im.ca.com/inventory}3GWAN';
delete from item where item_id in (select item_id from cleancomponents);
delete from poll_item where item_id in (select item_id from cleancomponents);
delete from item_facet where item_id in (select item_id from cleancomponents);
drop table cleancomponents;
commit;
\q (to exit vsql)
Nightly cleanup should cleanup the rest of the tables for the items we removed.
To enable debug for odata2 in 25.4.4+:
Add the following lines to the /opt/IMDataAggregator/config/log4j2.properties file.
# added to debug odata2
logger.OData2.name = com.ca.im.odata2.vertica.impl.SQLRepositoryClientBase
logger.OData2.level = DEBUG
logger.OData2.additivity = false
logger.OData2.appenderRef.odata.ref = odata
# end of odata2
Output is written to:
/opt/IMDataAggreagtor/data/logs/OpenAPI.log