-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elastic agent version 8.11.2 upgrade with agent binary download through proxy failed #4151
Comments
This doesn't immediately look like a bug in the agent itself. I'd suggest you continue troubleshooting this in https://discuss.elastic.co/c/elastic-stack/elastic-agent/91?page=1 which has a much wider audience. For now I'll close this, please re-open if you confirm this isn't working properly. |
for the record, i had the opportunity to run into what appears the same issue.
The commonality seems the 8.11.2. version. I'm sure i had previously upgraded those VM's agents from a lower version, but then they just didn't want to make the jump anymore. I don't know if it needed to access a GPG keyserver or import a new key. It says something like using default key. but it seems very likely. The error handling must fall through to the GPG failure in too many cases (download failure of the actual agent as well as the GPG signature check. I would also argue that it is overkill to wipe the tar.gz if you can't validate due to a validation process failure vs. a FAILED validation. It's 500 meg after all. could burn through a network on a large scale. FTR: Here I ran
Getting me two installed keys and a further failed verification
it seems quite illogical. edit: the workaround seems horrendous though. In case someone from Elastic sees this: |
Kibana Build details:
note:
192.168.1.115:9330
is my lab fleet server and service portDescribe the bug:
following the official doc:https://www.elastic.co/guide/en/fleet/current/fleet-agent-proxy-managed.html
I simulate a environment that the Elastic agent can only communicate to fleet、elasticsearch and upgrade through proxy,
control and data traffic is fine, I can manage elastic agent with fleet, and receive data, also.
but when I try to upgrade elastic agent(v8.11.2), it failed.
I configure the elastic agent log level to "debug" and re-upgrade to find out what's going on:
accroding to official doc:https://www.elastic.co/guide/en/fleet/8.11/release-notes-8.11.0.html#bug-fixes-8.11.0
I know there is a mechanism elastic agent will download pgp key from fleet if the GPG URL is unreachable, and also it seems a name lookup problem, therefore I install the root CA on the host which I install elastic agent, and also resolve name lookup problem, and go on the second upgrade test.
this is where I got stuck now, seems the lookup problem is solved, but got no data, and still download failed,
to make sure there is no misconfigured with network,
I run powershell cmdlet: invoke-webrequest on the same host which I install elastic agent to download pgp key, it success.
I understand this functionality is in beta, but still try to figure out is this my problem or a bug,
if anyone want more detail, please let me know,
sincerely,
The text was updated successfully, but these errors were encountered: