Skip to content

[code sync] Merge code from sonic-net/sonic-host-services:202605 to 202608 - #20

Merged
mssonicbld merged 2 commits into
Azure:202608from
mssonicbld:sonicbld/202608-merge
Aug 14, 2026
Merged

mssonicbld merged 2 commits into
Azure:202608from
mssonicbld:sonicbld/202608-merge

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator
* 5dd4ff3 - (origin/202605) Fix device_metadata_handler to ignore non-localhost key data event (#424) (2026-08-14) [mssonicbld]<br>```

mssonicbld and others added 2 commits August 14, 2026 10:15
…424)

What I did:
I updated device_metadata_handler in hostcfgd so that hostname, timezone, and rsyslog handling run only when the CONFIG_DB notification is for the localhost row. For any other DEVICE_METADATA key (for example bmc), the handler logs once at INFO and returns without calling hostname_update, timezone_update, or rsyslog_config.

Why I did it:
DEVICE_METADATA can have multiple keys; host settings live under localhost, while BMC fields live under bmc. The handler used to ignore the row key and always ran hostname logic, so bmc updates passed a dict without hostname, which produced ERR (“Hostname was not updated: Empty not allowed”).

How to verify
Change DEVICE_METADATA|bmc and confirm no "ERR Empty not allowed" in syslog.

Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>
@mssonicbld
mssonicbld merged commit e590a35 into Azure:202608 Aug 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant