Files
屈轩andioito 2c11c5cc05 fix(monitor): sync model sets from the region API instead of apimap (#26231)
The apimap rework (1eb6fb1b00) made the apimap service the default sync
source for APIHelper, gated on FetchFromComputeService.  vpcagent,
lbagent and the apimap service itself were adapted, but the monitor
worker was left on the apimap path while MonitorResModelSets does not
implement IAPIMapModelSets: every hourly tick failed with

    doSync error: model sets *models.MonitorResModelSets cannot be
    fetched from apimap

and the ModelSets() channel never delivered, so monitor resource sync
has been a no-op since then.  The apimap service only ever publishes
the agents' network model sets, so fetch the monitor model sets from
the region API as before.

The cloudproxy agent worker has the same latent defect (proxy endpoints
and forwards are not served by apimap either); fix it the same way.

Co-authored-by: ioito <ioito@users.noreply.github.com>
2026-11-18 15:53:27 +08:00
..
2022-11-25 17:36:09 +08:00