DescriptionAaron Weitekamp
2018-05-09 18:13:52 UTC
Description of problem:
insights-client CLI returns cryptic error message when run as non-root.
[cloud-user@localhost] $ insights-client --register
No GPG-verified eggs can be found
[cloud-user@localhost] $ sudo insights-client --register
... (success)
Version-Release number of selected component (if applicable):
$ sudo insights-client --version
Client: 3.0.3-9
Core: 3.0.4-3
How reproducible:
when using CLI as non-root user
Steps to Reproduce:
1. Login or SSH to system as non-root, e.g. cloud-user
2. run insights-client without sudo
Actual results:
No matter what args/options CLI exits with 1: "No GPG-verified eggs can be found"
Expected results:
1. Help should always be returned regardless of user permission, e.g. insights-client -h
2. If user does not have required permissions then display helpful error, such as "insights-client must be run as root user"
Additional info: