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

Potential ordering issue with pinning the proxmox kernel #275

Open
btravouillon opened this issue Nov 2, 2024 · 1 comment
Open

Potential ordering issue with pinning the proxmox kernel #275

btravouillon opened this issue Nov 2, 2024 · 1 comment

Comments

@btravouillon
Copy link
Collaborator

With 1.9.0 (and #267), the pinning of the kernel is executed after the tasks Run apt-get dist-upgrade on repository changes and Perform system upgrades. This may lead to unexpected behaviour.

For example, I just ran the 1.9.0 on a node with -e pve_run_system_upgrades=true, after removing pve_default_kernel_version from my inventory. This removed /etc/apt/preferences.d/proxmox-default-kernel as expected, but the kernel was not upgraded. I had to run the playbook twice to upgrade the kernel.

In the case of a repo change or required system upgrades, I also believe this could install the latest kernel first, then pin the proxmox-default-kernel to a previous pve_default_kernel_version.

I'm not sure if this is on purpose or not, otherwise I would have opened an MR to fix this already.

Info

Running up-to-date Proxmox VE 8.2.7 community.

@lae
Copy link
Owner

lae commented Nov 2, 2024

Mmm, I guess it's because pve-default-kernel doesn't get pulled into the list of packages in the package installation step that follows on already provisioned systems...?

Moving it before dist-upgrade is fine I think (or however you were considering fixing it). Right now it sounds like it mainly works on new installs but not if modifying that value afterwards.

In the case of a repo change or required system upgrades, I also believe this could install the latest kernel first, then pin the proxmox-default-kernel to a previous pve_default_kernel_version.

This shouldn't be true unless the variable is also being set or modified in the same playbook run, cause the preferences file should be there already.

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

No branches or pull requests

2 participants