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

Bug #6996: 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 10 years ago. Updated about 10 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 CHARLESActions

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 haveRejectedActions

Updated by Nicolas CHARLES over 10 years ago Actions #1

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 :(

Updated by Alexis Mousset over 10 years ago Actions #2

  • Status changed from New to In progress

Updated by Alexis Mousset over 10 years ago Actions #3

Only happen when updating (and not installing).

Updated by Alexis Mousset over 10 years ago Actions #4

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

Preparing the patches for our packages.

Updated by Alexis Mousset over 10 years ago Actions #5

  • Category changed from Techniques to Agent

Updated by Alexis Mousset over 10 years ago Actions #6

  • 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

Updated by Alexis Mousset over 10 years ago Actions #7

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

Updated by François ARMAND over 10 years ago Actions #9

  • 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.

Updated by Alexis Mousset about 10 years ago Actions #10

From CFEngine ticket:

Cherry-picked and will be in 3.6.7 and 3.7.2.

Updated by Alexis Mousset about 10 years ago Actions #11

  • 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: PDF Atom