You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I create a new hardware, template and workflow, I expect to tink-server to match the worker mac address in pg with the provided mac address in the workflow request regardless the case sensitivity, as mac addresses are not case sensitive.
Current Behaviour
tink-server fails to fetch the worker even though it has the same mac address but it is upper case.
Possible Solution
Due to the merge of this PR #279, the mac address of the hardware data will be lowered and then persisted to avoid comparisons problems. However, if the you are creating a workflow based on the worker id, instead of the mac address(as the grpc client would do) it will fail to create the workflow. I opened a PR which should solve the issue:
Steps to Reproduce (for bugs)
1.create hardware data
2.create template data(add the worker mac address and with upper case letters)
3.create a workflow using the template and hardware id
4. Workflow won't be created as this method here will fail to match and fetch mac addresses, because of the case sensitivity:
Expected Behaviour
When I create a new hardware, template and workflow, I expect to tink-server to match the worker mac address in pg with the provided mac address in the workflow request regardless the case sensitivity, as mac addresses are not case sensitive.
Current Behaviour
tink-server fails to fetch the worker even though it has the same mac address but it is upper case.
Possible Solution
Due to the merge of this PR #279, the mac address of the hardware data will be lowered and then persisted to avoid comparisons problems. However, if the you are creating a workflow based on the worker id, instead of the mac address(as the grpc client would do) it will fail to create the workflow. I opened a PR which should solve the issue:
Steps to Reproduce (for bugs)
1.create hardware data
2.create template data(add the worker mac address and with upper case letters)
3.create a workflow using the template and hardware id
4. Workflow won't be created as this method here will fail to match and fetch mac addresses, because of the case sensitivity:
tink/db/workflow.go
Line 686 in 89f7a80
Context
Your Environment
Operating System and version (e.g. Linux, Windows, MacOS):
How are you running Tinkerbell? Using Vagrant & VirtualBox, Vagrant & Libvirt, on Packet using Terraform, or give details:
Link to your project or a code example to reproduce issue:
The text was updated successfully, but these errors were encountered: