<< Back to previous view

[QB-3879] [RestAPI] authorized node still in the unauthorized list
Created: 22/Aug/22  Updated: 22/Aug/22

Status: Closed
Project: QuickBuild
Component/s: None
Affects Version/s: 12.0.12
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Bin Wu Assigned To: Robin Shen
Resolution: Won't Fix Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
We try to automation authorized the agent with token feature

the logic is: scan for the "buildagents/unauthorized" to get the agent ip & port
use "tokens/authorize" to register the agent

but the different with operation on the UI, each round register agent (same ip & port & hostname) it will generate the new "id" of agent
the agent can be query from "buildagents/active" and "buildagents/unauthorized"

it almost like when load "tokens/authorize", it is not remove same agent from "buildagents/unauthorized"
or maybe "tokens/authorize" is not query the older id in "buildagents/unauthorized"


 Comments   
Comment by Robin Shen [ 22/Aug/22 10:32 PM ]
This is not a bug. Agents will take a while for being removed from unauthorized list. When authorize agents automatically, you may query ip/port combo to only authorize those not already have tokens assigned.
Generated at Sat Apr 20 03:26:35 UTC 2024 using JIRA 189.