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
@legoktm legoktm force-pushed the stg-disable-apt-daily branch from 64eab75 to ff00081 Compare October 29, 2024 17:22
@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.)

@legoktm legoktm force-pushed the stg-disable-apt-daily branch 2 times, most recently from 41f7496 to b2d6ebe Compare November 23, 2024 00:37
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 legoktm force-pushed the stg-disable-apt-daily branch from b2d6ebe to 3730228 Compare November 23, 2024 01:05
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