Describe the bug
At install nodeID may contain "-" at setup. The nodeID appears to be the same (unchangable) string used formember / members. While "Refine Cluster" still allows "-" in members, other functions, such as "NetAlias" with "-" in member are rejected as "-" it is not part of the RegExp string.
To Reproduce
Steps to reproduce the behavior
Install libresbc via ansible using nodeID dev-sbc01
Redine Cluster using dev-sbc01 in members [works fine]
Create new NetAlias using dev-sbc01 as member in addresses [ -> undefined ]
2024-08-27T13:35:48.739649+00:00 dev-sbc01 libresbc 159600 INFO space=httpapi, action=middleware, processtime=0.002, requestid=63ec3a16-6622-4123-9305-c73c0d21958c, clientip=192.168.22.203, request=post:/libreapi/base/netalias, status_code=422, response_body={"detail":[{"loc":["body","addresses",0,"member"],"msg":"string does not match regex \"^[a-zA-Z][a-zA-Z0-9_]+$\"","type":"value_error.str.regex","ctx":{"pattern":"^[a-zA-Z][a-zA-Z0-9_]+$"}}]}
Actual behavior
see above
Expected behavior
Either:
Allow "-" in all member / members (preferred)
Disallow "-" in NodeID at Install
Allow member / members to have a different string as NodeID in Configuration (Not sure this is already possible, though did not find any documentation on this)
Log & Screenshots
See above
Additional context
Add any other context about the problem here, such as:
Describe the bug At install
nodeID
may contain "-" at setup. ThenodeID
appears to be the same (unchangable) string used formember
/members
. While "Refine Cluster" still allows "-" inmembers
, other functions, such as "NetAlias" with "-" inmember
are rejected as "-" it is not part of the RegExp string.To Reproduce
members
[works fine]member
inaddresses
[ -> undefined ]2024-08-27T13:35:48.739649+00:00 dev-sbc01 libresbc 159600 INFO space=httpapi, action=middleware, processtime=0.002, requestid=63ec3a16-6622-4123-9305-c73c0d21958c, clientip=192.168.22.203, request=post:/libreapi/base/netalias, status_code=422, response_body={"detail":[{"loc":["body","addresses",0,"member"],"msg":"string does not match regex \"^[a-zA-Z][a-zA-Z0-9_]+$\"","type":"value_error.str.regex","ctx":{"pattern":"^[a-zA-Z][a-zA-Z0-9_]+$"}}]}
Actual behavior
Expected behavior
member
/members
(preferred)member
/members
to have a different string asNodeID
in Configuration (Not sure this is already possible, though did not find any documentation on this)Log & Screenshots
Additional context