Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

OneFuzz CLI command onefuzz status pool <pool_name> fails #1730

Closed
jagunter opened this issue Mar 29, 2022 · 5 comments · Fixed by #2551
Closed

OneFuzz CLI command onefuzz status pool <pool_name> fails #1730

jagunter opened this issue Mar 29, 2022 · 5 comments · Fixed by #2551
Assignees
Labels
bug Something isn't working

Comments

@jagunter
Copy link
Member

jagunter commented Mar 29, 2022

Version: 5.2.0 (both API and CLI)

Running onefuzz status pool <pool_name> consistently fails with the following error:

onefuzz status pool <pool_name>
ERROR:cli:command failed: too many values to unpack (expected 2)

AB#39993806

@jagunter jagunter added the bug Something isn't working label Mar 29, 2022
@ghost ghost added the Needs: triage label Mar 29, 2022
@stishkin
Copy link
Contributor

➜ ./onefuzz.exe --version
onefuzz.exe 5.2.0

➜ .\onefuzz.exe status pool "default"
{
"node_state": {
"free": 20
},
"tasks": {}
}

I could not repro on Windows from powershell

@jagunter what OS and shellS are you using ?

@jagunter
Copy link
Member Author

This is on Ubuntu 18.04 (via WSL). Apologies should have noted that earlier. Testing further, it appears only some pools are affected.

@jagunter
Copy link
Member Author

jagunter commented Mar 29, 2022

Confirmed I observe the same issue on PowerShell on at least one pool. Another pool I was testing earlier no longer appears to be impacted.

PS:11 > onefuzz status pool <pool_name>
ERROR:cli:command failed: too many values to unpack (expected 2)

@jagunter
Copy link
Member Author

Running the query with -vvv reveals the issue in the stack trace:

ERROR:cli:traceback: Traceback (most recent call last):
ERROR:cli:traceback:   File "$HOME/.pyvenv/onefuzz/lib/python3.10/site-packages/onefuzz/cli.py", line 586, in execute_api
ERROR:cli:traceback:     result = call_func(args.func, args)
ERROR:cli:traceback:   File "$HOME/.pyvenv/onefuzz/lib/python3.10/site-packages/onefuzz/cli.py", line 74, in call_func
ERROR:cli:traceback:     return func(**myargs)
ERROR:cli:traceback:   File "$HOME/.pyvenv/onefuzz/lib/python3.10/site-packages/onefuzz/status/cmd.py", line 49, in pool
ERROR:cli:traceback:     task_id, _task_state = entry
ERROR:cli:traceback: ValueError: too many values to unpack (expected 2)
ERROR:cli:traceback:
ERROR:cli:command failed: too many values to unpack (expected 2)

The query likely succeeds when there are no tasks in the pool to unpack.

@jagunter
Copy link
Member Author

Issue is still present in 5.16.0

@ghost ghost locked as resolved and limited conversation to collaborators Nov 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants