counter can not turn on
- Dominant language
- Go
- Stars
- 269
- Forks
- 174
- PR merge metrics
- No merged PRs in 30d
Description
After i created device model and device instance for counter, I got this with `kubectl get device counter -ojson`
```{
"apiVersion": "devices.kubeedge.io/v1beta1",
"kind": "Device",
"metadata": {
"annotations": {
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"devices.kubeedge.io/v1alpha2\",\"kind\":\"Device\",\"metadata\":{\"annotations\":{},\"labels\":{\"description\":\"counter\"},\"name\":\"counter\",\"namespace\":\"default\"},\"spec\":{\"deviceModelRef\":{\"name\":\"counter-model\"},\"nodeSelector\":{\"nodeSelectorTerms\":[{\"matchExpressions\":[{\"key\":\"kubernetes.io/hostname\",\"operator\":\"In\",\"values\":[\"vm-68-m\"]}]}]}},\"status\":{\"twins\":[{\"desired\":{\"metadata\":{\"type\":\"string\"},\"value\":\"ON\"},\"propertyName\":\"status\",\"reported\":{\"metadata\":{\"type\":\"string\"},\"value\":\"0\"}}]}}\n"
},
"creationTimestamp": "2023-12-27T09:29:46Z",
"generation": 1,
"labels": {
"description": "counter"
},
"name": "counter",
"namespace": "default",
"resourceVersion": "642280",
"uid": "7f24f748-115f-4e19-b253-0b970ac62649"
},
"spec": {
"deviceModelRef": {
"name": "counter-model"
}
},
"status": {
"twins": [
{
"propertyName": "status",
"reported": {
"metadata": {
"type": "string"
},
"value": "0"
}
}
]
}
}
```
there is no
``` desired:
metadata:
type: string
value: 'OFF'` # or `ON`
```
and the thus the counter can not be `ON`.
There is nothing output from the kubeedge-pi-counter app on the edge node.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing with `kubectl get device counter -ojson` and inspect the counter-model and device manifests alongside output from the kubeedge-pi-counter app on the edge node. Trace why the status contains only reported data and not the expected desired value; done means the counter can be switched ON or OFF and the command shows the corresponding desired state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- devops, embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100