Skip to content
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

[Bug] - Self-update updates when already current on a fresh install. #812

Closed
rrehbein opened this issue Oct 9, 2024 · 1 comment
Closed

Comments

@rrehbein
Copy link

rrehbein commented Oct 9, 2024

Describe the bug
Self-update will update the agent when the agent is already the same version as latest version.

To Reproduce
Steps to reproduce the behavior:

  1. Enable SSM self-update in AWS Console.
  2. Start a new AL2023 instance with user-data
#!/bin/sh
yum install -y https://s3.us-east-1.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
systemctl enable amazon-ssm-agent.service --now
  1. Check ssm logs around the term updateSsmAgent

Expected behavior

Update-agent to skip installing a 'newer' version when the current version and the latest version are the same version.

Actual

Snippets of amazon-ssm-agent.log

2024-10-09 08:26:22.3216 INFO [ssm-agent-worker] [StartupProcessor] Write to serial port:
    Amazon SSM Agent v3.3.859.0 is running
... snip ...
2024-10-09 08:26:22.3420 INFO [ssm-agent-worker] ssm-agent-worker - v3.3.859.0
... snip ...
2024-10-09 08:26:32.3227 INFO [ssm-document-worker] [b0382a5d-000d-46d4-abf9-64fd78148ef4]
    [DataBackend] [pluginName=aws:updateSsmAgent] UpdateS3Util Latest updater version is 3.3.859.0
... snip ...
2024-10-09 08:26:32.5475 INFO [ssm-document-worker] [b0382a5d-000d-46d4-abf9-64fd78148ef4]
    [DataBackend] [pluginName=aws:updateSsmAgent] Start Installation

Observed this while trying to workaround the issues in #397

@rrehbein
Copy link
Author

rrehbein commented Oct 9, 2024

Sorry, wrong project.

@rrehbein rrehbein closed this as completed Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant