Project

General

Profile

User story #6994

Technique aptPackageInstallation doesn't update packages if no version is defined

Added by Nicolas CHARLES over 3 years ago. Updated 4 months ago.

Status:
Rejected
Priority:
2
Assignee:
-
Category:
Techniques
Target version (plugin):
Suggestion strength:
User visibility:
Effort required:
Pull Request:

Description

I tried to upgrade Rudder-agent with Rudder
Using update/use package manager default version didn't update package
Adding latest as version didn't update the package

Only using version > 3.0.5 did it update from 3.0.4 to 3.0.7


Related issues

Related to ncf - Bug #8167: package_install_version_cmp_update should handle all needed package operationsRejected2016-04-11
Related to Rudder - User story #8230: Package management issues in Rudder/ncfRejected

History

#1 Updated by Alexis MOUSSET over 3 years ago

  • Status changed from New to In progress

#2 Updated by Alexis MOUSSET over 3 years ago

looking for [installed] (rudder-agent,*,*) [name,version,arch] in package manager /usr/bin/dpkg -l
[...]
Comparing [installed] package (rudder-agent,3.0.6-jessie0,default) to [==] with given (rudder-agent,*,*) [name,version,arch]
[...]
looking for [available] (rudder-agent,*,*) [name,version,arch] in package manager /usr/bin/dpkg -l
[...]
Comparing [available] package (rudder-agent,3.0.6-jessie0,default) to [==] with given (rudder-agent,*,*) [name,version,arch]
[...]
Package 'rudder-agent' already installed and matches criteria

It seems it tries to find updates in dpkg -l

#3 Updated by Alexis MOUSSET over 3 years ago

When specifying the version:

2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Package version 3.0.7 specified explicitly in promise body
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Comparing [installed] package (rudder-agent,3.0.6-jessie0,default) to [==] with given (rudder-agent,*,*) [name,version,arch]
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Matched [installed] name 'rudder-agent'
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Matched [installed] wildcard arch '*'
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Matched [installed] wildcard version '*'
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: PackageMatch: package comparison for [installed] rudder-agent was decisive: MATCH
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: CheckPackageState: Installed package match for (rudder-agent,*,*) [name,version,arch] was decisive: MATCH
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Comparing [available] package (rudder-agent,3.0.6-jessie0,default) to [==] with given (rudder-agent,3.0.7,*) [name,version,arch]
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Matched [available] name 'rudder-agent'
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Matched [available] wildcard arch '*'
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Executing '/usr/bin/dpkg --compare-versions '3.0.6-jessie0' eq '3.0.7''
2015-07-16T14:08:39+0000    debug: /default/check_apt_package_installation/packages/'rudder-agent'[0]: cf_pwait - Waiting for process 5444
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: CompareVersions: Checked whether package version 3.0.6-jessie0 == 3.0.7: no
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Version comparison returned NO_MATCH for [available] package (rudder-agent,3.0.6-jessie0,default) to [==] with given (rudder-agent,3.0.7,*) [name,version,arch]
2015-07-16T14:08:39+0000  verbose: /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.7,*) [name,version,arch]
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: CheckPackageState: Available package match for (rudder-agent,3.0.7,*) [name,version,arch] was decisive: ERROR-OR-NOMATCH
2015-07-16T14:08:39+0000    debug: /default/check_apt_package_installation/packages/'rudder-agent'[0]: WillSchedulePackageOperation: on entry, action updating: package rudder-agent matches = no, installed = yes.
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: CheckPackageState: matched package (rudder-agent,3.0.7,*) [name,version,arch]; scheduling operation
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Checking if package (rudder-agent,3.0.7,*) [name,version,arch] is at the desired state (installed=1,matched=0)
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Package promises to refer to itself as 'rudder-agent' to the manager
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Package version seems to match criteria
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Package method does NOT specify a file repository
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Checking if latest available version is newer than installed...
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Looking for an installed package older than (rudder-agent,3.0.7,*) [name,version,arch]
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Found installed package (rudder-agent,3.0.6-jessie0,default) [name,version,arch]
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Executing '/usr/bin/dpkg --compare-versions '3.0.6-jessie0' lt '3.0.7''
2015-07-16T14:08:39+0000    debug: /default/check_apt_package_installation/packages/'rudder-agent'[0]: cf_pwait - Waiting for process 5446
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: CompareVersions: Checked whether package version 3.0.6-jessie0 < 3.0.7: yes
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Installed package (rudder-agent,3.0.6-jessie0,default) [name,version,arch] is older than latest available (rudder-agent,3.0.7,*) [name,version,arch] - updating
2015-07-16T14:08:39+0000  verbose: /default/check_apt_package_installation/packages/'rudder-agent'[0]: Schedule package for update

#4 Updated by Alexis MOUSSET over 3 years ago

It seems that:
  • when the are no version specified, cf-agent only tries to install an updates if it finds it in the available package list
  • when there is a specified version, even if there are no available update found, cf-agent assumes the specified version exists and calls the update command for this package anyway

And we do not currently fetch available updates.

#5 Updated by Nicolas CHARLES over 3 years ago

ok, so should we do as we do for rpmPackageInstallation?

#6 Updated by Vincent MEMBRÉ about 3 years ago

  • Target version changed from 2.11.13 to 2.11.14

#7 Updated by Vincent MEMBRÉ about 3 years ago

  • Target version changed from 2.11.14 to 2.11.15

#8 Updated by Vincent MEMBRÉ about 3 years ago

  • Target version changed from 2.11.15 to 2.11.16

#9 Updated by Vincent MEMBRÉ almost 3 years ago

  • Target version changed from 2.11.16 to 2.11.17

#10 Updated by Vincent MEMBRÉ almost 3 years ago

  • Target version changed from 2.11.17 to 2.11.18

#11 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.18 to 2.11.19

#12 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.19 to 2.11.20

#13 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.20 to 2.11.21

#14 Updated by Alexis MOUSSET over 2 years ago

  • Related to Bug #8167: package_install_version_cmp_update should handle all needed package operations added

#15 Updated by Alexis MOUSSET over 2 years ago

  • Status changed from In progress to New

#16 Updated by Alexis MOUSSET over 2 years ago

#17 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.21 to 2.11.22

#18 Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 2.11.22 to 2.11.23

#19 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 2.11.23 to 2.11.24

#20 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 2.11.24 to 308

#21 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 308 to 3.1.14

#22 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 3.1.14 to 3.1.15

#23 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 3.1.15 to 3.1.16

#24 Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 3.1.16 to 3.1.17

#25 Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 3.1.17 to 3.1.18

#26 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.18 to 3.1.19

#27 Updated by Alexis MOUSSET over 1 year ago

  • Tracker changed from Bug to User story

#28 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.19 to 3.1.20

#29 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.20 to 3.1.21

#30 Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 3.1.21 to 3.1.22

#31 Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 3.1.22 to 3.1.23

#32 Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 3.1.23 to 3.1.24

#33 Updated by Vincent MEMBRÉ 12 months ago

  • Target version changed from 3.1.24 to 3.1.25

#34 Updated by Benoît PECCATTE 12 months ago

  • Target version changed from 3.1.25 to 4.1.9

#35 Updated by Vincent MEMBRÉ 11 months ago

  • Target version changed from 4.1.9 to 4.1.10

#36 Updated by Benoît PECCATTE 8 months ago

  • Target version changed from 4.1.10 to Ideas (not version specific)

#37 Updated by Alexis MOUSSET 4 months ago

  • Status changed from New to Rejected

"latest" version specification works well with the new package technique, closing.

Also available in: Atom PDF