-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Describe the bug 🪲
If you call /api/v1/amt/power/state/{guid} when a device is CIRA disconnected, but MPS has not yet updated the state (has not yet timed out and connectionStatus is still true) then MPS doesn't timeout and does not return a proper status code.
To Reproduce 🪜
Steps to reproduce the behavior:
- Activate device in CCM / CIRA
- Connect device
- Remove network cable
- In less than 90 seconds, call /api/v1/amt/power/state/{guid}
Expected behavior
API should timeout in a reasonable time (15 seconds?) and respond with a proper status code (404?).
Screenshots 🖼️
If applicable, add screenshots to help explain your problem.
AMT Device (please complete the following information): 🖥️
- OS: [e.g. Linux Kernel & Version]
- AMT Version: [e.g. 11.8.5, 12.0.45]
- AMT Configuration Mode: [e.g. Admin Control Mode or Client Control Mode]
- Network Configuration [e.g. Dynamic IP or Static IP]
Service Deployment (please complete the following information): ⛈️
- Deployment Type: [e.g. Azure, Docker, K8s]
- Node Version: [e.g. LTS 14]
- Component & Version: MPS version 2.13.10.
Additional context
Here is the code we suspect is missing the timeout.
https://github.com/open-amt-cloud-toolkit/mps/blob/bb713a3e62f4d0abcbb98923892ba1ad7a699c6a/src/routes/amt/getPowerState.ts#L15
Metadata
Metadata
Labels
Type
Projects
Status
Status