-
Notifications
You must be signed in to change notification settings - Fork 161
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
device registry - device lifecycle test scenario may fail for some network configurations #1237
Comments
The main problem that is highlighted by this issue is that Kapua tries to insert a (potentially long, as is the presented case) list of IPs into a relatively short (64 characters) field. |
As for Kura protocol, metrics
in the payload of the birth message can contain multiple interfaces and IPs. |
I experienced the same issue in an integration environment, where several docker images where running on to the gateway and it was really frustrating. I will support @andrejn-ct that this is not tied to a specific test case and easily can occur in production environment. The failed insert results into a failure to register the device. It does not show up in Kapua UI and can not be controlled via REST API ! |
I think that we can extend the Device model to improve the managing of the "device profile". For example a device will have a DeviceProfile entity linked. |
Testflow:
This bug happened running the integration tests (qa) in a machine connected to the network through a mobile internet router but it can also happen in other cases when the number of interfaces and ip address exceeds the size of the corresponding fields in the device table.
Result:
The test fails, reporting the follwing error:
The list of interfaces and the list of ip addresses are build by kapua-simulator-kura project in class BirthCertificateBuilder which correctly collects all the available information from the system where it is running. The simulator is used by the tests to generate and send a birth certificate to the Kapua messaging service which in turn tries to create a new registry entry and stick that info in a 64 char field.
Expected behaviour:
The test should succeed.
The text was updated successfully, but these errors were encountered: