litmuschaos/litmusctl

litmusctl set-account doesn't work in non-interactive mode

Closed this issue · 11 comments

Hello all,

it is in regard litmusctl 1.0.0

when I try to configure new account for litmusctl by providing following command

./litmusctl config set-account --endpoint "https://<my_url>" --username "admin" --password "passwd" it's not created immediately and I'm prompted for all parameters again:

✔ Host endpoint where litmus is installed: <my_url>
✔ Username [Default: admin]: █dmin
✔ Password: ******█

and finally got following message:

account.username/admin configured
Error: internal system error

But it seems like account is configured - at least I can schedule workflows etc.

But the problem is that non-interactive mode is not working in litmusctl 1.0.0 and I cannot automate this process.

Thanks in advance,

Thank you @ash-man for reporting this, we will fix this ASAP.

@SarthakJain26 - thank you for prompt response. Do you have any ETA when new version of litmusctl (fixed) can be released ?

We have a release on 15th of every month, so you can expect the fix in the coming release.

@deep-poharkar / @Nageshbansal does any one of you want to pick this up?

Sure

sorry i saw it late @SarthakJain26 let me know if anything @Nageshbansal

@Nageshbansal any updates on this? we can target this release for the fix.

Working on it. Sure, will fix it before the release.

Hello,

I have downloaded latest version of litmusctl (1.1.0) and tested it (I used MacOS version):

./litmusctl version
Litmusctl version: 1.1.0
Compatible ChaosCenter versions:
[ '3.0.0' '3.1.0' '3.2.0' ]

./litmusctl config set-account -e "<my_url>" -u "admin" -p """ --skipSSL
Host endpoint where litmus is installed: <my_url>
Username [Default: admin]: admin
Password: **********

account.username/admin configured
Error: internal system error

So, it seems we have the same issue. Can you please confirm that the fix was included in 1.1.0 ?

Ahh... ok, I see that you have added "-n" flag for non-interactive mode. It works however I can see this error message (still)

account.username/admin configured
Error: internal system error

@ash-man that's the issue with one of the chaos center api. We're working on that while this doesn't interfere with litmusctl.