OmniNRF Troubleshooting
An NF vanished from discovery even though it is running
Almost always missed heartbeats. If an NF does not send a PATCH heartbeat within heartbeat_timeout (default 30 s), the background sweep expires it and it disappears from both retrieval and discovery. Check the NRF logs for NRF: Expiring stale NF instance {id}, and confirm the NF is heartbeating well inside the timeout. Raising HEARTBEAT_TIMEOUT gives more slack; the NF should also honour the heartBeatTimer returned in its registration response.
Registration rejected with 400
The NFProfile is missing a mandatory element or contains a malformed one. The NRF requires both nfType and at least one reachability address (fqdn, ipv4Addresses, or ipv6Addresses). A 400 with MANDATORY_IE_MISSING means nfType/nfStatus were absent from the PUT body; a 400 whose detail mentions reachability means no address was supplied.
Beyond those mandatory elements, the NRF also enforces deep structural validation of the rest of the profile and returns a 400 with cause MANDATORY_IE_INCORRECT when a present element is malformed (per TS 29.510). Common causes:
nfServices: each service needs aserviceInstanceId, aserviceName, a validscheme, a validnfServiceStatus, and a non-emptyversionsarray where each entry carriesapiVersionInUri.sNssais: each entry needs an integersstin the range 0 to 255, and ansd(when present) of exactly 6 hex digits.plmnList: entries must be well-formed PLMN objects.capacityandprioritymust be integers in the range 0 to 65535;loadmust be an integer in the range 0 to 100.
Absent optional elements are accepted; only a present-but-malformed element is rejected. The 400 detail names the offending field, so it points directly at what to correct.
PATCH rejected with 415 Unsupported Media Type
The PATCH Content-Type was set to something other than application/json-patch+json. Either send that media type for JSON-Patch updates, or send a genuinely empty heartbeat (no Content-Type is tolerated for heartbeats).
Update/heartbeat/delete returns 404
The nfInstanceId is not in the registry, typically because the NF was already aged out for missed heartbeats, or it never completed registration. Re-register with a PUT before patching or heartbeating.
PUT/PATCH returns 412 Precondition Failed
An If-Match header was sent whose ETag does not match the currently stored profile (the profile changed underneath the client). Re-GET the instance to obtain the current ETag, then retry.
Discovery returns an empty nfInstances list
- Confirm the target NF is registered and its stored
nfStatusisREGISTERED(only registered NFs are returned). target-nf-typeis matched case-sensitively against the storednfType.- If
plmn-id,snssais, ordnnfilters are supplied, verify they are well-formed and that the target NF's profile actually advertises them (an NF that advertises none of a given attribute matches any value for it). - Ensure
requester-nf-typeis present. Its absence yields 400, not an empty list.
Status notifications are not being received
- Confirm
nfStatusNotificationUriin the subscription is reachable from the NRF host. - Delivery uses a bounded retry with exponential backoff (up to
notification_max_attemptstries, default 4, with a base delay ofnotification_backoff_ms, default 500 ms, doubling each retry). A retry is logged asNRF: Retrying status notification to .... If every attempt fails, the NRF gives up and logsNRF: Giving up status notification to ... after N attempts. Search the NRF logs for those two lines to see whether delivery was retried and eventually abandoned. - If
subscrCond.nfTypeis set, only status changes for that NF type are delivered.
Registry is empty after an NRF restart
Expected. The NF and subscription stores are in-memory (ETS). After a restart the registry repopulates as NFs re-register on their next registration/heartbeat cycle; there is no persistence to reload.