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

Add device id to device_not_found error #2394

Closed
bafonins opened this issue Apr 22, 2020 · 7 comments
Closed

Add device id to device_not_found error #2394

bafonins opened this issue Apr 22, 2020 · 7 comments
Assignees
Labels
c/network server This is related to the Network Server
Milestone

Comments

@bafonins
Copy link
Contributor

bafonins commented Apr 22, 2020

Summary

Currently, NS does not include the device id on device_not_found error. It would be great to have that information included in the error attributes. For example, I get such errors in my gateway data view:

Screenshot 2020-04-22 at 13 22 39

which does not give much information. Would be nice to know which device exactly is not found as I dont see any duplicate errors in the application/device data view.

On the other hand, do we want to expose the device id in the gateway view (hence the discussion label)? Close the issue if not.

Why do we need this?

After #1962 we get more descriptive error events ui:

Screenshot 2020-04-22 at 13 30 32

What is already there? What do you see now?

NS defines the device_not_found error

What is missing? What do you want to see?

device_id attribute similar how AS defines this.

Environment

v3.7.1

How do you propose to implement this?

Adding device id as an attribute to the error definition

Can you do this yourself and submit a Pull Request?

@rvolosatovs

cc @johanstokking

@bafonins bafonins added c/network server This is related to the Network Server needs/discussion We need to discuss this labels Apr 22, 2020
@bafonins bafonins added this to the Next Up milestone Apr 22, 2020
@bafonins bafonins self-assigned this Apr 22, 2020
@rvolosatovs
Copy link
Contributor

Please keep in mind that device_id in this case would either be a DevAddr or JoinEUI:DevEUI pair. Perhaps a better approach would be defining different errors per each case.

@johanstokking
Copy link
Member

Indeed; I think we should simply start with different errors for the type of search, and include that in the attribute.

I think it's easier if @rvolosatovs picks this up as it's a quickfix, but I'll let you coordinate.

@bafonins
Copy link
Contributor Author

bafonins commented Apr 22, 2020

Please keep in mind that device_id in this case would either be a DevAddr or JoinEUI:DevEUI pair.

I guess DevAddr is fine. We actually show it in the v2 console in the gateway traffic view. I guess anything that can be used to identify a device is better than nothing 🤷‍♂️

Perhaps a better approach would be defining different errors per each case.

Fine as well

@bafonins bafonins assigned rvolosatovs and unassigned bafonins Apr 22, 2020
@johanstokking
Copy link
Member

This could be a good "get acquainted with TTS" issue for @jatinssaluja, a deep dive though, but good to consider

@rvolosatovs rvolosatovs removed the needs/discussion We need to discuss this label Apr 22, 2020
@virtualguy
Copy link
Contributor

Wouldn't you consider this to be an info message rather than an error? This could be indicative of normal traffic for a different network rather than an actual issue. IMHO having this as an ERROR or WARN is just noise and congests the logs and console

@rvolosatovs
Copy link
Contributor

Wouldn't you consider this to be an info message rather than an error? This could be indicative of normal traffic for a different network rather than an actual issue. IMHO having this as an ERROR or WARN is just noise and congests the logs and console

In terms of logging I agree, but we do need to trigger an event when this happens for debugging purposes at least. Event infrastructure does not differentiate between logging levels and console just simply shows the events triggered.

@bafonins
Copy link
Contributor Author

@virtualguy We are planning to support filtering events in the console (#2231). With this feature in place you will be able to filter out events you are not interested in.

@johanstokking johanstokking modified the milestones: Next Up, Backlog Aug 24, 2020
rvolosatovs pushed a commit to rvolosatovs/lorawan-stack-fork that referenced this issue Nov 18, 2020
…ture/2247-as-tenant-lookup-optimizations

Tenant billing information lookup optimizations
@htdvisser htdvisser added the needs/triage We still need to triage this label Jun 3, 2021
@nejraselimovic nejraselimovic removed the needs/triage We still need to triage this label Jun 7, 2021
@nejraselimovic nejraselimovic modified the milestones: Backlog, 2021 Q4, 2021 Q3 Jun 7, 2021
@kschiffer kschiffer assigned adriansmares and unassigned bafonins Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/network server This is related to the Network Server
Projects
None yet
Development

No branches or pull requests

8 participants