Project

General

Profile

Actions

User story #6994

closed

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

Added by Nicolas CHARLES almost 9 years ago. Updated almost 6 years ago.

Status:
Rejected
Priority:
2
Assignee:
-
Category:
Techniques
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

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 2 (0 open2 closed)

Related to Rudder - Bug #8167: package_install_version_cmp_update should handle all needed package operationsRejectedAlexis MoussetActions
Related to Rudder - User story #8230: Package management issues in Rudder/ncfRejectedAlexis MoussetActions
Actions #1

Updated by Alexis Mousset almost 9 years ago

  • Status changed from New to In progress
Actions #2

Updated by Alexis Mousset almost 9 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

Actions #3

Updated by Alexis Mousset almost 9 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

Actions #4

Updated by Alexis Mousset almost 9 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.

Actions #5

Updated by Nicolas CHARLES almost 9 years ago

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

Actions #6

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.13 to 2.11.14
Actions #7

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.14 to 2.11.15
Actions #8

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.15 to 2.11.16
Actions #9

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.16 to 2.11.17
Actions #10

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.17 to 2.11.18
Actions #11

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 2.11.18 to 2.11.19
Actions #12

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 2.11.19 to 2.11.20
Actions #13

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 2.11.20 to 2.11.21
Actions #14

Updated by Alexis Mousset about 8 years ago

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

Updated by Alexis Mousset about 8 years ago

  • Status changed from In progress to New
Actions #16

Updated by Alexis Mousset almost 8 years ago

Actions #17

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 2.11.21 to 2.11.22
Actions #18

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 2.11.22 to 2.11.23
Actions #19

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 2.11.23 to 2.11.24
Actions #20

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 2.11.24 to 308
Actions #21

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 308 to 3.1.14
Actions #22

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.14 to 3.1.15
Actions #23

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.15 to 3.1.16
Actions #24

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.16 to 3.1.17
Actions #25

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.17 to 3.1.18
Actions #26

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 3.1.18 to 3.1.19
Actions #27

Updated by Alexis Mousset about 7 years ago

  • Tracker changed from Bug to User story
Actions #28

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 3.1.19 to 3.1.20
Actions #29

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 3.1.20 to 3.1.21
Actions #30

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 3.1.21 to 3.1.22
Actions #31

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 3.1.22 to 3.1.23
Actions #32

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 3.1.23 to 3.1.24
Actions #33

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 3.1.24 to 3.1.25
Actions #34

Updated by Benoît PECCATTE over 6 years ago

  • Target version changed from 3.1.25 to 4.1.9
Actions #35

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.9 to 4.1.10
Actions #36

Updated by Benoît PECCATTE about 6 years ago

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

Updated by Alexis Mousset almost 6 years ago

  • Status changed from New to Rejected

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

Actions

Also available in: Atom PDF