Fixed
Details
Assignee
Alex MayAlex MayReporter
Patrick SchweizerPatrick SchweizerSprint
NoneFix versions
Priority
Minor
Details
Details
Assignee
Alex May
Alex MayReporter
Patrick Schweizer
Patrick SchweizerSprint
None
Fix versions
Priority
PagerDuty
PagerDuty
PagerDuty
Created October 5, 2022 at 5:41 PM
Updated March 20, 2023 at 4:52 PM
Resolved October 25, 2022 at 7:17 PM
Background
Folow up ticket from https://opennms.atlassian.net/browse/NMS-14684#icft=NMS-14684
OpenNMS has a system id, stored in the table monitoringSystems.
It is accessed via DistPollerDaoHibernate.whoami() and exposed via OIA: RuntimeInfo.getSystemId()
Historically the id was always 00000000-0000-0000-0000-000000000000. With https://github.com/OpenNMS/opennms/pull/5216 we allowed to use any UUID. It can now manually be set via:
Update monitoringsystems set id=gen_random_uuid () where id = '00000000-0000-0000-0000-000000000000' AND type='OpenNMS' AND location='Default'
Goal
Going forward we want any new install of OpenNMS to have a unique system id.
Nice to have: a manual? migration path (e.g. description?) for existing systems that want to change their current system id to a UUID.
Business Reason
Within TSAAS we use the system id for logging. It will be easier for customers to interpret the logs.