When upgrading DX NetOps Performance Management Data Aggregator using a non-root installation owner, existing customizations in the DeviceTypes.xml file are overwritten and reverted to the factory default (baseline) version.
Symptoms
/opt/IMDataAggregator/data/custom/devicetypes/DeviceTypes.xml shows a timestamp corresponding to the upgrade time.Observed on:
A product defect (DE191700) in the upgrade installer logic fails to preserve the contents of the data/custom/devicetypes directory during the upgrade process when executed by a non-root user. This results in the installer deploying the default XML configuration over the user's customized file.
This issue is currently under investigation by Engineering under defect DE191700. A formal fix is targeted for a future release of DX NetOps Performance Management.
To restore your customizations and prevent data loss during future upgrades, follow these steps:
DeviceTypes.xml to the following directory: /opt/IMDataAggregator/data/custom/devicetypes/chown [user]:[group] /opt/IMDataAggregator/data/custom/devicetypes/DeviceTypes.xmlBefore performing any future upgrades in a non-root environment, always take a manual backup of the custom directory:
cp -rp /opt/IMDataAggregator/data/custom /opt/IMDataAggregator/data/custom_backup_$(date +%F)