Issues while adding a trusted client through token

Heyhey,

Trying to trust my desktop as a remote client on my server but no matter the name I pick, I get the error “Client is already trusted” when running lxc config trust add on the server

~
root @ epyc # lxc version
Client version: 5.1
Server version: 5.1

~
root @ epyc # lxc config trust ls
+------+------+-------------+-------------+------------+-------------+
| TYPE | NAME | COMMON NAME | FINGERPRINT | ISSUE DATE | EXPIRY DATE |
+------+------+-------------+-------------+------------+-------------+

~
root @ epyc # lxc config trust add
Please provide client name: 23wersdf23wre
Error: Client is already trusted

I wish to do this: Remote API authentication - LXD documentation

Hi Daniel, I was able to reproduce the problem so I reported it:

Thanks for letting us know about it!

Always a pleasure :yum:

Kind of related. Now trying via trust_password I also run into a non-descriptive error

server:

root @ epyc # lxc config set core.trust_password=QUyLH9mReRueF2k

client:

PS C:\WINDOWS\system32> lxc remote add epyc 192.168.178.5 --password QUyLH9mReRueF2k
Error: not found

both run 5.1

I can’t reproduce the Error: not found with the snap on Linux (5.1-4ae3604). Please report this as another issue on GitHub: Sign in to GitHub · GitHub