Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

counter can not turn on #155

Open
fwt11 opened this issue Dec 27, 2023 · 1 comment
Open

counter can not turn on #155

fwt11 opened this issue Dec 27, 2023 · 1 comment

Comments

@fwt11
Copy link

fwt11 commented Dec 27, 2023

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

        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.

@hkm15022001
Copy link

I also have the same problem, my kubeedge-pi-counter does not print a single log line, while kubeedge-web-controller works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants