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

Don't enable apt-daily services, just the timers #7299

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

legoktm
Copy link
Member

@legoktm legoktm commented Oct 29, 2024

Status

Ready for review

Description of Changes

By enabling the services, it means it runs every time the machine boots, defeating the point of the timer.

Similarly, starting the service/timer means that it starts running while the playbook is still going, which might also explain the dpkg lock contention (#7258).

Ansible will now just ensure the units are unmasked and the securedrop-config postinst will disable the services if enabled.

Fixes #7298.

Testing

How should the reviewer test this PR?

  • visual review
  • staging CI passes

Deployment

  1. Upgrading existing production instances - handled by securedrop-config postinst
  2. New installs - handled by ansible logic

Checklist

@legoktm legoktm requested a review from a team as a code owner October 29, 2024 16:23
By enabling the services, it means it runs every time the machine boots,
defeating the point of the timer.

Similarly, starting the service/timer means that it starts running while
the playbook is still going, which might also explain the dpkg lock
contention (#7258).

Ansible will now just ensure the units are unmasked and the
securedrop-config postinst will disable the services if enabled.

Fixes #7298
@legoktm
Copy link
Member Author

legoktm commented Oct 29, 2024

(This isn't on the critical path for noble, so I'll fix it up later.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

We shouldn't enable apt-daily service units
1 participant