Skip to content

Writable common config changes require multiple API calls to take effect #879

@FelixTing

Description

@FelixTing

🐞 Bug Report

Affected Services [REQUIRED]

The issue is located in: EdgeX services

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Description and Minimal Reproduction [REQUIRED]

Minimal Reproduction:

  1. Deploy core services and device-virtual
  2. Use Core Keeper API to update a common writable configuration key. For example:
curl -X PUT http://localhost:59890/api/v3/kvs/key/edgex/v4/core-common-config-bootstrapper/all-services/Writable/Telemetry/Interval \
  -H "Content-Type: application/json" \
  -d '{"value": "20s"}'
  1. Observe the service logs
level=WARN ts=2025-07-02T09:36:30.330645+08:00 app=device-virtual source=config.go:931 msg="ignoring changed writable key InsecureSecrets overwritten in App or Device common writable"
  1. Re-run the same API call two or more times
level=WARN ts=2025-07-02T09:36:30.330645+08:00 app=device-virtual source=config.go:931 msg="ignoring changed writable key InsecureSecrets overwritten in App or Device common writable"
level=WARN ts=2025-07-02T09:36:35.029100043+08:00 app=device-virtual source=config.go:940 msg="ignoring changed writable key LogLevel overwritten in private writable"
  1. Only after multiple calls does the device-virtual service finally accept the change and log:
level=INFO ts=2025-07-02T09:36:38.360262503+08:00 app=device-virtual source=config.go:990 msg="Writable configuration has been updated from the Configuration Provider"
level=INFO ts=2025-07-02T09:36:38.360302837+08:00 app=device-virtual source=config.go:1013 msg="Telemetry interval has been updated. Processing new value..."
level=INFO ts=2025-07-02T09:36:38.360326128+08:00 app=device-virtual source=manager.go:47 msg="Metrics Manager report interval changed to 20s"

🌍 Your Environment

EdgeX Version [REQUIRED]: main

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Palau Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions