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

1804: issues regarding puppet repo deb removing versions #315

Closed
aerickson opened this issue Jun 4, 2021 · 0 comments · Fixed by #316
Closed

1804: issues regarding puppet repo deb removing versions #315

aerickson opened this issue Jun 4, 2021 · 0 comments · Fixed by #316
Assignees

Comments

@aerickson
Copy link
Member

aerickson commented Jun 4, 2021

In #219 (first production commit for 18.04), the puppet code installed the unversioned puppet release deb (https://apt.puppetlabs.com/puppet-release-bionic.deb).

Around #285, the https://apt.puppetlabs.com/puppet-release-bionic.deb eliminated the 6.x versions and switched to 7.0. This caused an unexpected upgrade... so we pinned puppet to 7.5 in #285.

Imaging was broken as of #285, but discovered in https://bugzilla.mozilla.org/show_bug.cgi?id=1711763. The code would try to install puppet 7 before the repo was installed and apt updated.

#312 tried to fix this but it caused a new problem. It installed the puppet7-release deb, but that just caused later convergence issues when the puppet code installs the puppet-release deb (they can't coexist) and code wasn't added to remove the puppet7 releasee deb.

I found the two nodes I had been testing with stuck in Puppet loops.

Error: /Stage[main]/Linux_packages::Puppet/Package[puppet repo deb]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dpkg --force-confold -i /tmp/puppet.deb' returned 1: dpkg: regarding /tmp/puppet.deb containing puppet-release:
 puppet-release conflicts with puppet7-release
  puppet7-release (version 7.0.0-2bionic) is present and installed.

dpkg: error processing archive /tmp/puppet.deb (--install):
 conflicting packages - not installing puppet-release

The bootstrap script has always installed a versioned deb and the puppet code has removed the versioned deb and installed the unversioned (a problem due to the versions disappearing).

Problem: When puppet 8 comes out, the current code will likely break. Maybe we'll be off 18.04 by the point puppet 8 comes out.

Proposal: Always install the versioned deb (the only immutable option) in the puppet code and bootstrap.

Complications: The versioned and non-versioned release debs are incompatible, so sequencing could be tricky.

@aerickson aerickson self-assigned this Jun 4, 2021
@aerickson aerickson changed the title 1804: fix issues regarding mutable puppet release repo deb 1804: fix issues regarding puppet release repo deb removing versions Jun 4, 2021
@aerickson aerickson changed the title 1804: fix issues regarding puppet release repo deb removing versions 1804: fix issues regarding puppet repo deb removing versions Jun 4, 2021
@aerickson aerickson changed the title 1804: fix issues regarding puppet repo deb removing versions 1804: issues regarding puppet repo deb removing versions Jun 5, 2021
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.

1 participant