User story #19033
closedpackage method leads to report error when package with non-zero epoch is updated
Description
On a centos, if a package is present and a new version is available, for the package
technique, with option update only if package installed
, with option install last version
, I get the following behavior:
- package is correctly updated (and not installed on a node without it before hand)
- an error is outputed
Files
Updated by François ARMAND almost 4 years ago
Actually, it's even stranger than that: the run in error in the node never reach rudder server: no reports are stored in base for it. But they are not in "output" reports on the node (in /var/rudder/tmp/reports/
), nor in relayd process queue in /var/rudder/reports/{incoming, failed, ready}
).
UPDATE: it was a debug run, they are not send, it's clearly written in the help
.
Updated by Félix DALLIDET almost 4 years ago
I was able to reproduce this issue. It does seem to come from the package module/promise. See a simple cf file to reproduce in a minimal setup.
I could reproduce going from version "8.0.1763-10.el8" to "8.0.1763-15.el8".
It may come from the epoch which appears to be listed in some yum outputs and not in some others. The package module is listing the epoch in the target version prior to an update but doesn't after the upgrade, and packages were the epoch is never listed seem to work fine.
Before update:
[root@server packages]# ./yum list-installed < /dev/null | grep -A2 vim-minimal Name=vim-minimal Version=8.0.1763-10.el8 Architecture=x86_64
See the epoch prefix in the version tag
[root@server packages]# ./yum list-updates < /dev/null | grep -A2 vim-minimal Failed to set locale, defaulting to C Name=vim-minimal Version=2:8.0.1763-15.el8 Architecture=x86_64
After Update:
[root@server packages]# ./yum list-installed < /dev/null | grep -A2 vim-minimal Name=vim-minimal Version=8.0.1763-15.el8 Architecture=x86_64
Updated by François ARMAND almost 4 years ago
- Parent task deleted (
#18909)
I'm breaking the parent/child link, since it's a different problem
Updated by François ARMAND almost 4 years ago
- Related to User story #18909: Add an "upgrade only" option to the technique packageManagement added
Updated by François ARMAND almost 4 years ago
- Subject changed from Update-only package option lead to report error when package is updated to package technique leads to report error when package with non-zero epoch is updated
Updated by Vincent MEMBRÉ almost 4 years ago
- Target version changed from 6.1.10 to 6.1.11
Updated by Vincent MEMBRÉ almost 4 years ago
- Target version changed from 6.1.11 to 6.1.12
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.1.12 to 6.1.13
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.1.13 to 6.1.14
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.1.14 to 6.1.15
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.1.15 to 6.1.16
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.1.16 to 6.1.17
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 6.1.17 to 6.1.18
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 6.1.18 to 6.1.19
Updated by Alexis Mousset almost 3 years ago
- Subject changed from package technique leads to report error when package with non-zero epoch is updated to package method leads to report error when package with non-zero epoch is updated
- Category changed from Techniques to Generic methods
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.1.19 to 6.1.20
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.1.20 to 6.1.21
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 6.1.21 to old 6.1 issues to relocate
Updated by Nicolas CHARLES over 2 years ago
- Regression set to No
it is still the case, and causes error when upgrading rudder-agent
install candidate
Name=rudder-agent Version=1398866025:7.1.3-1.EL.8 Architecture=x86_64
action
rudder debug: Formatted list of packages to be send to package module: [Name=rudder-agent Version=1398866025:7.1.3-1.EL.8 Architecture=x86_64 ] rudder debug: Installing repo type package: 'Name=rudder-agent Version=1398866025:7.1.3-1.EL.8 Architecture=x86_64 ' rudder debug: Sending install command to package module: 'options= Name=rudder-agent Version=1398866025:7.1.3-1.EL.8 Architecture=x86_64 '
validation of package installed
rudder debug: Validating package: rudder-agent rudder debug: Updating cache: 0 rudder debug: Opened fds 6 and 9 for command '/var/rudder/cfengine-community/modules/packages/yum list-installed'.
returns without epoch
Name=rudder-agent Version=7.1.3-1.EL.8 Architecture=x86_64
and thus it fails
rudder debug: Looking for key in installed packages cache: N<rudder-agent>V<1398866025:7.1.3-1.EL.8>A<x86_64> rudder debug: Looking for package rudder-agent in cache returned: 0 rudder debug: Validating package rudder-agent:1398866025:7.1.3-1.EL.8:x86_64 installation result: 102 rudder debug: Evaluating present action promise status: f error: Error installing package 'rudder-agent'
Updated by Nicolas CHARLES over 2 years ago
- Target version changed from old 6.1 issues to relocate to 6.2.17
Updated by Nicolas CHARLES over 2 years ago
- Status changed from New to In progress
- Assignee changed from Félix DALLIDET to Nicolas CHARLES
Updated by Nicolas CHARLES over 2 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Alexis Mousset
- Pull Request set to https://github.com/Normation/ncf/pull/1362
Updated by Nicolas CHARLES over 2 years ago
- Assignee changed from Alexis Mousset to Félix DALLIDET
- Pull Request changed from https://github.com/Normation/ncf/pull/1362 to https://github.com/Normation/ncf/pull/1363
Updated by Nicolas CHARLES over 2 years ago
- Target version changed from 6.2.17 to 7.2.0~rc1
Targeting to 7.2 as it fix changes behaviour : it makes "latest" work, but need the exact version with epoch if it exists to install a package in a specific version
Updated by Anonymous over 2 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset ncf|327619cabfc39248311192c46ba22786671c69e3.
Updated by Vincent MEMBRÉ over 2 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.2.0~rc1 which was released today.