Project

General

Profile

Actions

Bug #6996

closed

If we ask to install a package in a version at least equal to another, we get no report if the version installed is > than the one requested

Added by Nicolas CHARLES over 9 years ago. Updated about 9 years ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

I want to have at least rudder-agent 3.0.5 on my system
I have 3.0.7, but the technique doesn't report anything (missing report)

verbose output says

rudder> /default/check_apt_package_installation/packages/'rudder-agent'[0]: PackageMatch did not find [available] packages to match the constraints of promise (rudder-agent,3.0.5,*) [name,version,arch]
rudder> /default/check_apt_package_installation/packages/'rudder-agent'[0]: CheckPackageState: Available package match for (rudder-agent,3.0.5,*) [name,version,arch] was decisive: ERROR-OR-NOMATCH
rudder> /default/check_apt_package_installation/packages/'rudder-agent'[0]: CheckPackageState: matched package (rudder-agent,3.0.5,*) [name,version,arch]; scheduling operation
rudder> /default/check_apt_package_installation/packages/'rudder-agent'[0]: Checking if package (rudder-agent,3.0.5,*) [name,version,arch] is at the desired state (installed=1,matched=0)
rudder> /default/check_apt_package_installation/packages/'rudder-agent'[0]: Package promises to refer to itself as 'rudder-agent' to the manager
rudder> /default/check_apt_package_installation/packages/'rudder-agent'[0]: Package version seems to match criteria
rudder> /default/check_apt_package_installation/packages/'rudder-agent'[0]: Package method does NOT specify a file repository
rudder> /default/check_apt_package_installation/packages/'rudder-agent'[0]: Checking if latest available version is newer than installed...
rudder> /default/check_apt_package_installation/packages/'rudder-agent'[0]: Looking for an installed package older than (rudder-agent,3.0.5,*) [name,version,arch]
rudder> /default/check_apt_package_installation/packages/'rudder-agent'[0]: Found installed package (rudder-agent,3.0.7-wheezy0,default) [name,version,arch]
rudder> /default/check_apt_package_installation/packages/'rudder-agent'[0]: Executing '/usr/bin/dpkg --compare-versions '3.0.7-wheezy0' lt '3.0.5''
rudder> /default/check_apt_package_installation/packages/'rudder-agent'[0]: CompareVersions: Checked whether package version 3.0.7-wheezy0 < 3.0.5: no
rudder> /default/check_apt_package_installation/packages/'rudder-agent'[0]: Installed package is up to date, not updating

(you can find it on debian-7-64.labo.normation.com)


Subtasks 1 (0 open1 closed)

Bug #7002: If we ask to install a package in a version at least equal to another, we get no report if the version installed is > than the one requested (on 3.0)ReleasedNicolas CHARLES2015-07-16Actions

Related issues 1 (0 open1 closed)

Has duplicate Rudder - Bug #6438: rpmPackageInstallation doesn't report anything if the package we want to install has a version lower than the one we haveRejected2015-03-25Actions
Actions #1

Updated by Nicolas CHARLES over 9 years ago

mod_packages, line 1689, break without defining result, so it should result RESULT_NOOP, so CheckPackageState returns RESULT_NOOP, but somehow it doesn't bubble up to the result :(

Actions #2

Updated by Alexis Mousset over 9 years ago

  • Status changed from New to In progress
Actions #3

Updated by Alexis Mousset over 9 years ago

Only happen when updating (and not installing).

Actions #4

Updated by Alexis Mousset over 9 years ago

Upstream issue: https://dev.cfengine.com/issues/7399

Preparing the patches for our packages.

Actions #5

Updated by Alexis Mousset over 9 years ago

  • Category changed from Techniques to Agent
Actions #6

Updated by Alexis Mousset over 9 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/710
Actions #7

Updated by Alexis Mousset over 9 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #9

Updated by François ARMAND over 9 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.13, 3.0.8 and 3.1.1 which were released today.

Actions #10

Updated by Alexis Mousset about 9 years ago

From CFEngine ticket:

Cherry-picked and will be in 3.6.7 and 3.7.2.

Actions #11

Updated by Alexis Mousset about 9 years ago

  • Has duplicate Bug #6438: rpmPackageInstallation doesn't report anything if the package we want to install has a version lower than the one we have added
Actions

Also available in: Atom PDF