aws / aws/amazon-ssm-agent

Updating from Ubuntu 20.04.1 to 22.04.19 broke SSM link

Open
#567 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.2k
Forks
357
PR merge metrics
No merged PRs in 30d

Description

# Problem:
After updating from Ubuntu 20.04.1 to 22.04.19 my host began failing to connect to AWS Systems Manager. Notably with the following error:
https://github.com/aws/amazon-ssm-agent/blob/0117b6eb82282b50acc4299f8066efeffc509a7c/agent/managedInstances/fingerprint/fingerprint.go#L301

I also had the following warnings:
```
WARN [OnPremCredsProvider] The 'IP Address' value (REDACTED) has changed from the registered machine configuration value (REDACTED).
WARN [OnPremCredsProvider] The 'processor-hash' value (REDACTED) has changed from the registered machine configuration value (REDACTED).
WARN [OnPremCredsProvider] The 'ipaddress-info' value (REDACTED) has changed from the registered machine configuration value (REDACTED).
WARN [OnPremCredsProvider] The 'disk-info' value (REDACTED) has changed from the registered machine configuration value (REDACTED).
WARN [OnPremCredsProvider] The 'memory-hash' value (REDACTED) has changed from the registered machine configuration value (REDACTED).
WARN [OnPremCredsProvider] The 'bios-hash' value (REDACTED) has changed from the registered machine configuration value (REDACTED).
WARN [OnPremCredsProvider] The 'system-hash' value (REDACTED) has changed from the registered machine configuration value (REDACTED).
INFO [OnPremCredsProvider] Calculated hardware difference, regenerating fingerprint...
ERROR [CredentialRefresher] Retrieve credentials produced error: MachineFingerprintDoesNotMatch: Fingerprint does not match REDACTED
```

Contributor guide

Open the contributing guide

Research direction

Start at agent/managedInstances/fingerprint/fingerprint.go around line 301 and review how the Ubuntu upgrade changes the reported hardware values in the warning logs. Reproduce the upgrade or compare the fingerprint inputs, then verify that the agent reconnects to AWS Systems Manager without a MachineFingerprintDoesNotMatch error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, go, linux, ubuntu
Domain
backend, cloud, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.