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

Upgrade molecule scenario uses safe-upgrade instead of dist-upgrade #4659

Open
emkll opened this issue Aug 7, 2019 · 1 comment
Open

Upgrade molecule scenario uses safe-upgrade instead of dist-upgrade #4659

emkll opened this issue Aug 7, 2019 · 1 comment

Comments

@emkll
Copy link
Contributor

emkll commented Aug 7, 2019

Description

Molecule upgrade logic uses safe-upgrade [1,3], whereas cron-apt logic on staging/prod instances uses a dist-upgrade[2] .
This was uncovered during the review of #4634, where the securedrop-app-code package would not upgrade using the make upgrade test-local target, and requires manually running the cron-apt command.

[1]


[2]
dist-upgrade -y -o APT::Get::Show-Upgraded=true -o Dir::Etc::SourceList=/etc/apt/security.list -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold

[3] https://docs.ansible.com/ansible/latest/modules/apt_module.html

Steps to Reproduce

Expected Behavior

Upgrade scenario should upgrade packages in the same way the cron-apt logic is.

Actual Behavior

Upgrade scenario uses safe-upgrade instead of dist-upgrade

Comments

Suggestions to fix, any other relevant information.

@conorsch
Copy link
Contributor

conorsch commented Aug 7, 2019

Replacing the apt upgrade call with a command for cron-apt -i -s should resolve. I, too, have been running that command manually in the upgrade scenario—would be great to update the logic so it automatically does the right thing.

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 a pull request may close this issue.

2 participants