Following an upgrade of a Smarts NCM Device Server (DS) to version 25.4.6, the commmgr service (CommMgr) fails to initialize or enters a restart loop. The logs indicate a fatal error during the parsing of device operations:
System logs may also show SELinux blocking the voyence service execution:
SELinux is preventing /usr/bin/bash from execute access on the file /opt/smarts-ncm/bin/service/voyenceThis issue occurs when a customized package file, specifically CiscoApicSwitch.pkg, contains a syntax error (such as a stray < character).
Because BasicOperations.dop references these package files, a syntax error in the customized package causes the parsing of the entire device operation set to fail, leading to a fatal service shutdown.
SELinux interference may also prevent the service from executing its bash scripts properly after an upgrade.
To resolve the commmgr startup failure, follow these steps to correct the package file and verify the environment:
CiscoApicSwitch.pkg file for editing.< character or any unclosed tags that were introduced during customization.CiscoApicSwitch.pkg file is identical on both the Application Server (AS) and the Device Server (DS).This command will make changes to your system. Review it carefully before running.
getenforceEnforcing, set it to Permissive to confirm if it is blocking service execution: setenforce 0/usr/bin/bash to execute the /opt/smarts-ncm/bin/service/voyence script.This command will make changes to your system. Review it carefully before running.
commmgr.log to confirm the service successfully parses the operations and remains stable.