Incorrect module affected with Karaf bundle action
Question
In a cluster, when a bundle is stopped/started/uninstalled with bundle ID, sometimes the wrong bundle is affected on another node. What's the best practice for such actions in cluster?
Answer
The bundle IDs need not be the same across all nodes.
The recommendation regarding cluster-wide bundle operations is to use the symbolic-name/version
syntax, rather than using the ID. This would be safer as well, as it's always the same, whereas the IDs can change.
Symbolic IDs of bundles can be retrieved with this command:
cluster:bundle-list -s default