Bug 1576557 - non-root user presented with cryptic error "No GPG-verified eggs can be found"
Summary: non-root user presented with cryptic error "No GPG-verified eggs can be found"
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: insights-client
Version: 7.6
Hardware: All
OS: Linux
Target Milestone: rc
: 7.6
Assignee: jcrafts
QA Contact: Jeff Needle
: 1716934 (view as bug list)
Depends On:
Blocks: 1122832 1730798 1735925
TreeView+ depends on / blocked
Reported: 2018-05-09 18:13 UTC by Aaron Weitekamp
Modified: 2020-06-10 13:13 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1730798 1735925 (view as bug list)
Last Closed: 2020-06-10 13:13:40 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Aaron 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:

Comment 6 Jeff Needle 2019-06-04 12:31:43 UTC
*** Bug 1716934 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.