Skip to content

fix(packer/linux): disable unattended-upgrades to prevent job interruptions#192

Merged
skipi merged 6 commits intorenderedtext:masterfrom
CleverTap-SNE:fix-unattended-upgrades
Feb 3, 2026
Merged

fix(packer/linux): disable unattended-upgrades to prevent job interruptions#192
skipi merged 6 commits intorenderedtext:masterfrom
CleverTap-SNE:fix-unattended-upgrades

Conversation

@Yashprime1
Copy link
Copy Markdown
Contributor

Disable unattended-upgrades and apt timers to prevent mid-job interruptions. Library upgrades (e.g., libglib2.0) trigger libc-bin processing which causes systemd to restart services, sending SIGTERM to semaphore-agent and killing running CI jobs.

  • Disable apt-daily.timer and apt-daily-upgrade.timer
  • Stop unattended-upgrades service
  • Configure apt to disable automatic upgrades
  • Add documentation explaining the change

…ptions

Disable unattended-upgrades and apt timers to prevent mid-job
interruptions. Library upgrades (e.g., libglib2.0) trigger libc-bin
processing which causes systemd to restart services, sending SIGTERM
to semaphore-agent and killing running CI jobs.

- Disable apt-daily.timer and apt-daily-upgrade.timer
- Stop unattended-upgrades service
- Configure apt to disable automatic upgrades
- Add documentation explaining the change
@dexyk
Copy link
Copy Markdown
Contributor

dexyk commented Feb 3, 2026

/sem-approve

@Yashprime1
Copy link
Copy Markdown
Contributor Author

@dexyk can you let me know the failure reason ?

@skipi
Copy link
Copy Markdown
Member

skipi commented Feb 3, 2026

👋🏻 Can we also disable unattended-upgrades at instance launch time (not just during AMI build)? This would ensure consistency between the baked AMI and running instances. Simply purging the package should cover all cases - it removes the service, timers, and config files in one task:

- name: Remove unattended-upgrades package
  ansible.builtin.apt:
    name: unattended-upgrades
    state: absent
    purge: yes
  tags:
    - disable_unattended

This is simpler than the current approach of stopping services + writing config files, and achieves the same result.

Yashprime1 and others added 2 commits February 3, 2026 17:11
Replace multi-step approach (stopping services, disabling timers, writing
config files) with single package purge. Also add purge at instance launch
to ensure consistency between baked AMI and running instances.
@skipi
Copy link
Copy Markdown
Member

skipi commented Feb 3, 2026

@Yashprime1 can we add this info to the PR?

@skipi
Copy link
Copy Markdown
Member

skipi commented Feb 3, 2026

/sem-approve

@skipi
Copy link
Copy Markdown
Member

skipi commented Feb 3, 2026

@Yashprime1 I've submitted one more PR

Change purge option from 'yes' to 'true'
@skipi
Copy link
Copy Markdown
Member

skipi commented Feb 3, 2026

/sem-approve

@skipi skipi merged commit 852312e into renderedtext:master Feb 3, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants